Methods
BusInjectionModel.build_bim_rectangular!
— Functionbuild_bim_rectangular!(m::JuMP.AbstractModel, net::Network, mtype::ModelType=Unrelaxed)
Top-level model builder that dispatches the ModelType enum
build_bim_rectangular!(m::JuMP.AbstractModel, net::Network{SinglePhase}, ::Val{Unrelaxed})
Model builder for single-phase, unrelaxed BIM with rectangular voltage variables. See the Single Phase Bus Injection Model (Unrelaxed) math for details.
Adds the variables:
m[:v]
with complex values for all busses inCommonOPF.busses(net)
m[:s0]
for the complex slack bus power injection
build_bim_rectangular!(m::JuMP.AbstractModel, net::Network{MultiPhase}, ::Val{Unrelaxed})
Model builder for multi-phase, unrelaxed BIM with rectangular voltage variables. See the Multi-Phase Bus Injection Model (Unrelaxed) math for details.
Adds the variables:
m[:v]
with complex values for all busses inCommonOPF.busses(net)
m[:s0]
for the complex slack bus power injection
BusInjectionModel.build_bim_polar!
— Functionbuild_bim_polar!(m::JuMP.AbstractModel, net::Network, mtype::ModelType=Unrelaxed)
Top-level model builder that dispatches the ModelType enum
build_bim_polar!(m::JuMP.AbstractModel, net::Network{SinglePhase}, ::Val{Unrelaxed})
Model builder for single-phase, unrelaxed BIM with polar voltage variables. See the Single Phase Bus Injection Model (Unrelaxed) math for details.
Adds the variables:
m[:v_mag]
for all busses inCommonOPF.busses(net)
m[:v_ang]
for all busses inCommonOPF.busses(net)
m[:p0]
andm[:q0]
for the slack bus power injectionm[:q_gen]
for any P-V busses (via theCommonOPF.Generator
)