muse2::simulation::optimisation

Function add_variables

Source
fn add_variables(
    problem: &mut RowProblem,
    model: &Model,
    assets: &AssetPool,
    year: u32,
) -> VariableMap
Expand description

Add variables to the optimisation problem.

§Arguments

  • problem - The optimisation problem
  • model - The model
  • assets - The asset pool
  • year - Current milestone year

§Returns

A VariableMap with the problem’s variables as values.