Skip to main content

Module constraints

Module constraints 

Source
Expand description

Code for adding constraints to the dispatch optimisation problem.

Structsยง

ConstraintKeys
The keys for different constraints
KeysWithOffset
Corresponding variables for a constraint along with the row offset in the solution

Functionsยง

add_activity_constraints ๐Ÿ”’
Add constraints on the activity of different assets.
add_annual_peak_constraints ๐Ÿ”’
Add constraints linking seasonal peak variables to annual peak variables for each asset.
add_annual_peak_variables ๐Ÿ”’
Add annual peak variables to the problem for each asset.
add_commodity_balance_constraints ๐Ÿ”’
Add asset-level input-output commodity balances.
add_commodity_constraints ๐Ÿ”’
Add explicit production and consumption constraints for commodities.
add_equal_utilisation_constraints ๐Ÿ”’
Add constraints requiring dispatch-equivalent assets to have equal utilisation in each time slice.
add_model_constraints
Add constraints for the dispatch model.
add_seasonal_peak_constraints ๐Ÿ”’
Add constraints linking seasonal peak variables to activity variables for each (asset, season) pair.
add_seasonal_peak_variables ๐Ÿ”’
Add seasonal peak variables to the problem for each (asset, season) pair.
add_utilisation_peak_constraints ๐Ÿ”’
Add seasonal and annual utilisation peak constraints to the problem.
candidate_balance_epsilon ๐Ÿ”’
Calculate the epsilon to add to the lower bound of a commodity balance constraint, to force some dispatch by candidate assets so they receive a nonzero shadow price.
group_dispatch_equivalent_assets ๐Ÿ”’
Groups assets that have equivalent dispatch properties.

Type Aliasesยง

ActivityKeys
Indicates the asset ID and time slice covered by each activity constraint
AnnualPeakVariableMap ๐Ÿ”’
Map containing the annual peak variables for each asset
CommodityBalanceKeys
Indicates the commodity ID and time slice selection covered by each commodity balance constraint
SeasonalPeakVariableMap ๐Ÿ”’
Map containing the seasonal peak variables for each (asset, season) pair