gtopt/line_commitment.hpp file

Per-line Optimal Transmission Switching (OTS) parameters.

Defines the LineCommitment structure which marks a transmission Line as a switching candidate (Fisher-O'Neill-Ferris 2008 [1] OTS decision variable: per-line u_l ∈ {0, 1} opens or closes the circuit during the optimization). Each LineCommitment entry links to exactly one Line via a foreign key.

OTS is strictly opt-in: the presence of a LineCommitment row makes the referenced Line a switching candidate, absence keeps it pure LP. This sparsity discipline is critical — Fisher 2008 shows that most savings come from a handful of lines [1], and even single- stage 118-bus all-line OTS is computationally hard [2].

LineCommitment constraints are only enforced on stages marked as chronological. On non-chronological stages (e.g. duration-weighted representative blocks) the commitment is silently skipped and the line behaves as if no LineCommitment row existed — matching the convention of the existing Commitment element for generators (see commitment.hpp:14).

Method gate: OTS is rejected on the SDDP and cascade methods. The mathematical reason is in issue #509 §"Why monolithic only, not SDDP" — Benders cuts on a mixed-integer subproblem are unsound (Zou-Ahmed-Sun 2019). The validation step in validate_planning.cpp raises a structured error if any active LineCommitment row coexists with method = sddp or cascade.

JSON Example

{
  "uid": 42,
  "name": "L_18_19_ots",
  "line": "L_18_19",
  "initial_status": 1,
  "kvl_big_m": 18.5
}

References

[1] Fisher, O'Neill, Ferris (2008). Optimal Transmission Switching. IEEE T-PWRS 23(3):1346-1355. [2] Aguilar-Moreno, Pineda, Morales (2025). A Graph-Based Iterative Strategy for Solving the All-Line Transmission Switching Problem. arXiv:2502.10333.

Namespaces

namespace gtopt

Classes

struct gtopt::LineCommitment
Marks a Line as an OTS switching candidate (issue #509).