Function add_asset_capacity_constraints

Source
fn add_asset_capacity_constraints(
    problem: &mut RowProblem,
    variables: &VariableMap,
    assets: &AssetPool,
    time_slice_info: &TimeSliceInfo,
    commodity_balance_constraint_keys: &Vec<(CommodityID, RegionID, TimeSliceSelection)>,
) -> Vec<(AssetID, TimeSliceID)>
Expand description

Add asset-level capacity and availability constraints.

For every asset at every time slice, the sum of the commodity flows for PACs must not exceed the capacity limits, which are a product of the annual capacity, time slice length and process availability.

See description in the dispatch optimisation documentation.