Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.29 KB

dcopf.md

File metadata and controls

36 lines (31 loc) · 1.29 KB

DC OPF Setup

The E4ST.jl DC OPF is set up as a cost minimization problem. Costs are added to the objective function and benefits are subtracted. setup_dcopf!() adds VOM, Fuel Cost, FOM, Capex, and Curtialment Cost to the objective function. Other terms can be added to the objective in Modifications before the model is optimized. A dictionary of the terms added to the objective function can be found in data[:obj_vars].

Constraints and expressions can also be defined outside of setup_dcopf!() before the model is optimized. This will also be done in Modifications.

setup_dcopf!

Get Model Variable Function

These functions get or use model variables. To get the value after optimizing the model they must be wrapped in value.().

get_pgen_bus
get_pflow_bus
get_pflow_branch

Constriant/Expression Info Function

These functions are used in defining the model constraints.

get_pgen_max
get_egen_gen

Model Mutation Functions

These functions are used to modify the model, specifically creating and adding terms to the objective expression. The Term abstract type is used to determine how the term (cost or benefit) should be added to the objective function.

Term
PerMWhGen
PerMWCap
PerMWhCurtailed
PerMWCapInv
add_obj_term!
add_obj_exp!