Interface Limits

E4ST.summarize_tableMethod
summarize_table(::Val{:interface_limit})
column_namedata_typeunitrequireddescription
nameStringE4ST.NAfalseName of the interface limit, not used
descriptionStringE4ST.NAfalseDescription of the interface limit, not used.
f_filterStringE4ST.NAtrueThe filter for the bus table specifiying the region the power is flowing from. I.e. nation=>narnia, or state=>[angard, stormness]
t_filterStringE4ST.NAtrueThe filter for the bus table specifiying the region the power is flowing to.
pflow_maxFloat64E4ST.MWFlowfalseThe maximum allowable power flow in the direction of f to t. If left as ±Inf, no constraint made.
pflow_minFloat64E4ST.MWFlowfalseThe minimum allowable power flow in the direction of f to t. Can be positive or negative. If left as ±Inf, no constraint made.
eflow_yearly_maxFloat64E4ST.MWhFlowfalseThe yearly maximum allowable energy to flow in the direction of f to t. If left as ±Inf, no constraint made.
eflow_yearly_minFloat64E4ST.MWhFlowfalseThe yearly minimum allowable energy to flow in the direction of f to t. Can be positive or negative. If left as ±Inf, no constraint made.
priceFloat64E4ST.DollarsPerMWhFlowfalseThe price of net flow in the direction of f to t.
include_dcBoolE4ST.NAfalseWhether or not to include DC lines in this interface limit. If not provided, assumed that DC lines are not included
source
E4ST.modify_raw_data!Method
modify_raw_data!(mod::InterfaceLimit, config, data)

Reads the interface limit table from mod.file and stores it to data[:interface_limit].

source
E4ST.modify_model!Method
modify_model!(mod::InterfaceLimit, config, data, model)
  • Gathers each of the branches (forward and reverse) for each of the rows of the interface_limit table.
  • Creates an expression pflow_if[if_idx, yr_idx, hr_idx] for the power flowing, in MW, in each interface. This includes
    • The sum of all of the pflow_branch terms for branches that are flowing in the direction of from to to.
    • Net the sum of all of the pflow_branch terms for branches that are flowing in the direction of to to from.
  • Creates min and max constraints cons_pflow_if_min[if_idx, yr_idx, hr_idx] and cons_pflow_if_max[if_idx, yr_idx, hr_idx] for each interface limit, for each year and hour in which the limit is finite, and there are qualifying pflow_branch variables in the interface.
  • Creates min and max constraints cons_eflow_if_min[if_idx, yr_idx] and cons_eflow_if_max[if_idx, yr_idx] for each interface limit, for each year in which the limit is finite, and there are qualifying pflow_branch variables in the interface.
  • Creates expression interface_flow_cost_obj[if_idx, yr_idx, hr_idx] for the cost of interface flow, and adds it to the objective.
source