Variables

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.getstartFunction.

extracts the start value

source

variable: pg[j] for j in gen

source

variable: p[l,i,j] for (l,i,j) in arcs

source

variable: -ne_branch[l]["rate_a"] <= p_ne[l,i,j] <= ne_branch[l]["rate_a"] for (l,i,j) in ne_arcs

source

generates variables for both active and reactive generation

source
source

generates variables for both active and reactive line_flow_ne

source

variable: 0 <= line_z[l] <= 1 for l in branches

source

variable: 0 <= line_ne[l] <= 1 for l in branches

source

variable: t[i] for i in buses

source

variable: qq[j] for j in gen

source

variable: q[l,i,j] for (l,i,j) in arcs

source

variable: -ne_branch[l]["rate_a"] <= q_ne[l,i,j] <= ne_branch[l]["rate_a"] for (l,i,j) in ne_arcs

source

variable: v[i] for i in buses

source

variable: w[i] >= 0 for i in buses

source

variable: 0 <= w_from[l] <= buses[branches[l]["f_bus"]]["vmax"]^2 for l in branches

source

variable: 0 <= w_to[l] <= buses[branches[l]["t_bus"]]["vmax"]^2 for l in branches

source