pub fn add_asset_constraints<'a, I>(
problem: &mut RowProblem,
variables: &VariableMap,
model: &'a Model,
assets: I,
year: u32,
) -> ConstraintKeys
Expand description
Add asset-level constraints
Note: the ordering of constraints is important, as the dual values of the constraints must later be retrieved to calculate commodity prices.
§Arguments
problem
- The optimisation problemvariables
- The variables in the problemmodel
- The modelassets
- The asset poolyear
- Current milestone year
§Returns
Keys for the different constraints.