This function is the C++ implementation of run_model, it will run a doubly constrained model
Usage
run_model(flows, distance, beta = 0.25)
Arguments
- flows
A integer matrix of Origin-Destination flows.
- distance
a distance matrix between origins and destinations, provide distance in km.
- beta
Exponent to use when calculating the cost function.
Value
A list containing an integer matrix with predicted values.
Examples
data(flows_test)
data(distance_test)
model_test <- run_model(flows_test,distance_test)
#> [1] "cost function computed"
#> [1] "calibration: over"
#> [1] "model run: over"
#> [1] "E_sor = 0.484296845279191"
#> [1] "r2 = 0.567346510729447"
#> [1] "RMSE = 16256498"