pwrs.power_models.pyomo.common#
Pyomo components shared by bus-injection OPF formulations.
- pwrs.power_models.pyomo.common.add_active_generator_power_variables(problem, pyo)[source]#
Add bounded active generator-power variables.
- Parameters:
problem (PyomoPowerModel)
pyo (Any)
- Return type:
None
- pwrs.power_models.pyomo.common.add_apparent_power_limits(problem, pyo)[source]#
Add apparent-power thermal limits at both branch ends.
- Parameters:
problem (PyomoPowerModel)
pyo (Any)
- Return type:
None
- pwrs.power_models.pyomo.common.add_branch_power_variables(problem, pyo)[source]#
Add explicit directed active and reactive branch-flow variables.
- Parameters:
problem (PyomoPowerModel)
pyo (Any)
- Return type:
None
- pwrs.power_models.pyomo.common.add_branch_power_equations(problem, pyo)[source]#
Add common Ohm-law equations from formulation-defined voltage products.
- Parameters:
problem (PyomoPowerModel)
pyo (Any)
- Return type:
None
- pwrs.power_models.pyomo.common.add_component_sets(problem, pyo)[source]#
Add deterministic indexes for active network components.
- Parameters:
problem (PyomoPowerModel)
pyo (Any)
- Return type:
None
- pwrs.power_models.pyomo.common.add_dcline_power_variables(problem, pyo, *, reactive)[source]#
Add directed DC-line power and linear loss constraints.
- Parameters:
problem (PyomoPowerModel)
pyo (Any)
reactive (bool)
- Return type:
None
- pwrs.power_models.pyomo.common.add_generator_cost_objective(problem, pyo)[source]#
Add polynomial and convex PWL generator and DC-line costs.
- Parameters:
problem (PyomoPowerModel)
pyo (Any)
- Return type:
None
- pwrs.power_models.pyomo.common.add_generator_power_variables(problem, pyo)[source]#
Add bounded active and reactive generator-power variables.
- Parameters:
problem (PyomoPowerModel)
pyo (Any)
- Return type:
None
- pwrs.power_models.pyomo.common.add_ipopt_suffixes(problem, pyo)#
Add suffixes used to normalize duals across supported solvers.
- Parameters:
problem (PyomoPowerModel)
pyo (Any)
- Return type:
None
- pwrs.power_models.pyomo.common.add_solver_suffixes(problem, pyo)[source]#
Add suffixes used to normalize duals across supported solvers.
- Parameters:
problem (PyomoPowerModel)
pyo (Any)
- Return type:
None
- pwrs.power_models.pyomo.common.add_power_balance_constraints(problem, pyo)[source]#
Add nodal power balances using the formulation’s squared voltage expression.
- Parameters:
problem (PyomoPowerModel)
pyo (Any)
- Return type:
None
- pwrs.power_models.pyomo.common.add_reactive_generator_power_variables(problem, pyo)[source]#
Add bounded reactive generator-power variables.
- Parameters:
problem (PyomoPowerModel)
pyo (Any)
- Return type:
None