pwrs.power_models.pyomo.branch_flow#

Shared branch-flow components for BFA and SOCBF formulations.

pwrs.power_models.pyomo.branch_flow.add_bfa_branch_constraints(problem, pyo)[source]#

Add linearized branch losses and voltage drop for BFA.

Parameters:
Return type:

None

pwrs.power_models.pyomo.branch_flow.add_branch_current_variables(problem, pyo)[source]#

Add bounded squared series-current variables for SOC branch flow.

Parameters:
Return type:

None

pwrs.power_models.pyomo.branch_flow.add_branch_flow_angle_constraints(problem, pyo)[source]#

Add PowerModels’ linear branch-flow voltage-angle bounds.

Parameters:
Return type:

None

pwrs.power_models.pyomo.branch_flow.add_socbf_branch_constraints(problem, pyo)[source]#

Add SOCBF branch losses and voltage-drop equations.

Parameters:
Return type:

None

pwrs.power_models.pyomo.branch_flow.add_socbf_current_constraints(problem, pyo)[source]#

Add the non-conic rotated-SOC current relationship.

Parameters:
Return type:

None

pwrs.power_models.pyomo.branch_flow.branch_angle_coefficients(network)[source]#

Return the affine BF voltage-product coefficients for each branch.

Parameters:

network (Any)

Return type:

tuple[ndarray, …]

pwrs.power_models.pyomo.branch_flow.branch_voltage_product_values(network, w, pf, qf)[source]#

Evaluate BF voltage-product components used by angle constraints.

Parameters:
  • network (Any)

  • w (ndarray)

  • pf (ndarray)

  • qf (ndarray)

Return type:

tuple[ndarray, ndarray]