mip_start_dive.hpp file
Relaxation-guided propagation dive + verify/repair MIP start.
The default MIP-start generator. It turns the solved LP relaxation into a start that is FEASIBLE for the MIP (not merely "near-feasible"), in three generic, solver-agnostic stages:
- Dive (
propagation_dive): fix the integer columns one at a time in relaxation-confidence order (integral cells first, then fractional cells by decreasing distance from 1/2) to their rounded relaxation value, running activity-based bound propagation over EVERY row of the flat LP after each fixing. A fixing that propagates to a conflict is undone and the opposite value tried; a cell where both values conflict is deferred. Pure-integer structure — configuration exclusivity (Σ u ≤ 1), plant-config ⇒ unit rows, min up/down windows, u/v/w logic, fixed status,u ≤ 0operational rows — is thus satisfied by construction, with no element names or PAMPL knowledge. Mixed rows (reserve gated by u, Pmin·u ≤ p) propagate through the continuous bounds. - Verify (
solve_fixed_integer_lp): fix every integer column to the candidate and solve the continuous LP. Optimal ⇒ the start is a feasible MIP solution and its objective is the start's TRUE cost. - Repair when the fixed LP is infeasible: an elastic LP (integer columns relaxed back to their bounds, objective + M·|x − candidate|) names the integer cells that must move; they are re-targeted and re-dived first, for a bounded number of rounds. If that still fails, a bounded sub-MIP frees only those cells and the integer columns of the still-violated pure-integer rows (+ their short-row neighbours) and keeps the rest fixed.
Every LP/MIP solve goes through LinearInterface (bounds, objective, resolve), so the stage works on every backend; the propagation needs the retained flat LP (LinearInterface::flat_lp_snapshot) and degrades to the legacy round + domain rules when it is absent.
Namespaces
- namespace gtopt
Classes
- struct gtopt::DiveInput
- Input of
propagation_dive. All dense spans are in RAW LP space. - struct gtopt::DiveOutput
- Outcome of
propagation_dive. - struct gtopt::DiveSummary
- Summary of a dive run, for the pipeline report and logs.
- struct gtopt::FixedLpResult
- Result of a fixed-integer LP solve.