Skip to contents

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)