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 problemmodel
- The modelassets
- The asset poolyear
- Current milestone year
§Returns
A VariableMap
with the problem’s variables as values.