Function add_demand_constraints

Source
pub fn add_demand_constraints(
    problem: &mut RowProblem,
    asset: &AssetRef,
    commodity: &Commodity,
    time_slice_info: &TimeSliceInfo,
    demand: &IndexMap<TimeSliceID, Flow>,
    activity_vars: &IndexMap<TimeSliceID, Col>,
    unmet_demand_vars: &IndexMap<TimeSliceID, Col>,
)
Expand description

Adds demand constraints to the problem.

Constrains supply to be less than or equal to demand, which adapts based on the commodity’s balance level.