mip_start_scip.cpp file
Optional SCIP repair STAGE of the MIP-start pipeline.
scip_repair_candidate is stage 4 of the MIP-start pipeline (round → domain rules → scip_repair → solver repair + resolve). It is OPTIONAL and composable: enabled by mip_start.scip_repair.enabled=true on top of ANY base candidate (the default round+rules or a from_file replay) and ANY active solver (cuOpt, HiGHS, CPLEX, …).
Where the generic round + domain rules make the commitment structurally plausible, this hands that candidate to SCIP, whose completesol / repair primal heuristics turn it into a GENUINELY feasible integer solution — the one thing cuOpt/HiGHS cannot do, and that even CPLEX's own repair sometimes cannot crack. The result is then injected into the active backend with the configured effort (the "solver repair" stage), so e.g. on CPLEX it is SCIP-structural-repair THEN CPLEX-numerical-repair.
DESIGN — reuse, no SCIP in the core. A second LinearInterface is built on the "scip" backend straight from ctx.flat_lp via the SAME flat->backend load path every solver uses, so SCIP column j == raw LP column j == the candidate index, with no name matching and no hand-rolled matrix build. The candidate is handed to SCIP through the existing set_mip_start(.., MipStartEffort::repair) hook — the SCIP plugin maps repair to its completesol/repair heuristic. ALL SCIP-specific code lives in the SCIP plugin; the core needs no SCIP headers and no #ifdef. When the "scip" backend isn't registered (plugin not built) the stage returns std::nullopt and the caller keeps the pre-SCIP candidate — a benign skip.
STATUS — first draft; depends on the SCIP plugin (in progress) implementing set_mip_start(effort=repair) as a completesol/repair pass.
Namespaces
- namespace gtopt