Variables
We provide the following methods to provide a compositional approach for defining common variables used in power flow models. These methods should always be defined over "GenericPowerModel".
PowerModels.getstart
— Function.extracts the start value
PowerModels.variable_active_branch_flow
— Function.variable: p[l,i,j]
for (l,i,j)
in arcs
PowerModels.variable_active_branch_flow_ne
— Function.variable: -ne_branch[l]["rate_a"] <= p_ne[l,i,j] <= ne_branch[l]["rate_a"]
for (l,i,j)
in ne_arcs
PowerModels.variable_active_dcline_flow
— Function.variable: p_dc[l,i,j]
for (l,i,j)
in arcs_dc
PowerModels.variable_active_generation
— Function.variable: pg[j]
for j
in gen
PowerModels.variable_branch_flow
— Function.PowerModels.variable_branch_flow_ne
— Function.generates variables for both active
and reactive
branch_flow_ne
PowerModels.variable_branch_indicator
— Function.variable: 0 <= branch_z[l] <= 1
for l
in branch
es
PowerModels.variable_branch_ne
— Function.variable: 0 <= branch_ne[l] <= 1
for l
in branch
es
PowerModels.variable_generation
— Function.generates variables for both active
and reactive
generation
PowerModels.variable_reactive_branch_flow
— Function.variable: q[l,i,j]
for (l,i,j)
in arcs
PowerModels.variable_reactive_branch_flow_ne
— Function.variable: -ne_branch[l]["rate_a"] <= q_ne[l,i,j] <= ne_branch[l]["rate_a"]
for (l,i,j)
in ne_arcs
PowerModels.variable_reactive_dcline_flow
— Function.variable: q_dc[l,i,j]
for (l,i,j)
in arcs_dc
PowerModels.variable_reactive_generation
— Function.variable: qq[j]
for j
in gen
PowerModels.variable_voltage_angle
— Function.variable: t[i]
for i
in bus
es
PowerModels.variable_voltage_imaginary
— Function.real part of the voltage variable i
in bus
es
PowerModels.variable_voltage_magnitude
— Function.variable: v[i]
for i
in bus
es
variable: 0 <= vm_fr[l] <= buses[branches[l]["f_bus"]]["vmax"]
for l
in branch
es
PowerModels.variable_voltage_magnitude_sqr
— Function.variable: w[i] >= 0
for i
in bus
es
variable: 0 <= w_fr[l] <= buses[branches[l]["f_bus"]]["vmax"]^2
for l
in branch
es
variable: 0 <= w_to[l] <= buses[branches[l]["t_bus"]]["vmax"]^2
for l
in branch
es
PowerModels.variable_voltage_magnitude_to_on_off
— Function.variable: 0 <= vm_to[l] <= buses[branches[l]["t_bus"]]["vmax"]
for l
in branch
es
PowerModels.variable_voltage_product
— Function.PowerModels.variable_voltage_product_on_off
— Function.PowerModels.variable_voltage_real
— Function.real part of the voltage variable i
in bus
es