pwrs.power_models.cvxpy.results#
Result mapping shared by CVXPY W-space and branch-flow formulations.
- pwrs.power_models.cvxpy.results.build_branch_flow_result(network, solution, objective, success, info, formulation)[source]#
Map a conic branch-flow solution to MATPOWER result fields.
- Parameters:
network (PowerNetwork)
solution (PowerModelSolution)
objective (float)
success (int)
info (dict[str, Any])
formulation (str)
- pwrs.power_models.cvxpy.results.build_w_result(network, solution, objective, success, info, formulation)[source]#
Map a W-space conic solution to MATPOWER voltage and branch fields.
- Parameters:
network (PowerNetwork)
solution (PowerModelSolution)
objective (float)
success (int)
info (dict[str, Any])
formulation (str)