gtopt/transition_integrality.hpp file

Integrality of the commitment startup / shutdown / tier columns.

A Commitment has status u, startup v and shutdown w per period. u is always integer on a MIP build. The logic row u[p] − u[p−1] = v[p] − w[p] and the exclusion v + w ≤ 1 alone admit v = w = ½ for a unit that stays on (or off), which the start / stop ramp terms (SU·v, SD·w) and user rows on startup / shutdown reward, so v / w must be integer for the formulation to be exact (UnitCommitment.jl's Gar1962 model: binary switch_on / switch_off).

transition_integrality:

  • auto (default): binary (exact).
  • continuous: always continuous in [0, 1] (smaller MIP, not exact with start / stop ramps).
  • binary: always binary.

History: on 2026-11-25 the rows v ≤ u, w ≤ 1 − u (transition_status_rows) were added and auto kept v / w continuous while they were on. They were removed on 2026-11-26 (redundant in a MIP with binary v / w; on the CEN PCP case they made the relaxed LP degenerate with a near-singular basis, and CPLEX declared feasible LPs infeasible), so auto is binary again, as it was with the rows off. The key transition_status_rows is still parsed and ignored with a warning.

startup_tier_integrality (hot / warm / cold start selectors y):

  • continuous (default): with v / w integral, the tier rows (Σ y = v, cumulative offline-window rows) form an interval matrix, hence totally unimodular, so the optimal vertices are integral.
  • integer: declared binary.

relax, continuous_phases and --no-mip relax every one of them whatever the mode. Set globally in model_options or per unit in Commitment; the per-unit value wins.

Namespaces

namespace gtopt