Module optimisation

Source
Expand description

Code for performing dispatch optimisation.

This is used to calculate commodity flows and prices.

Modulesยง

constraints ๐Ÿ”’
Code for adding constraints to the dispatch optimisation problem.

Structsยง

DispatchRun
Provides the interface for running the dispatch optimisation.
Solution
The solution to the dispatch optimisation problem
VariableMap
A map for easy lookup of variables in the problem.

Enumsยง

ModelError
Defines the possible errors that can occur when running the solver

Functionsยง

add_asset_variables ๐Ÿ”’
Add variables to the optimisation problem.
calculate_cost_coefficient ๐Ÿ”’
Calculate the cost coefficient for a decision variable.
check_input_prices ๐Ÿ”’
Sanity check for input prices.
solve_optimal
Try to solve the model, returning an error if the model is incoherent or result is non-optimal

Type Aliasesยง

AssetVariableMap ๐Ÿ”’
The map of variables related to assets
FlowMap
A map of commodity flows calculated during the optimisation
UnmetDemandVariableMap ๐Ÿ”’
Variables representing unmet demand for a given commodity
Variable ๐Ÿ”’
A decision variable in the optimisation