pwrs.power_models.pyomo.active_power#

Shared active-power-only Pyomo network components.

pwrs.power_models.pyomo.active_power.add_active_power_balance_constraints(problem, pyo)[source]#

Add fixed-unit-voltage active nodal balances for a lossless network.

Parameters:
Return type:

None

pwrs.power_models.pyomo.active_power.add_directed_active_power_balance_constraints(problem, pyo)[source]#

Add active balances using independent from- and to-end branch flows.

Parameters:
Return type:

None

pwrs.power_models.pyomo.active_power.add_directed_branch_power_variables(problem, pyo)[source]#

Add bounded from- and to-end active branch power variables.

Parameters:
Return type:

None

pwrs.power_models.pyomo.active_power.add_directed_dc_branch_constraints(problem, pyo, coefficient)[source]#

Add DCP from-end flow equations and convex line-loss inequalities.

Parameters:
Return type:

None

pwrs.power_models.pyomo.active_power.add_linear_branch_power_equations(problem, pyo, coefficient, angle_shift)[source]#

Link lossless branch power to a scaled, shifted angle difference.

Parameters:
  • problem (PyomoPowerModel)

  • pyo (Any)

  • coefficient (ndarray)

  • angle_shift (ndarray)

Return type:

None

pwrs.power_models.pyomo.active_power.add_lossless_branch_power_variables(problem, pyo)[source]#

Add one bounded real-power variable per lossless branch.

Parameters:
Return type:

None