pub fn add_capacity_constraint(
problem: &mut RowProblem,
asset: &AssetRef,
max_capacity: Option<Capacity>,
capacity_var: Col,
)
Expand description
Adds a capacity constraint to the problem.
The behaviour depends on whether the asset is commissioned or a candidate:
- For a commissioned asset, the capacity is fixed.
- For a candidate asset, the capacity is variable between zero and an upper bound.