pub fn add_model_constraints<'a, I>(
problem: &mut RowProblem,
variables: &VariableMap,
model: &'a Model,
assets: &I,
markets_to_balance: &'a [(CommodityID, RegionID)],
year: u32,
) -> ConstraintKeysExpand description
Add constraints for the dispatch model.
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 poolmarkets_to_balance- The subset of markets to apply balance constraints toyear- Current milestone year
§Returns
Keys for the different constraints.