Skip to main content

add_utilisation_peak_constraints

Function add_utilisation_peak_constraints 

Source
pub fn add_utilisation_peak_constraints(
    problem: &mut RowProblem,
    model: &Model,
    asset: &AssetRef,
    activity_vars: &IndexMap<TimeSliceID, Col>,
)
Expand description

Add seasonal and annual utilisation peak constraints to the problem.

This is almost identical to equivalent constraints in the full-system dispatch, but here we make the penalties negative as this is a maximise optimisation (whereas dispatch is a minimise optimisation).