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. setupdcopf!() 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[:objvars].

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

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.

E4ST.TermType
abstract type Term

Abstract type Term is used to add variables (terms) to the objective function or other functions. Subtypes include PerMWhGen, PerMWCap, and PerMWhCurtailed.

source
Missing docstring.

Missing docstring for PerMWhGen. Check Documenter's build log for details.

Missing docstring.

Missing docstring for PerMWCap. Check Documenter's build log for details.

Missing docstring.

Missing docstring for PerMWhCurtailed. Check Documenter's build log for details.

Missing docstring.

Missing docstring for PerMWCapInv. Check Documenter's build log for details.

E4ST.add_obj_term!Function
add_obj_term!(data, model, ::Term, s::Symbol; oper)

Adds or subtracts cost/revenue s to the objective function of the model based on the operator oper. Adds the cost/revenue to the objective variables list in data.

source
E4ST.add_obj_exp!Function
function add_obj_exp!(data, model, term::Term, s::Symbol; oper)

Adds expression s (already defined in model) to the objective expression model[:obj]. Adds the name, oper, and type of the term to data[:obj_vars]. The function accepts accepts 1D, 2D, and 3D arrays and sparse arrays where * 1d is assumed to be Y * 2d is assumed to be NxY * 3D is assumed to be NxYxH

source