Expand description
The public calculation instances.
A problem instance is complete typed input for one problem family,
distinct from the source network, a matrix projection, a solver
formulation, and a solution. Every instance shares its reusable
electrical network as a cheap owning handle — cloning an instance clones
no network table — and exposes a borrowed network() accessor. Fields
are private, so the sharing strategy can change without a public break.
The instances are DcPfInstance, AcPfInstance,
DcOpfInstance, AcOpfInstance, AcOtsInstance,
McAcPfInstance, McAcOpfInstance, LinDist3FlowOpfInstance,
LinDist3FlowPfInstance, and AcScucInstance. Power flow instances carry
partial boundary specifications; OPF instances carry typed
Objective terms and active constraint selections by stable element
identity, with the numerical limits staying on the network.
Re-exports§
pub use scuc_inputs::ScucActiveReserveZone;pub use scuc_inputs::ScucBranchSwitchingCost;pub use scuc_inputs::ScucContingency;pub use scuc_inputs::ScucDevice;pub use scuc_inputs::ScucDeviceKind;pub use scuc_inputs::ScucDevicePeriod;pub use scuc_inputs::ScucEnergyCostBlock;pub use scuc_inputs::ScucEnergyRequirement;pub use scuc_inputs::ScucInitialCommitment;pub use scuc_inputs::ScucInputs;pub use scuc_inputs::ScucRampLimits;pub use scuc_inputs::ScucReactiveCapability;pub use scuc_inputs::ScucReactiveReserveZone;pub use scuc_inputs::ScucReserveCosts;pub use scuc_inputs::ScucReserveLimits;pub use scuc_inputs::ScucShunt;pub use scuc_inputs::ScucStartupCostAdjustment;pub use scuc_inputs::ScucStartupLimit;pub use scuc_inputs::ScucTransformerControl;pub use scuc_inputs::ScucViolationCosts;
Modules§
- scuc_
inputs - Source neutral inputs for an AC security constrained unit commitment calculation.
Structs§
- AcOpf
Instance - The AC optimal power flow instance: the shared network, the typed objective, and the active generator capability, voltage, thermal, and angle constraint selections.
- AcOts
Branch - One physical branch as the switching instance sees it, in branch table order.
- AcOts
Instance - The AC optimal transmission switching instance: an AC optimal power flow base, whose network supplies the candidate branches and their initial statuses, plus the switching options.
- AcOts
Options - The switching options of an
AcOtsInstance. - AcPf
Instance - The AC power flow instance: the shared network plus one
AcBusSpecificationper bus. - AcScuc
Instance - The AC security constrained unit commitment instance: the shared balanced network plus the Challenge 3 formulation inputs.
- Active
Constraints - The active constraint families of a balanced OPF instance.
- Branch
Current Limit - An explicit current magnitude limit at a branch’s two terminals, per unit
on the system MVA base and each terminal bus’s nominal voltage.
Noneis unbounded, not zero. Source current ratings are never read as these. - Branch
Switching Cost - The cost of changing one branch’s status, in objective units. Only a
change against the initial topology costs anything: opening an initially
closed branch costs
open_cost, closing an initially open oneclose_cost. - DcOpf
Instance - The DC optimal power flow instance: the shared network, the typed objective, the active constraint selections, the selected DC branch susceptance formula, and the reference conditions the network states.
- DcPf
Instance - The DC power flow instance: the shared network plus per bus boundary specifications and the selected branch susceptance formula.
- LinDist3
Flow Applicability - Structured findings and topology evidence from the formulation front end.
- LinDist3
Flow Build Options - Semantic choices used while creating a LinDist3Flow instance.
- LinDist3
Flow Node - One retained voltage node, identified independently of dense row order.
- LinDist3
Flow OpfInstance - Matrix-free LinDist3Flow OPF instance.
- LinDist3
Flow Oriented Conductor - One line conductor in a deterministic source-rooted orientation.
- LinDist3
Flow PfInstance - Fixed-dispatch LinDist3Flow instance.
- LinDist3
Flow Preparation Action - One source component and the prepared representation chosen for it.
- LinDist3
Flow Preparation Report - Complete provenance for a LinDist3Flow preparation pass.
- LinDist3
Flow Reference State - Complete immutable phasor reference in topology node order.
- LinDist3
Flow Reference Voltage - One reference voltage phasor in polar SI coordinates.
- LinDist3
Flow Topology - The source-covered conductor graph used by the formulation.
- McAc
OpfInstance - The multiconductor AC optimal power flow instance: the shared network, the typed per phase objective, and the active terminal voltage, conductor, and per phase generator constraint selections.
- McAc
PfInstance - The multiconductor AC power flow instance.
- Multiconductor
Active Constraints - The active constraint families of a multiconductor OPF instance.
- Objective
- The complete typed objective of one OPF instance: a sum of terms.
- Prescribed
Source Boundary - Complete borrowed source boundary: V(terminal) - V(reference) is the
stated phasor. None means earth; a named reference is on
busand does not imply a connection to earth. Every phase current has an equal opposite contribution at the reference. - Prescribed
Source Voltage - One source’s prescribed phasor parameters, keyed to its network source.
This record does not carry the bus or voltage reference. Use
McAcPfInstance::source_boundaryfor the complete borrowed boundary. - Prescribed
Terminal Power - One load’s prescribed terminal power: the load’s stated per phase complex power, keyed by the load’s name and its terminal map. Watts and vars, as the network states them.
- Switching
Cost - The opening and closing cost of one branch.
- Terminal
Current Bounds - The two terminal current bounds of one branch, per unit;
Noneis unbounded. - Zero
Impedance Merge - What one merge did: which buses now name which surviving bus, and which branches the merge removed.
Enums§
- AcBus
Specification - One bus of an AC power flow problem, the standard partial specification. Powers are MW and MVAr, voltage magnitudes per unit, angles degrees, as the network states them.
- Active
Control Mode - One equipment control that is active for the calculation, by element name.
- Branch
Selection - Which physical branches may change status, by stable branch identity (the
payload
uid, elsebranches:{row}). - Constraint
Selection - Which elements of one constraint family are active, by stable element
identity (the payload
uid, else{table}:{row}; buses by their id). - Current
Limit Policy - Which branch current limits the instance carries. Current limits are separate from the MVA thermal limits the base AC OPF selects.
- DcBus
Specification - One bus of a DC power flow problem: what the calculation is told, never what it solves.
- Islanding
Policy - Whether the final topology may split an AC island of the initial topology. An AC island is a set of energized buses joined by in-service branches; HVDC lines do not join islands, and a bus with no in-service branch is an island of its own.
- LinDist3
Flow Applicability Status - Whether applicability checks permit instance construction.
- LinDist3
Flow Preparation Action Kind - One auditable preparation decision.
- LinDist3
Flow Reference Policy - Selection of the fixed phasors used to form LinDist3Flow coefficients.
- LinDist3
Flow Reference Provenance - Origin of the fixed voltage reference.
- LinDist3
Flow Unsupported - How aggressively the distribution network may be prepared for the LinDist3Flow formulation.
- Objective
Term - One typed objective term.
Functions§
- check_
lindist3flow_ applicability - Check the current strict LinDist3Flow boundary without constructing an instance. Findings are stable diagnostics; callers can display all of them before deciding whether to transform the network.
- merge_
zero_ impedance_ buses - Merge every group of buses joined by in service branches with zero series
impedance (
r == 0andx == 0, self loops and off-nominal transformers excluded) into that group’s smallest bus id, rewriting every element reference and dropping the merged buses and the zero impedance branches.