View source: R/workflow_rcpp.R
run_model | R Documentation |
This function is the C++ implementation of run_model, it will run a doubly constrained model
run_model(flows, distance, beta = 0.25)
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. |
A list containing an integer matrix with predicted values.
data(flows_test)
data(distance_test)
model_test <- run_model(flows_test,distance_test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.