mip-heuristics

Primal heuristics for mixed-integer programming

Docs arXiv DOI License: MIT

Primal heuristics for mixed-integer programming inside HiGHS. FeasibilityJump, FPR, LocalMIP and Scylla, plus ruin-and-repair and recombination, run as one budgeted chain after presolve in a patched HiGHS v1.16.0. Use it as the highs command line, from Python, or as a C++ library. It accompanies arXiv:2609.22938.

Primal gap over time on lectsched-5-obj: with the heuristics a solution comes at 1.6 s and the gap falls in steps to 0.47, primal integral 0.63; HiGHS alone has none until 413 s and ends at 0.76, primal integral 1.62.

Primal gap over 600 s on the mipfeas instance lectsched-5-obj, HiGHS with and without the heuristics (v0.1.0, 16 workers): the shaded area is each run’s primal integral times 600 s.

Primal gap over time on lectsched-5-obj: with the heuristics a solution comes at 1.6 s and the gap falls in steps to 0.47, primal integral 0.63; HiGHS alone has none until 413 s and ends at 0.76, primal integral 1.62.

Primal gap over 600 s on the mipfeas instance lectsched-5-obj, HiGHS with and without the heuristics (v0.1.0, 16 workers): the shaded area is each run’s primal integral times 600 s.

Problem

A mixed-integer program in HiGHS’s form:

\[\min_x \; c^\top x \quad \text{s.t.} \quad L \le Ax \le U, \quad l \le x \le u, \quad x_j \in \mathbb{Z} \ (j \in I)\]

The heuristics look for a good feasible \(x\) early. A run is scored by its primal integral \(P = \frac{1}{T}\int_0^T \gamma(t)\,dt\), with \(T\) the time limit and \(\gamma(t)\) the primal gap of the incumbent at time \(t\), as the mipfeas benchmark defines it: \(\max\{0,\ (z - z^*) / \max(|z|, |z^*|, 1)\}\) against the reference objective \(z^*\), rounded to six decimals, 1 when the two have opposite signs, and 2 before the first incumbent. \(P\) lies in \([0, 2]\); lower is better.

Method

The heuristics follow their sources, with the departures the Method page lists; new here is the chain: after HiGHS’s presolve and before the root LP, each heuristic runs on parallel workers sharing one solution pool, under one budget unit:

  1. FeasibilityJump (Luteberget and Sartor, 2023): LP-free jump moves on a weighted violation.

  2. FPR (Salvagnin, Roberti and Fischetti, 2025): fix, propagate, repair.

  3. LocalMIP (Lin, Zou and Cai, 2024): local search with lift and breakthrough moves.

  4. Scylla (Mexi et al., 2023): fix-propagate-and-project around a PDLP pump; off by default.

  5. Ruin-and-repair and recombination (after NVIDIA cuOpt): from the pool’s best point and from pairs of pool points; off by default.

A heuristic’s budget is its effort times nnz << 10, vanilla HiGHS’s own FeasibilityJump limit, and it runs only if its effort is above zero. The defaults run FJ, FPR and LocalMIP; their efforts and patiences were tuned on 90 instances and confirmed on the other 143. Details, pseudocode and the other features: Method.

Results

The paired primal integral of the patched HiGHS over vanilla HiGHS on mipfeas (below 1: the heuristics ahead):

Instances

n

Primal-integral ratio

95% CI

Better / tied / worse

All

233

0.763

[0.684, 0.852]

114 / 24 / 95

Held-out

143

0.871

[0.782, 0.970]

63 / 19 / 61

Setup: the 233 MIPLIB 2017 instances of mipfeas, 600 s, one seed, 16 workers on an AMD Ryzen 9 3950X (16 cores), release v0.1.0 on HiGHS v1.15.1 against unpatched HiGHS v1.15.1 at default options; held-out instances were not used for tuning (Results also gives the 95 never seen before the final run). The heuristics reach a good solution sooner; at the time limit the patched solver is slightly ahead. From v0.1.10 on, releases run on HiGHS v1.16.0. Results has the full table and how to reproduce it.

Usage

pip install git+https://github.com/spoorendonk/mip-heuristics    # the Python package; compiles the patched HiGHS

In a clone, with ./build/bin/highs built as in the quick reference. The patch’s options are HiGHS options, set in an options file:

$ printf 'mip_heuristic_fj_effort = 0\nmip_heuristic_local_mip_effort = 0\n' > run.opts
$ ./build/bin/highs --options_file run.opts model.mps
Running HiGHS 1.16.0 (git hash: …): Copyright (c) 2026 under MIT licence terms
Includes third-party software components, see THIRD_PARTY_NOTICES.md for full details
mip-heuristics patch active (custom MIP presolve heuristics; spoorendonk/mip-heuristics)
from mip_heuristics import Highs  # HiGHS's highspy, built on the patched HiGHS

h = Highs()
h.setOptionValue("mip_heuristic_fj_effort", 0.0)  # FJ off, the rest at the defaults
h.readModel("model.mps")
h.run()
print(h.getModelStatus(), h.getInfo().objective_function_value)

More: Quick reference · Options · Results · Method · C++ reference.

Citing

Cite the paper for the results and the archived release for the code. GitHub’s Cite this repository reads CITATION.cff.

@misc{spoorendonk2026presolveheuristics,
  title         = {Presolve heuristics in {HiGHS}: implementation and computational study},
  author        = {Spoorendonk, Simon},
  year          = {2026},
  eprint        = {2609.22938},
  archivePrefix = {arXiv},
  primaryClass  = {math.OC},
  url           = {https://arxiv.org/abs/2609.22938}
}
@software{spoorendonk2026mipheuristics,
  title     = {mip-heuristics},
  author    = {Spoorendonk, Simon},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.22837481},
  url       = {https://doi.org/10.5281/zenodo.22837481}
}

The heuristics are their authors’ work: cite the paper of the one you use (References). The mipfeas benchmark and its metric are Bussieck and Dirkse’s (Expanding the Focus, GAMS, 2026).

License

MIT. See LICENSE.