gtopt/integer_variable.hpp file

Registry abstraction for every integer LP column in gtopt.

IntegerVariable is the runtime counterpart of StateVariable: a single registry entry that names one integer LP column shared across a group of blocks (or a stage / phase singleton). Every producer of an integer column in gtopt — CommitmentLP (status, startup, shutdown, hot_start, warm_start, cold_start), ConverterLP (mode, dir), CapacityObjectLP (expmod), and future producers (Battery on/off, Pump on/off, binary AGC reserves) — routes its column through SystemContext::add_integer_variable (or add_integer_col).

The "no integer column without `IntegerVariable`" invariant is the core design contract of the commitment layout. This header defines the registry types; the choke-point function lives on SystemContext.

Phase 0 of the commitment-layout rollout uses this header as a re-plumbing layer only — producers pass through their existing scope (Block when no commitment_period, Group when set), so the LP is bit-identical to the pre-rollout master. Phase 1 adds per-element shorthand fields (commit_period, commit_stride, commit_layout); Phase 2 adds the binding-stack resolver. AMPL auto-registration is deferred to Phase 1 — Phase 0 producers still call add_ampl_variable explicitly.

Namespaces

namespace gtopt

Classes

class gtopt::IntegerVariable
struct gtopt::IntegerVariable::Key