Skip to main content

Module solution

Module solution 

Source
Expand description

The public calculation solutions.

A solution contains values keyed by stable element identity, termination information, an objective where the problem has one, and numerical residuals — never a solver’s variable ordering, factorization, cache, or internal status objects. Each solution shares the immutable instance it solves through shared ownership, just as each instance shares its network: one instance can carry zero, one, or several solutions from different equations, solvers, settings, or initial points, and solution.clone() duplicates neither its instance nor its network.

The registered solutions include DcPfSolution, AcPfSolution, DcOpfSolution, AcOpfSolution, SocwrOpfSolution, McAcPfSolution, McAcOpfSolution, LinDist3FlowOpfSolution, and AcScucSolution.

Structs§

AcOpfSolution
The AC optimal power flow solution: the AC power flow results plus the optimized generator active and reactive dispatch and the objective value.
AcPfSolution
The AC power flow solution: complex bus voltages, active and reactive bus injections, and terminal branch flows over the shared instance.
AcScucSolution
The AC security constrained unit commitment solution over the shared instance.
DcOpfSolution
The DC optimal power flow solution: the DC power flow results plus the optimized generator active dispatch, the objective value, and the optional economic outputs an optimizing producer can attach.
DcPfSolution
The DC power flow solution: bus angles and injections and branch terminal active flows over the shared instance.
GeneratorDispatch
Optional per generator dispatch, in generator table order.
LinDist3FlowOpfSolution
A solution of the fixed-reference LinDist3Flow OPF approximation.
LinDist3FlowOpfValues
Physical primal values from a LinDist3Flow solve.
McAcOpfSolution
The multiconductor AC optimal power flow solution: the power flow results plus per phase generator dispatch and the objective value.
McAcPfSolution
The multiconductor AC power flow solution: terminal complex voltages, optional terminal currents and powers, and source injections over the shared instance.
Residuals
Numerical residuals of the solved equations, in the problem’s power unit. A field is None when the producer did not report it.
ScucDeviceOutputs
Per time point simple dispatchable device outputs: values[t][device] over the stated device order.
ScucNetworkOutputs
Per time point network outputs: values[t][row] over the stated element table order.
SocwrOpfDuals
Optional dual quantities reported by a SOCWR AC OPF solve.
SocwrOpfSolution
A solution of the PowerModels SOCWR relaxation of AC optimal power flow.
SocwrOpfValues
The primal quantities reported by a SOCWR AC OPF solve.
ThreeWindingTransformerTerminalActivePower
Active power at the three terminals of one three winding transformer, in the transformer’s declared winding order. Positive values enter the transformer.
ThreeWindingTransformerTerminalPower
Active and reactive power at the three terminals of one three winding transformer, in the transformer’s declared winding order. Positive values enter the transformer.

Enums§

Termination
How the producing calculation ended.

Constants§

SCUC_DEVICE_OUTPUT_SERIES
Every stored series of ScucDeviceOutputs, as SCUC_NETWORK_OUTPUT_SERIES.
SCUC_NETWORK_OUTPUT_SERIES
Every stored series of ScucNetworkOutputs, one name per field. The serialized fields and this list stay in agreement through the exhaustive destructure test below: adding a field breaks the build until the name lands here and in the stored document.

Type Aliases§

Producer
The producer or solver identity a solution records, free text as the producer states it.