Expand description
DC-OPF instance data derived from the network’s generators and their cost curves: cost, bounds, thermal limits, the generator→bus map, and nodal load.
The paper treats generation as a nodal variable p_g ∈ ℝⁿ, so the
canonical vectors here are bus-indexed (length n), formed by scattering
the generator-space data through C_g. The generator-space vectors and
C_g ride along so a MATPOWER-faithful per-generator formulation can be
reconstructed exactly.
Structs§
- BusCosts
- Length-n bus-indexed cost and bound vectors (paper form). All share index space; each is zero at buses with no generator.
- GenCosts
- Generator-space provenance (length n_gen, in
C_gcolumn order). - OpfInstance
- Static DC-OPF instance data for a case.
Enums§
- Units
- Unit system for the emitted quantities.
Functions§
- build_
opf_ instance - Build the OPF instance. Errors with
Error::NoGeneratorsif the case has no in-service generators,Error::MissingGenCostif a generator has no cost row, orError::UnsupportedCostModelif its cost is present but not a polynomial of degree ≤ 2. - cost_
quadratic_ diag Q = diag(q)as a sparse matrix — the quadratic-cost analog ofsusceptance_diag. Feeds the DC-OPF QP objective½ pᵀ Q p + cᵀ pconsumed by thekktinterior-point operators.- project_
gen_ to_ bus - Scatter-sum a generator-space vector onto buses:
out = C_g v. Buses with several generators get the sum; one generator per bus is exact.