gtopt::MipStartOptions struct

Initial-MIP-solution (warm-start) configuration: a staged pipeline.

Public functions

void merge(MipStartOptions&& opts)

Public variables

MipStartDive dive
STAGES 1-3 — propagation dive + verify + repair (default).
MipStartDomainRules domain_rules
STAGE 2 — power-system domain commitment-repair rules.
OptName dump_file
Optional path to DUMP this solve's COMPLETE solution to (every column, integer and continuous), after the MIP solve completes. A later run replays it via from_file.
OptBool enabled
Master on/off switch for the warm-start pipeline. Replaces the legacy method != none. When false the pipeline still runs Stage 0 iff relax.check is true (diagnosis-only). Default false.
OptName from_file
Optional path to an externally-computed start to REPLAY instead of the round+rules candidate: a dump produced by a previous solve's dump_file. A complete dump (integers AND continuous) reconstructs a consistent start — replaying an optimal dump is accepted verbatim under inject.effort=check_feasibility. Enables a cross-solver hand-off (e.g. HiGHS dumps a feasible incumbent, cuOpt replays it as its start). Pair with skip_relaxation to inject without solving the throwaway Stage-0 relaxation.
MipStartInject inject
STAGE 5 — inject the candidate as a backend MIP start.
MipStartRelax relax
STAGE 0 — LP relaxation analysis & diagnosis.
OptName root_basis_cache_file
Optional path to a cached ROOT LP basis (Experiment A).
MipStartRound round
STAGE 1 — round the relaxation's integer columns.
MipStartScipRepair scip_repair
STAGE 4 (optional) — SCIP feasibility repair.
OptName seed_solution_file
Optional path to an external commitment SEED — a CSV generator_uid,block_uid,u consumed by SeedCommitmentRule (registered FIRST in the domain pipeline). Its (generator, block) statuses seed the rounded commitment for the elements it matches; unmatched elements keep the rounded-relaxation value, and the standard rules then repair v/w and run-lengths. The generic loader — any strategy (previous-day PLEXOS / gtopt, nearest-historical, ML predictor) simply produces this CSV.
OptBool skip_relaxation
Skip the Stage-0 LP relaxation solve when a seed_solution_file fully specifies the integer commitment or a from_file dump is being replayed. The relaxation exists only to fill the rounded candidate; a seed/dump overrides it, so the relaxation is a throwaway LP solve that the MIP's own root then repeats. With this set, the start is built directly (seed: zero base + domain rules; file: the dumped complete solution) and injected; the backend completes any missing continuous dispatch as the single warm root LP (effort defaults to solve_fixed → dual simplex off the fixed integers, no crossover). Default false.

Variable documentation

OptName gtopt::MipStartOptions::root_basis_cache_file

Optional path to a cached ROOT LP basis (Experiment A).

The full-model root LP relaxation is IDENTICAL across warm-start runs (the integer MIP-start only feeds the incumbent heuristic, not the relaxation), yet CPLEX recomputes a cold barrier+crossover on every run. When set:

  • file MISSING → solve cold as usual, then capture the root LP basis (get_basis) and save_basis it here for later runs.
  • file PRESENT → load_basis and install it (set_basis, reconciled to current dims) before the MIP solve, switching the MIP root LP to primal simplex + Advance so CPLEX enters at the optimal vertex (≈0 simplex iterations), skipping the barrier. Barrier (LPMethod=4) IGNORES an installed basis, so a loaded basis MUST force the root to primal simplex — done via SolverOptions::advanced_basis (which the CPLEX backend maps to ADVIND=1 + primal LPMethod/StartAlgorithm). Only honored by the CPLEX backend; other backends ignore it (no basis I/O path). Default unset (no caching; legacy behaviour).