gtopt::MipStartContext struct

Context handed to a generator. Precondition: li holds an OPTIMAL LP-relaxation solution and its integer columns are currently relaxed to continuous; int_cols is the snapshot of those columns' raw indices.

Public variables

std::span<const CommitmentRunInfo> commitments
const FlatLinearProblem* flat_lp
std::span<const PeakInjectionInfo> injections
std::span<const int> int_cols
LinearInterface& li
const MipStartOptions& opts
const SolverOptions& relax_opts

Variable documentation

const FlatLinearProblem* gtopt::MipStartContext::flat_lp

The flattened LP (CSC matrix + bounds + objective + integer markers), supplied for generators that build a second solver model in process (e.g. scip_repair). Column index j here equals raw LP column j, so the produced start maps 1:1 onto the dense start vector. nullptr for generators that operate purely on li (the round+rules / file paths).

std::span<const PeakInjectionInfo> gtopt::MipStartContext::injections

Per storage-injection unit (reservoir-fed hydro / battery discharge) the PeakInjectionRule reads — status columns + per-block peak flags. Empty unless mip_start.domain_rules.peak_injection.enabled is on (the SystemLP::resolve hook fills it).