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_commodity_balance_constraints ๐Ÿ”’
Add asset-level input-output commodity balances.
add_model_constraints
Add constraints for the dispatch model.
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.

Type Aliasesยง

ActivityKeys
Indicates the asset ID and time slice covered by each activity constraint
CommodityBalanceKeys
Indicates the commodity ID and time slice selection covered by each commodity balance constraint