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:
problem (PyomoPowerModel)
pyo (Any)
- 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:
problem (PyomoPowerModel)
pyo (Any)
- 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:
problem (PyomoPowerModel)
pyo (Any)
- 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:
problem (PyomoPowerModel)
pyo (Any)
- 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:
problem (PyomoPowerModel)
pyo (Any)
- Return type:
None