run_model: Running doubly constrained model

View source: R/workflow_rcpp.R

run_modelR Documentation

Running doubly constrained model

Description

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)


cppSim documentation built on Sept. 9, 2025, 5:50 p.m.