Options

The patch adds the options below to HiGHS; every other option is HiGHS’s own (HiGHS options).

  • Set them in an options file (highs --options_file run.opts model.mps) or from Python (h.setOptionValue("mip_heuristic_fj_effort", 0.0)). Python has the same defaults; mip_heuristics.options.heuristic_options() lists them.

  • Selection is the budget: a heuristic runs only if its mip_heuristic_<name>_effort is above zero. FeasibilityJump also needs HiGHS’s mip_heuristic_run_feasibility_jump left at true.

  • Units: effort and patience are multiples of nnz << 10, vanilla HiGHS’s FeasibilityJump budget; mip_heuristic_fpr_lp_effort is a share of the RENS/RINS LP-iteration envelope instead.

  • What each heuristic and feature does: Method.

  • MPS (.mps, and .mps.gz in a build with zlib): the column-oriented format, free or fixed (spec).

  • CPLEX LP (.lp): the algebraic, row-oriented format (spec).

The listing is what the solver writes for these options (Highs::writeOptions), in options-file form; a test keeps it equal.

# Per-worker effort budget multiplier for the FeasibilityJump presolve
# heuristic
# [type: double, advanced: false, range: [0, 1e+06], default: 0.3317]
mip_heuristic_fj_effort = 0.3317

# Effort budget multiplier for the FPR presolve heuristic
# [type: double, advanced: false, range: [0, 1e+06], default: 3.161]
mip_heuristic_fpr_effort = 3.161

# Effort budget multiplier for the LocalMIP presolve heuristic
# [type: double, advanced: false, range: [0, 1e+06], default: 3.2865]
mip_heuristic_local_mip_effort = 3.2865

# Effort budget multiplier for the Scylla presolve heuristic. The default 0
# disables it, since on the 233-instance benchmark it produced no accepted
# incumbent while dispatching on every solve. Raising it runs Scylla with no
# rebuild
# [type: double, advanced: false, range: [0, 1e+06], default: 0]
mip_heuristic_scylla_effort = 0

# Effort budget multiplier for the ruin-and-repair LNS presolve heuristic,
# after Scylla in the chain, which ruins the pool's best point and repairs it
# with FeasibilityJump under an objective cutoff. The default 0 disables it
# [type: double, advanced: false, range: [0, 1e+06], default: 0]
mip_heuristic_ruin_effort = 0

# Effort budget multiplier for the recombination presolve heuristic, last in
# the chain, which recombines pairs of pool points and runs FeasibilityJump
# from the offspring. The default 0 disables it
# [type: double, advanced: false, range: [0, 1e+06], default: 0]
mip_heuristic_recombine_effort = 0

# Effort budget multiplier for the dive-time fpr_lp heuristic, as a share of
# the lesser of the remaining RENS/RINS LP-iteration headroom and 80 x
# mip_heuristic_effort x nnz<<10 (nnz<<12 at HiGHS's default 0.05). The
# default 0 disables fpr_lp, since RENS/RINS dominate it inside the shared
# envelope and it costs primal integral where it engages without finding a
# solution. 1.0 takes the whole slice and larger values take more
# [type: double, advanced: false, range: [0, 1e+06], default: 0]
mip_heuristic_fpr_lp_effort = 0

# Per-worker patience for the FeasibilityJump presolve heuristic:
# improvement-free effort tolerated before it gives up, as a multiple of
# nnz<<10, the same unit as this heuristic's effort option, clamped to a
# quarter of it (0 disables the gate)
# [type: double, advanced: false, range: [0, 1e+06], default: 0]
mip_heuristic_fj_patience = 0

# Patience for the FPR presolve heuristic: improvement-free effort tolerated
# before it gives up, as a multiple of nnz<<10, the same unit as this
# heuristic's effort option, clamped to a quarter of it (0 disables the gate)
# [type: double, advanced: false, range: [0, 1e+06], default: 0.3372]
mip_heuristic_fpr_patience = 0.3372

# Patience for the LocalMIP presolve heuristic: improvement-free effort
# tolerated before it gives up, as a multiple of nnz<<10, the same unit as
# this heuristic's effort option, clamped to a quarter of it (0 disables the
# gate)
# [type: double, advanced: false, range: [0, 1e+06], default: 3.1943]
mip_heuristic_local_mip_patience = 3.1943

# Patience for the Scylla presolve heuristic: improvement-free effort
# tolerated before it gives up, as a multiple of nnz<<10, the same unit as
# this heuristic's effort option, clamped to a quarter of it (0 disables the
# gate)
# [type: double, advanced: false, range: [0, 1e+06], default: 0]
mip_heuristic_scylla_patience = 0

# Patience for the ruin-and-repair LNS presolve heuristic: improvement-free
# effort tolerated before it gives up, as a multiple of nnz<<10, the same unit
# as this heuristic's effort option, clamped to a quarter of it (0 disables
# the gate)
# [type: double, advanced: false, range: [0, 1e+06], default: 0]
mip_heuristic_ruin_patience = 0

# Patience for the recombination presolve heuristic: improvement-free effort
# tolerated before it gives up, as a multiple of nnz<<10, the same unit as
# this heuristic's effort option, clamped to a quarter of it (0 disables the
# gate)
# [type: double, advanced: false, range: [0, 1e+06], default: 0]
mip_heuristic_recombine_patience = 0

# Exit the solve after the presolve heuristic chain, before the root LP,
# keeping the incumbent it found
# [type: bool, advanced: false, range: {false, true}, default: false]
mip_heuristic_presolve_only = false

# Run no presolve heuristic in a RINS/RENS sub-MIP, which inherits every other
# option from its parent. The default false runs the chain there as in the
# top-level solve, except while long-lived slots run (mip_heuristic_long_lived
# on, mip_heuristic_long_lived_threads above 0 and a slot heuristic enabled),
# when a sub-MIP skips it too
# [type: bool, advanced: false, range: {false, true}, default: false]
mip_heuristic_skip_submip_chain = false

# Point a rebuilt FeasibilityJump presolve worker restarts from. 0 the default
# (the pool's best). 1 best (the same for FJ). 2 hybrid (Local-MIP v2's hybrid
# restart, each column the best's value or a random one within its bounds,
# 50/50)
# [type: integer, advanced: false, range: {0, 2}, default: 0]
mip_heuristic_fj_restart = 0

# Point a rebuilt LocalMIP presolve worker restarts from. 0 the default (a
# pool draw, perturbed). 1 best (the pool's best, unperturbed). 2 hybrid
# (Local-MIP v2's hybrid restart, each column the best's value or a random one
# within its bounds, 50/50)
# [type: integer, advanced: false, range: {0, 2}, default: 0]
mip_heuristic_local_mip_restart = 0

# Start a rebuilt LocalMIP presolve worker's weights, with probability one
# half, at draws from {1, 2} instead of 1 (CP-SAT's restart weight draw)
# [type: bool, advanced: false, range: {false, true}, default: false]
mip_heuristic_local_mip_restart_weights = false

# Run FeasibilityJump's slots, long-lived ones included, as cuOpt's lane
# table, slot s being lane s mod 16. A slot's first worker starts as its lane
# does, by cuOpt's seeding rule (with a point, lane 0 and odd lanes keep it
# and the other even lanes drop it) and from the lane's structural start where
# the model supports it (greedy covering on lanes 3 and 10, exact-k then
# covering then the precedence start on lane 8, the affine equality start on
# lanes 2 and 4, and on lanes 1, 9, 11, 12 and 15 the structural completion,
# with covering around it and the affine equality start after them on lane 11,
# ambiguous-lock bounds and covering before it on lane 12 and the ordinal
# midpoint after it on lane 15), and on every lane but 0 and 8, on a
# fixed-charge flow network, cuOpt's network start after those and before the
# affine start
# [type: bool, advanced: false, range: {false, true}, default: true]
mip_heuristic_fj_personas = true

# Give the last worker of the dive-time fpr_lp heuristic, when it has two or
# more, to FeasibilityJump started from the dive's LP solution rounded at
# random (cuOpt's LP start persona) instead of an LP-FPR arm, when its budget
# holds FJ's callback period (about 488 nonzeros per worker at the default
# share). Needs mip_heuristic_fpr_lp_effort above 0
# [type: bool, advanced: false, range: {false, true}, default: false]
mip_heuristic_fj_lp_persona = false

# Give the FeasibilityJump workers on cuOpt's exchange lanes (slots 1, 7, 11
# and 15 mod 16, long-lived ones included) cuOpt's cardinality exchange, a
# compound move that sets one member of a uniform binary equality row from 1
# to 0 and another from 0 to 1 so the row's count is kept
# [type: bool, advanced: false, range: {false, true}, default: true]
mip_heuristic_fj_exchange = true

# Run the Scylla presolve heuristic's pump as cuOpt's: an L1 distance
# projection blended with the objective, its weight reset on each improvement,
# a PDLP tolerance set by how integral the last LP point is, a warm start from
# the rounding, and fix-and-propagate with repair on every chain. Needs
# mip_heuristic_scylla_effort above 0
# [type: bool, advanced: false, range: {false, true}, default: false]
mip_heuristic_scylla_cuopt_pump = false

# Give each Scylla presolve worker a PDLP of its own, so no worker waits for
# another's LP solve or rounds a peer's last LP point, at one copy of the LP
# per worker. A build with the GPU PDLP ignores it and keeps one shared
# instance. Needs mip_heuristic_scylla_effort above 0
# [type: bool, advanced: false, range: {false, true}, default: false]
mip_heuristic_scylla_pdlp_per_worker = false

# Keep the Scylla presolve heuristic's pump going after the first incumbent,
# as cuOpt does: its projection LP takes the row objective <= best - max(0.1%
# of |best|, 1e-7), moved down as the incumbent improves, and a pump whose LP
# is infeasible under the cut stops. Needs mip_heuristic_scylla_effort above 0
# [type: bool, advanced: false, range: {false, true}, default: false]
mip_heuristic_scylla_objective_cut = false

# Race a GPU FeasibilityJump worker beside the whole solve in long-lived mode.
# Needs a MIP_HEURISTICS_CUDA build, mip_heuristic_long_lived on and
# mip_heuristic_presolve_only off. Any other run warns and runs
# FeasibilityJump on the CPU only
# [type: bool, advanced: false, range: {false, true}, default: false]
mip_heuristic_fj_gpu = false

# Effort budget multiplier for FeasibilityJump on the original model while
# presolve runs, per worker (one on a thread of its own, and with
# mip_heuristic_fj_personas, FeasibilityJump in the chain and at least 7
# threads a second on lane 6), as a multiple of the original model's nnz<<10.
# It stops when presolve returns, and its best solution becomes the MIP start,
# kept in original space as the answer unless the solve finds better. The
# default 0 disables it
# [type: double, advanced: false, range: [0, 1e+06], default: 0]
mip_heuristic_early_fj_effort = 0

# Keep an owner for heuristics that run on threads of their own beside branch
# and bound for the main MIP's whole solve, whose solutions the solving thread
# installs at HiGHS's external-solution poll points and once more at the end.
# mip_heuristic_long_lived_threads sets how many such threads run. The default
# false allocates nothing and starts no thread
# [type: bool, advanced: false, range: {false, true}, default: false]
mip_heuristic_long_lived = false

# Number of long-lived heuristic threads beside branch and bound, dealt
# round-robin to FeasibilityJump, LocalMIP, Scylla (not beside the whole-solve
# GPU race in a MIP_HEURISTICS_CUDA build), ruin-and-repair and recombine,
# those whose effort option is above zero, from the end of the presolve
# heuristics to the end of the solve, paused across each restart. Needs
# mip_heuristic_long_lived. The default 0 starts none
# [type: integer, advanced: false, range: {0, 2147483647}, default: 0]
mip_heuristic_long_lived_threads = 0