Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Native API

Model and facade

The core CSR model and result types are preserved. A model minimizes or maximizes objective_offset + c^T x, subject to row and variable intervals, with continuous, integer or binary variable kinds. Sparse row indices must be sorted and unique. Explicit zeros are allowed. The model is immutable.

Rust: NativeSolver::new(NativeOptions).solve(&model, &Options, start, &cancel). Python: solve(model, backend="native", backend_options=NativeOptions(), options=Options(), start=None, cancellation=None). The facade’s default stays dummy. The Python GIL is released during numerical work. Solvers do not call Python during optimization.

Controls

NativeOptions fieldDefaultMeaning
time_limit_secondsNoneWhole-call cooperative budget after validation
node_limit100000MIP relaxations processed; None removes the limit
mip_relative_gap, mip_absolute_gapNoneOpt-in positive MIP gap stops; zero requests full search; see below
adaptive_rootfalseSelect bounded GMI/MIR separation for eligible general MIPs
integer_equality_presolvefalsePropagate integer residues certified on short equality rows
integral_slack_reductionfalseTry an exact proof on an eligible common-slack mixed-integer model
objective_cutoff_boundsfalseUse a certified MIP incumbent to infer missing finite sides
iteration_limit1000000Simplex iterations across phase 1/2, all nodes, certification LPs and retries
pivot_tolerance1e-9Smallest pivot-row entry accepted by the scaled dual ratio test
dual_tolerance1e-7Independent LP dual acceptance threshold
max_factor_entries4000000Stored LU plus eta entries of one basis factorization; a fresh factorization above it is Unsupported
refactor_interval256Maximum updates before rebuilding; work/fill policies can rebuild sooner
steepest_edgetrueDual steepest-edge pricing; false prices by largest infeasibility
presolvetrueSubstitute root-fixed columns; drop free rows and feasible empty rows
redundant_rowstrueAlso drop rows conservatively implied by the root variable box
redundant_row_min_ratio1.0Scan redundancy only if m/n >= this ratio; zero forces scanning
node_reoptimizationtrueStart children from the parent basis; false starts every node from the slack basis
mip_diagnosticsfalseBounded observational MIP search trace in existing backend metadata; see diagnostic contract
mip_trace_limit256Retained trace events, 0..4096; summaries remain available at zero
incumbent_heuristictrueRoot/uncertified-incumbent rounding and at most 64 unit moves per candidate
objective_latticetrueIntegral-objective tightening when sufficient conditions hold
balance_chain_cuts“off”Exact cardinality cuts on recognized bounded stock-balance chains. Modes are “disjoint”, “all”, “presolved”, “objective” and “bound”
balance_chain_heuristicfalseIn “bound” mode without a start, try a residual-capacity schedule that attains the bound
weighted_stock_searchfalseSerial branch-and-price for recognized weighted production-stock chains with shared capacities
mixed_lattice_pruningfalsePrune mixed-model nodes on the rounded-up node bound when the objective is integral on every feasible point
component_progress“off”“small_first” visits small serial components first; “dominant” bypasses the split when only one part has nonzero rows. Limited decomposed solves always keep checked partial component progress
decomposetrueDiscover independent restricted-row components
decomposition_min_variables32Skip graph discovery below this size
component_threads16Maximum component workers, in 1..=16
component_parallel_min_entries2048Solve components serially unless their average size (nonzeros + rows + columns) reaches this; zero forces workers

Version 0.16 removed sparse, max_tableau_entries, fast_pivots and dantzig_pricing together with the two kernels they selected, and renamed max_sparse_entries / sparse_refactor_interval to max_factor_entries / refactor_interval. Unknown option names are rejected, so stale settings fail loudly instead of being ignored.

Options keeps original-unit feasibility/integrality tolerances (1e-7 each) and a maximum native numerical width threads in 1..8 (default 1). Dummy accepts only 1. Numerical widths above 8 are explicitly unsupported. NativeOptions.component_threads controls independent-component workers when numerical width is 1. Numerical width > 1 serializes component/tree/residual nesting, and the effective report records numeric_threads. Independent solves can also use external threads/processes; choose a component worker cap appropriate to the total CPU and memory budget. Node controls have no effect on an LP; the node count remains zero. A primal start is evaluated only for a MIP; an LP start has start_status="rejected".

LP kernel

One kernel solves every LP and node relaxation: a bounded-variable dual revised simplex on a sparse LU factorization. The design and its validation are in simplex/README.md; in brief:

  • Internal form. A x − r = 0 with bounds on the structural columns x and on one logical r_i per kept row (basis column −e_i). Variable bounds are never rows, so branching changes a bound in place and keeps the basis.
  • Scaling. Geometric row/column scaling with column equilibration, rounded to powers of two (skipped when coefficients already lie in [1/32, 32]). Bounds and nonbasic values stay exact; primal and dual tolerances are set per variable so that the targets hold in original units.
  • Factorization. Markowitz pivot search with threshold 0.1 over row and column count buckets, switching to dense partial-pivoting elimination once the active submatrix reaches 30% density. L and U are stored by pivot and transposed, so both triangular solves skip zeros, and a bounded symbolic reach makes them sparse when the right-hand side is. Column replacements follow basis_update: Forrest–Tomlin row updates or a product-form (eta) file, chosen adaptively by the default auto; a singular basis is repaired by logicals. seeded_ftran_limit can start the entering-column reach from known nonzero rows. Values from 1 to 25 set the maximum reached fraction of the basis in percent. Zero uses the established scan. Numeric triangular updates retain their pivot order.
  • Iteration. Dual steepest-edge pricing, the tableau row from ρ = B⁻ᵀ e_r with a row-wise matrix copy, a bound-flipping ratio test with Harris tolerances, and a row/column consistency check that forces a refactorization. Dual degeneracy switches on a temporary cost perturbation. Since 0.35.0, a step clamped at zero and a breakpoint passed with a slightly wrong-signed reduced cost shift that column’s cost (counted in cost_shifts), so the updated reduced costs stay those of the current costs; the shifts are removed with the perturbation. Recomputed prices give a basic logical its (perturbed) cost.
  • Phase 1. Columns without a finite box that start dual infeasible are handled by an auxiliary problem whose bounds are {0}, [0,1], [−1,0] or [−1,1]. If it ends dual infeasible, a zero-cost solve decides between unbounded (primal feasible) and infeasible.
  • Optimality. Declared only after the perturbation is removed and the primal and dual values are recomputed from scratch; cold solves also refactorize first. Basic logical rows get exactly zero price, and a row price whose sign would select an infinite row bound (within the dual tolerance at an optimum) is reported as zero.

Duals map back as y = σ C R π (sense σ, cost scale C, row scale R); reduced costs are recomputed in original units as c − Aᵀ y. In original objective sense, duals satisfy c=A^T row_duals+reduced_costs. For minimization, positive multipliers select lower bounds; negative select upper bounds. Maximization reverses these signs. MIP results do not expose LP duals. Independent primal and LP residual checks remain callable.

The additional Rust APIs check::lp_residuals_with_bounds and safe_dual_bound_with_bounds accept replacement variable bounds; their results refer to that modified subproblem, not automatically to the whole original feasible set. Row presolve encloses each original row activity over the root variable box and omits the row only if the full enclosure satisfies its bounds; a row redundant over the root box stays redundant at every node.

Branch and bound selects the open node with the best conservative bound and dives: after branching, the child nearer to the LP value is solved next from the unchanged factorized parent basis; the sibling is queued. Open nodes keep their box as a shared chain of bound changes, and the parent basis as a snapshot while snapshots stay below 256 MiB; beyond that a queued node starts from the current basis, which is always dual feasible because every MIP column is boxed. A snapshot that differs from the current basis in at most 16 positions (within the refactor interval) is reached by eta updates instead of a refactorization.

The branching variable maximizes a pseudocost score over the down and up degradation per unit, learned from every solved child: by default the weighted sum 0.8·min + 0.2·max (branching_score="weighted_sum"; "product" is opt-in), with most fractional as the rule until the first child is solved. If rounding an integral-looking LP point cannot be certified feasible, a smaller fractional split is tried when both children strictly restrict the integer domain.

Every warm node result is checked independently before it is used: an optimum must pass the original-unit acceptance below, and an infeasibility claim must pass a Farkas re-check (ρᵀ(A x − r) = 0 bounded away from zero over the node box, ignoring negligible coefficients). Either failure, or a numerical failure, gets one slack-basis retry. Limits never retry.

Pruning uses only incumbents whose original-row activities and objective are certified by outward-rounded arithmetic. When the best tolerance-feasible incumbent does not certify (typically continuous values on tight rows), its continuous part is re-solved once on a second LP whose finite row and continuous column bounds are shrunk inward by sixteen primal tolerances, with the integers fixed; that interior point usually certifies. At most 64 such solves run per call. The reported candidate remains the best tolerance-feasible point.

Component execution and budgets

Restricted rows connect their nonzero columns; explicit zeros and free rows do not connect components. All-singleton partitions and models below the size threshold stay on the ordinary path. Fixed-column or redundant cross-row structure may hide separability; graph detection uses the original rows. Each component gets a native solver with decomposition disabled. Original variable/row order, objective offset and LP multipliers are reconstructed and global feasibility/KKT checks run again. When a MIP stops before every component finishes, each component contributes the better of its own checked point and its part of the start or, if it has no rows, its best box corner. The answer keeps the better of this combined point and the start among those that pass the checks. The bound is the outward sum of the component bounds, where an unfinished component contributes its box bound. One infeasible component makes the whole answer infeasible. With component_progress="small_first", serial execution visits components in order of nonzeros; "dominant" keeps the whole model on the ordinary path when only one component has rows.

Serial execution spends the remaining global node/iteration budgets. Parallel execution reserves deterministic shares across all k components: each gets floor(B/k), with one extra unit for the first B mod k components. Unused shares are not redistributed. Consequently a parallel solve can hit a component quota before an equivalent serial solve exhausts the full budget. Both respect the global cap. Set component_threads=1 for the sequential policy.

All workers use the same whole-call deadline and external cancellation flag. Work dispatch stops after an error/limit; already running solves finish at their cooperative checkpoints. Factorizations and numerical state stay private; only dispatch and completed results cross workers. Results are assembled in original component order. max_factor_entries applies per factorization, not as a global memory cap; worker count also controls simultaneous memory use.

total_seconds is wall time. Component conversion/solve/check phase times are sums of worker durations and may exceed wall time, identified by component_timing_mode=worker_duration_sums. component_budget_mode records sequential_shared or parallel_reserved. Diagnostics report actual launched workers and component count with unique keys in both Rust and Python.

Results and conservative bounds

status is a numerical termination reason, independent of candidate quality. candidate and evaluation appear together. An LP optimum requires primal violation <= feasibility tolerance; stationarity and dual signs <= dual_tolerance*(1+max(abs(c))); normalized primal-dual gap <= dual_tolerance. A root LP infeasibility contradicting an accepted MIP start reports numerical_failure.

Every numerical_failure names the check that failed, in the message (; failed check: <site>) and in diagnostics.failure_site (since 0.35.0): root_propagation_infeasible_with_incumbent, root_lp_infeasible_with_incumbent, node_lp_numerical_failure (a node LP, the root LP of a pure LP included, failed after its retries), node_lp_rejected_by_checks, integral_leaf_rejected, unresolved_leaf_below_incumbent, incumbent_below_bound, root_postsolve_rejected, and for decomposed solves component_point_rejected, component_duals_rejected and component_incumbent_below_bound. A caller start that the root reductions would accept but the user’s model rejects is no longer passed to the reduced search; start_status is then rejected. Since 0.33.0, presolve rounds integer bounds and integer row limits after widening them by the feasibility tolerance, so a point that the result check accepts is not removed because decimal data or a computed right-hand side is off in the last place. Infeasibility and unboundedness are numerical findings, not exact certificates. An unbounded MIP relaxation returns unknown, not integer unboundedness. Limits retain the incumbent, when available.

best_bound, when available, uses the existing outward-rounded Lagrangian bound. Surviving/closed branch bounds are retained when aggregating a MIP bound. A None bound is never replaced by the LP objective. Numerical pruning of infeasible LP nodes means this is still not an exact tree certificate. gap retains the core definition: oriented candidate-minus-bound divided by absolute candidate objective, with its sign preserved.

The best objective candidate and the conservative pruning incumbent are kept separately. If a tolerance-only candidate contradicts a conservative bound, an available certified candidate is substituted or numerical failure reported. Integral-objective tightening requires: all variables integral; integral objective coefficients; zero offset; finite box; and a magnitude bound leaving substantial space below 2^53. Mixed-continuous or decimal objectives do not take that path.

BackendReport.effective_options contains all controls and diagnostics.* counters: factorization (factor_peak_entries, refactorizations, basis_updates, bound_flips, basis_repairs, basis_restores, cost_perturbations, cost_shifts), presolve (presolve_removed_rows, presolve_removed_columns), search (reoptimized_nodes, cold_lp_solves, cold_fallbacks, unverified_infeasible_nodes, heuristic_candidates, pruned_nodes, certification_solves, certified_incumbents) and objective_lattice. Counters are diagnostics, not input options. Timings are cooperative wall-clock phase measurements; some retry/acceptance work belongs to the solve phase.

Deliberate limits

No basis import/export. MIP gap stops are available in the general search (see below). Cuts, strong branching, parallel search within a connected tree and MIP presolve were added after this section was first written (see the sections below and the option table in ai-context.md); all but MIP presolve are opt-in. MIPs require finite variable bounds of magnitude <=2^53-1 by default. The root can derive missing bounds from a certified incumbent. Serial search can also handle one-sided continuous bounds. Triangular solves use dense work vectors of the row dimension, and product-form updates store dense eta columns when B⁻¹ is dense; bases with heavy LU fill are solve-bound. max_factor_entries is an engineering guard, not a whole-process memory cap: matrix copies, work vectors, the open-node queue and basis snapshots need additional memory. No application-performance claim until the target card is supplied.

Objective-implied MIP bounds (since 0.32.0)

Set objective_cutoff_bounds=true in Rust, objective_cutoff_bounds=True in Python, or provide the Boolean job field. Enable root presolve and root propagation. A certified feasible point gives an outward upper endpoint of the objective in minimization orientation. The solver subtracts an outward lower bound on the other objective terms to derive a finite side for a costly column. The implied domain keeps the point and every point with an objective at least as good. It is internal to that solve. Candidate and bound reporting remain in original coordinates and objective sense.

If there is no caller start, or the caller’s start fails the exact check, small mixed models with nonnegative oriented costs, nonnegative lower bounds and binary or fixed integer columns can try one continuous LP with all binary setup columns enabled. It shares the solve’s limits and uses at most 512 pivots. Every starter must pass the original-model conservative incumbent check. A zero-cost missing side may require row inference. Models with unresolved sides can use one_sided_mip if eligible. Inspect diagnostics.objective_cutoff_sides and diagnostics.objective_cutoff_start_pivots for completed work.

Only a point that passes the exact check supplies a cap. A caller’s start that fails it, by a rounding error or because it is infeasible, remains the start of the search while it lies in the capped model within the tolerances. Otherwise the LP’s point replaces it and start_status is rejected, so a run that stops at a limit still returns a checked incumbent.

One-sided continuous MIP bounds

Set one_sided_mip=true in Rust, one_sided_mip=True in Python, or set the Boolean in an lp-ip.solve/1 payload. The serial tree accepts finite discrete domains and continuous columns with at least one finite side. Each finite endpoint has magnitude at most 2^53−1. Root row inference runs when configured. Set objective_cutoff_bounds=False to exercise search on the open domains directly. The flag also works with presolve=False.

The node bound uses the original objective and variable sides. On an unavailable certificate the search can try previously checked multipliers, a small blend, exact dyadic evaluation and a budgeted auxiliary LP. The auxiliary costs affect only its dual advice. An unavailable certificate leaves an inherited bound available. Unresolved nodes and leaves keep their place in the global bound. A verified Farkas combination can close an infeasible relaxation. An unbounded claim needs both a checked mixed feasible base point and an improving direction verified on the input model. The solver can return unknown when the relaxation appears unbounded and that evidence is unavailable. Solve statuses follow the numerical contract.

Active one-sided search disables component splitting. Dual presolve, improving-domain root probing and refit, and dynamic choice-tree cuts require finite domains. The report includes the raw and tree open-side counts, bound sources and fallback work under diagnostics.one_sided_*. With mip_diagnostics, the first failed check also reports its index and the residual enclosure when available.

one_sided_shrink_first is a Rust and Python option for models whose open ends are compatible with shrinkage toward zero row prices. It starts with a small shrink and uses the resulting bound if the usual conservative check places it near the LP objective. Otherwise the regular verification sequence continues. The option defaults to false.

one_sided_farkas_repair is an opt-in Rust and Python option. If both signs of an LP’s infeasibility ray fail verification, it tries rounded row prices on a short sequence of dyadic grids. Each candidate must have a verified, strictly positive Farkas margin on the current box. The retry spends no simplex pivots and caps its work at 64 candidate checks per tree. The report counts attempted checks and recovered rays in one_sided_farkas_repair_checks and one_sided_farkas_repaired.

With rational_certification enabled, the one-sided tree also tries to round a nearly integral completion to integer coordinates. It checks the result against the original model before using its objective for pruning. This check is separate from the fixed-integer LP and rational work limits.

flow_cover_cuts and root_cut_family_quota are opt-in Rust and Python root options for both finite and one-sided MIPs. Flow covers use capacity rows and on/off links. The quota reserves one-third of the slots for each of GMI and MIR when both are active, subject to the efficacy and parallelism filters. The remaining slots go to the best eligible cuts.

Lot-sizing interval cuts

Set lot_sizing_cut_rounds to 1–32 with presolve enabled. The separator recognizes exact nonnegative balance chains and binary setup links from coefficients and bounds. For chains with stock and backlog it considers both directions. It separates interval-demand rows, reuses the LP basis as rows are appended and can drop slack rows before search. The option defaults to zero. diagnostics.lot_sizing_cuts, diagnostics.lot_sizing_pivots and diagnostics.root_stages report the work.

lot_sizing_cut_limit sets the number of interval cuts added per round in Rust and Python. It accepts 1–512 and defaults to 96. Set lot_sizing_zero_dual_limit to 0–512 to cap the number of tight zero-price root cuts passed to the tree after interval separation. The selection favors shorter rows and retains every cut with a nonzero final price. By default, the root uses slack-based cut removal.

Reusable conservative bounds (Rust, 0.21)

PreparedDualBound::new(&model, &bounds, &row_duals) prepares an owned cache. set_bound(j, lower, upper) validates and replaces one variable interval; bound() returns SafeDualBound. New matrix/objective/row data or multipliers require a new cache. Preparation is O(nnz+n+m), mutation O(log n), reading O(1), with O(n) storage. Its balanced outward sum can differ in last bits and failure precedence from the fresh API. Keep the IEEE arithmetic environment unchanged throughout its lifetime. See the proof and restrictions. The Python bound API is unchanged.

Experimental LocalMIP root search in Rust

Set NativeOptions::local_mip_effort to a positive coefficient-visit budget to enable one tight-move feasibility attempt at the fractional root of the general serial MIP search with presolve enabled and Options::threads == 1. The value defaults to zero. Component, tree, packing and RENS child solves never start it. The setting is Rust only; the Python options do not have it. Set NativeOptions::local_mip_seed to replay the row sampling and tie breaks. Its default is zero. Wall-time limits can still interrupt a replay. The attempt uses the root LP point, runs after Feasibility Jump when both are enabled, and shares the solve deadline and cancellation token. Its local wall allowance is 250 ms including setup, subject to cooperative checks. After initialization, a drop of at least 10% in the violated row count renews patience, which is one quarter of the visit budget (a zero quotient disables the patience check). The attempt spends no simplex pivots or LP nodes. Candidate evaluation and any subsequent proof certification use the usual solver tolerances and proof path. If the search supplies the first checked incumbent, up to eight subsequent fractional nodes retain the usual rounding opportunity. A successful rounding or an accepted integral leaf ends this allowance. The global budgets also apply to these calls.

When dispatched, diagnostics.root_local_search.* reports its work, wall time and stopping reason. stop is one of feasible, stalled (patience ran out), no_admissible_move (every sampled move was fixed or tabu), effort_exhausted, local_timeout, global_stop and numerical_rejection. The attempt ends at its first checked feasible point, also when that point is worse than the incumbent: improved_incumbent is 1 only if it became the new incumbent. seconds and check_seconds are wall times, so the metadata of two replays differs in them. If the root is fractional and the search was requested but did not start, diagnostics.root_local_search.skip gives the reason (ineligible_path or global_stop_before_dispatch). Benchmark instrumentation is available via the native crate’s local-mip-bench feature. See the pilot recipe and the measured results with their review.

MIP search additions in 0.24

All flags exist in Rust NativeOptions and Python NativeOptions. Search remains serial inside each independent component.

SettingDefaultContract
rational_certificationtrueReconstruct and verify rational incumbents using the exact binary64 input data. The standard input ceiling is 32,768 rows plus columns and 100,000 nonzeros. The solver uses up to 8,192-bit arithmetic, 64 attempts, a budget of 8,000,000 charged limb operations per attempt and 64,000,000 per solve. The solve’s time limit and cancellation are checked during reconstruction and verification. A certificate establishes feasibility of a rational point. The numerical display point also passes the ordinary tolerance checks.
large_rational_witnessfalseWith rational certification enabled, allow sparse active-basis reconstruction on inputs with up to 131,072 rows plus columns and 262,144 nonzeros. These inputs use the same work budget, 32,768-entry sparse basis limit and exact verification of all original rows and bounds.
reliability_branchingfalseProbe unreliable directional pseudocosts at depth at most 8 on models with at most 1024 columns/rows and 20000 nonzeros. At most two candidates per call, 32 pivots per direction. Probe outcomes prune only with branch_probe_proofs (see proof search controls).
reliability_threshold2Required optimal observations in each direction; valid 1..16.
reliability_max_probes64Whole-search probe cap, 0..1024. Probes consume reported node/pivot/time budgets.
feasibility_jumpfalseOne deterministic serial coordinate-jump feasibility-repair call at the root. Proposals use the existing acceptance and certification checks.
feasibility_jump_steps2000Iteration cap, 0..100000; term evaluations capped at min(512*steps, 10000000). No LP solve is hidden in the heuristic.
root_separationfalseInitial root LP and at most eight violated covers per round. Rebuild all caches before search. Skipped when a user warm start is supplied.
root_cut_rounds2Initial LP/separation rounds, 0..4. Root LPs consume whole-call nodes/pivots/time; their work is reported separately from the internal search trace.
cover_liftingtrueSequential exact lifting of directed covers using bounded profit dynamic programming. Only applies with root_separation. Static root_cuts remains a separate legacy control.
mixed_propagationfalseOutward prefix/suffix activities for finite-box rows outside the exact integer-row propagator; up to two mixed/exact passes per node. Row queue work is capped; partial deductions remain sound.

New metadata includes diagnostics.rational_witness_attempts/successes/work, diagnostics.feasibility_jump_steps/work/candidates/weight_bumps, and diagnostics.mixed_propagation_rows/visits/terms/changes/infeasibilities/work_limits. Existing diagnostics.strong_branch_probes/pivots counts both root strong branching and reliability lookahead. diagnostics.certification_solves now counts actual LP repair calls, with rational attempts reported separately.

Directed root separation reports diagnostics.directed_root_cuts, diagnostics.lifted_root_cuts, diagnostics.root_cut_work, diagnostics.root_separation_nodes/pivots, and the initial relaxation objective/bound (diagnostics.root_separation_initial_objective/bound, a number or none). The frozen 0.24.0 raw data used the same names without the diagnostics. prefix. The internal diagnostics.mip_search trace begins after these root prepasses. Its node/pivot coordinates exclude the separately reported prepasses; total SolveResult.nodes/iterations include them. Time spent on prepasses is included in preprocessing time.

Mixed deductions record a bounded node-local reason trail (source row, column, old and new endpoints). All changed columns, including continuous implications, are restored through NodeBox before a sibling is entered. Reasons do not drive conflict learning.

All new optional policies are opt-in because effects vary by model. Exact rational certification is enabled by default, and can be disabled for matched ablations. Failure to reconstruct a witness never weakens acceptance, pruning or stopping thresholds. Decimal-looking data are interpreted as their exact supplied binary64 values; tolerance-feasible equality points may have no exact witness.

Exactly-one models and proof search (since 0.34.0)

These controls come from the GTOC12 44-asteroid scheduling work (summary and reports). All of them are opt-in except repair_integral_leaves. The option set measured there is benchmarks/gtoc12/profiles/suggestions.json.

Exactly-one groups

  • choice_mass_rounds (0 to 16, default 0) separates root upper inequalities for verified absolute differences of exactly-one choices.
  • choice_route_passes (maximum 12, default 0) improves an available start by a bounded label search on recognized chains. Returned candidates pass the original model checks before taking part in the main search.
  • mixed_fix_trials (maximum 128, default 0) caps certified binary-fixing tests at shallow mixed-model nodes. The incumbent and certified dual box bound determine every exclusion.
  • choice_route_restarts (1 to 6, default 1) varies the order of the bounded route heuristic. Each order starts from the same input schedule, and the checked candidate with the best objective is retained.
  • mixed_root_rounds (0 to 6, default 0) tests binary alternatives against an exact incumbent and a conservative opposite-branch dual bound. A proven fixing narrows the root domain and keeps a certified, original-coordinate incumbent. Reoptimization uses the same solve budget.
  • root_refit_sweeps (0 to 32, default 0) rechecks the root’s verified dual bound when the certified incumbent improves. root_refit_fraction (default 0.05) is the minimum gain as a fraction of the initial root gap. Queued nodes intersect their branches with each certified global reduction.
  • retained_root_fixing (default false) stores checked opposite-face bounds for up to 2,048 binary candidates from the first checked tree root. When a certified incumbent reaches a stored bound, the corresponding global fixing can be applied while keeping that incumbent. It shares the improving-domain update with root refit and makes no extra LP solves.
  • choice_route_depth and choice_pair_depth (0 to 256, default 0) limit exact route support and conservative clock and mining-interval propagation to nodes below the configured depth. At a depth of 1 only the root is eligible.
  • choice_order_presolve=True uses exact clock precedence to derive a linear mining bound. A strict order can also fix the corresponding sign binary when its mining variable is nonnegative.
  • choice_local_depth (0 to 8, default 0) runs a bounded strengthened relaxation below that depth. choice_local_rounds (1 to 3, default 1) caps the number of mining-cut rounds per node. Only the verified side bound is used by the tree.
  • safe_node_pruning=True checks a dual cutoff before accepting the relaxation point at likely bound-pruned warm nodes.
  • ordered_group_cuts=True adds bounded root incompatibility cuts when the matrix defines two continuous values from disjoint exactly-one binary rows and compares those values. The cuts follow from the original equalities and the comparison inequality. Set mip_diagnostics=True to inspect root and search progress, including the first bound prune.
  • group_conflict_cuts=True (since 0.35.0) separates root clique cuts from every row side whose columns lie in two exactly-one binary groups, directly or through continuous columns that a group equality defines. Picking p in one group and q in the other gives the row activity a_p + b_q; the pairs that violate the side by more than four feasibility tolerances (decided in exact dyadic arithmetic) form a staircase, and each maximal step is a clique Σ x ≤ 1. On time-indexed schedules these are the disaggregated precedence constraints. group_conflict_rounds (default 32) caps the warm LP rounds and group_conflict_limit (default 256) the cuts per round. Cliques that an existing row already contains are skipped; so are ordered_group_cuts that duplicate supplied rows. Diagnostics: group_conflict_rows, group_conflict_candidates, group_conflict_separation_rounds, group_conflict_cuts, group_conflict_duplicates, group_conflict_pivots, and ordered_group_duplicates. The option is off by default: on the PSPLIB benchmark it raises bounds but proves no additional case (benchmarks/scheduling).
  • grouped_heuristics=True allows two bounded root neighborhoods around the LP and current feasible start on eligible exactly-one models. Each checked improvement can seed the main search. Restricted solves consume the parent work budget and contribute candidates only.
  • With rational certification enabled, large witness attempts first propagate exact row intervals after fixing the integer choices. Independent residual blocks use the bounded dense reconstruction. Each successful witness is checked against all original rows and bounds. Trace fields include diagnostics.rational_witness_outcome and diagnostics.rational_witness_assignment.

Proof search controls

OptionDefaultEffect
branch_probe_actual_workfalseCharges the pivots a scalable strong probe used, at least one per probe, instead of its whole pivot reservation.
branch_probe_pivot_share0When positive, adds one probe pivot to the work budget per this many other pivots, up to 1024. It replaces the probe-count cap reliability_max_probes in scalable mode and requires branch_probe_actual_work.
branch_probe_proofsfalseKeeps a probe’s side bound when it is an outward-safe dual bound on the probed box, or infinite for a verified Farkas ray. Each child takes the larger of the parent bound and its side bound, and a side at or above the incumbent prunes that child. For a probed candidate that is not branched on, such a side fixes the variable at the node. A candidate with a pruned side is preferred for branching.
branch_probe_scorefalseRanks unreliable probe candidates by pseudocost score instead of fractionality.
mixed_fix_depth8Last depth for the mixed-model opposite-branch tests of mixed_fix_trials. Zero admits every depth. Pure-integer lattice models keep depth 8.
root_probe_limit0Incumbent-opposite LP probes on binaries after root cuts, at most 4096, with 64 pivots per probe and 12 per probe on average. Needs a start that passes the exact incumbent check. A side is excluded only by a safe dual bound or a verified ray.
cutoff_pseudocostsfalseRecords a pseudocost observation, capped at the incumbent, when a warm node is pruned by a safe bound.
dual_cutoff_interval0With a certified incumbent, every this many pivots of a warm node LP (at most 256), checks whether the dual objective has passed the incumbent. If so, an outward-safe bound from the current prices is computed on the node box. The LP stops when that bound reaches the incumbent, with conservative lattice rounding when the objective lattice is verified and enabled for this search.
repair_integral_leavestrueWhen the rounded point of an integral node LP fails the checks, tries an exact witness and then a bounded LP with the integers fixed. A checked point becomes a candidate; if it does not close the leaf, the leaf is split on an unfixed integer column. A leaf that cannot be split keeps its bound, and the solve then cannot report optimal unless the incumbent reaches it. false restores the former numerical_failure stop.
root_cut_progress0.001Relative root-bound improvement below which a separation round counts as stagnant; three stagnant rounds stop separation.
root_cut_gap0With a certified start, skips generic root cuts once the root gap is at most this absolute value.
root_cut_delay0Mining rounds (choice_mass_rounds) to run before the first generic GMI or MIR round.
choice_tree_cut_limit, choice_tree_cut_interval0, 64Total mining inequalities appended to the tree LP at depth 4 and deeper, at most 256 and at most 8 per attempt, tried every interval nodes (8 to 4096). Queued bases get basic slacks for the new rows.
proof_conflict_limit0Up to 256 short binary clauses, each proved by an outward-safe dual bound on the root box with the clause’s binaries fixed. Nodes containing a clause are pruned; one open literal is fixed to its other value.
estimated_diving, dive_node_limitfalse, 0Dive into the child with the smaller pseudocost estimate, and return to the best-bound queue after this many consecutive dive nodes.

All pruning, fixing and clause rules use safe_dual_bound_with_bounds (see conservative dual bounds) on the box they exclude, or a verified Farkas ray. Floating-point LP values and reduced costs only rank candidates. Each excluded region’s bound enters the reported best bound.

Diagnostics: diagnostics.dual_cutoff_prunes, diagnostics.probe_proof_prunes/fixings, diagnostics.conflict_learned/prunes/implications, diagnostics.choice_tree_cuts, diagnostics.root_probe_tests/fixed/pivots, diagnostics.root_small_gap_skips and diagnostics.leaf_repair_attempts/repaired/resplits/open. diagnostics.safe_node_prunes counts the other warm-node bound prunes.

Project scheduling (rcpsp, unreleased)

lp_ip_craft_native::rcpsp::Project and the Python function lp_ip_craft.rcpsp.solve minimize the makespan of a single-mode project: nonnegative integer starts, integer durations, finish-to-start arcs that form a DAG, nonpreemptive activities and constant renewable capacities. They do not build an LP or MIP; all arithmetic is on integers.

from lp_ip_craft.rcpsp import solve

out = solve([0, 2, 3, 0],                       # durations
            [[0], [1], [1], [0]],               # demand per resource
            [1],                                # capacities
            [(0, 1), (0, 2), (1, 3), (2, 3)],   # arcs (i before j)
            time_limit_seconds=1.0)
assert out["status"] == "optimal" and out["makespan"] == out["lower_bound"] == 5

The solver works in three stages:

  1. Structural bound. The critical path and, per resource, the total work divided by the capacity, rounded up.
  2. Schedules. Serial schedule generation over priority lists (heuristic, trials). Every schedule is checked with resource events before it becomes the incumbent; a caller’s start is checked the same way and rejected if infeasible.
  3. Deadline search. For a deadline below the incumbent, the search decides whether a schedule of that makespan exists, with precedence windows, compulsory parts, pairs that cannot overlap, interval energy at the root and exhaustive splits of start domains. A refuted deadline raises the lower bound to the next integer and is listed in infeasible_deadlines, so a proof can be rerun deadline by deadline; the search tree is not recorded.
OptionDefaultMeaning
heuristic"justify""index": one serial schedule in activity order. "portfolio": also seeded priority rules. "justify": also reverse schedules and two-sided justification. "local": also priorities near the incumbent
trials256Priority lists after the index schedule; trials in the result counts the serial schedules built
propagation"energetic""precedence", "timetable" (compulsory parts), "energetic" (also non-overlapping pairs and root interval energy), "energy_filter" (also tightens root windows by energy)
branching"conflict""conflict" branches over the activities that overload a period, which partitions the schedules of the node; "bisect" or "earliest" split one start domain
disjunctive_pairstrueWhen the earliest schedule overlaps two activities whose combined demand exceeds a capacity, branch on both orders and keep the chosen order in descendants; otherwise branching applies
unary_edgesfalseEdge finding in both time directions on sets of activities that must run one at a time on a resource
descendingfalseFalse bisects between bound and incumbent; true tests the deadline one below the incumbent
node_limit, time_limit_seconds, seed100000, none, 0Limits return the best checked schedule and the proved bound; node_limit=0 skips the deadline search

The result holds status, starts, makespan, lower_bound, critical_path, critical_path_length, workload_bound, trials, nodes, infeasible_deadlines, timetable_failures and energetic_failures. A project may have up to 256 activities and 32 resources, and the durations may sum to at most 20,000; an activity of positive duration whose demand exceeds a capacity is rejected. The defaults are the profile of the PSPLIB benchmark in one call. With the benchmark’s adaptive prepass, that profile proves 852 of the 960 J30/J60 instances within 15 s per instance on a 2-vCPU host, against 800 without pair branching and the second prepass (benchmarks/psplib).

The new modes are opt-in and documented, with ranges and accounting semantics, in spoc4-025/IMPLEMENTATION.md. A useful application starting recipe is:

NativeOptions(packing_root=True, packing_neighborhoods=64,
              packing_neighborhood_size=192, packing_workers=4,
              scalable_branching=True, time_limit_seconds=30.0)

Use packing_cuts=True to test bounded cross-resource clique/odd-cycle cuts. Use tree_threads=4, tree_split_depth=2 to test a disjoint binary frontier. These options are experimental; see the application measurements before enabling more modes. For sixteen tree workers use at least depth 4, and account for private full-model/factor memory. Neighborhood workers share immutable incidence and exchange complete candidates at batch boundaries. The existing component control remains separate.

Bounded numerical and mixed batch execution (0.28)

from lp_ip_craft import Options, NativeOptions, solve, solve_batch
r = solve(model, backend="native", options=Options(threads=8),
          backend_options=NativeOptions(decompose=False, component_threads=1))
results = solve_batch(models, workers=8, options=Options(threads=1))
mixed = solve_batch(models, workers=2, options=Options(threads=4))

Rust uses the same Options { threads:8, ..Default::default() } and solver.solve_batch(&model_refs, &options, workers, &cancel) contracts. Mixed numerical batches require outer × inner ≤ 8. The legacy serial-inner outer limit remains 16. Results/errors retain input order. Models are borrowed; worker-local numerical state is not shared. Numeric resources stay owned for the batch, while per-job deadlines begin at each solve; batch setup belongs to whole-batch workflow time.

A width is a maximum. Small/sparse work can use scalar paths; compatible simultaneous owners share a pool, so a mixed product need not be fully busy. For packing neighborhoods use numerical width 1 plus packing_workers=8; numerical width 8 selects within-root/kernel work and serializes outer repair/tree/component execution. No Python callback is introduced and the GIL remains released during native work. Independent callers must manage their combined budgets.

Large structural reduced-cost/column-pricing outputs, retained dense Schur rows and independent packing primal-dual root phases can run in parallel. Scalar within-output operation order and ordered merges are preserved. Sparse Markowitz pivot selection, factor/triangular dependencies, dual-bound certification and acceptance checks remain ordered. Worker setup is charged to a direct solve deadline; pre-cancelled/expired calls skip unnecessary resources. Validation remains ahead of cancellation. See validity and reproduction.

Shared agent job API

For durable native jobs with an explicit CPU budget, use the shared protocol and runner and the solver-specific tutorial. The job profile is a deliberately smaller, versioned surface than the full in-process solver API. Unknown profile options are rejected.

MIP gap stopping (since 0.30.0)

NativeOptions(mip_relative_gap=None, mip_absolute_gap=None) leaves early gap stopping disabled. Supplied limits must be finite and nonnegative. A positive absolute or relative threshold is sufficient; zero performs a complete search. Continuous LPs ignore these settings, as they ignore a MIP node limit.

The relative gap is the same quotient as SolveResult.gap: absolute objective-to-bound distance divided by the absolute incumbent objective, including its offset and original sense. At objective zero it is infinite for a positive absolute gap. A missing, non-finite or contradictory frontier bound never triggers a stop. Limits are checked at node boundaries and after the root/node incumbent heuristics with the current relaxation still included in the global frontier.

An open positive gap within a supplied limit returns gap_limit. The candidate is independently checked and a job reports claim feasible, with details.gap; this status never asserts optimality. The gap is measured from the outward-rounded certified incumbent when there is one; when no incumbent passes that certification (equality rows with continuous columns often do not), it is measured from the independently checked incumbent (since 0.35.0). A fully closed frontier retains optimal. Separable MIPs are searched as one model, reporting decompose=false and gap_limit_scope=whole_model. Positive limits with specialized packing controls or tree_threads>1 return Unsupported. Numerical parallel kernels remain available. See evidence and commands.

Optional root cut selection and integer equalities (since 0.31.0)

Set either control on Rust or Python NativeOptions. Both require the master presolve switch. With adaptive_root, bounded sparse pure-integer models may receive GMI or combined GMI/MIR passes. The policy skips uniform-coefficient binary covering rows and dense binary packing systems when all active rows have the corresponding structure. Binary on/off capacity rows coupled with short continuous balance equations can receive bounded GMI passes. Mixed binary, general-integer and continuous models receive at most one GMI pass. An integral relaxation skips separation. Explicit root cut, dual presolve and root heuristic settings take precedence. The policy skips packing and split-tree configurations. It uses at most half the initial iteration and node limits and a quarter of the initial time allowance, where supplied. The total solve retains its original limits. The mip_cut_rounds option continues to cap cut rounds. Check diagnostics.adaptive_root_family and diagnostics.adaptive_root_stop to see what ran.

With balance_chain_cuts, the optional detector recognizes exact integral balances with one or two bounded stocks and positive flows linked to binaries. It sums contiguous balances and uses a sorted capacity prefix to derive a lower bound on the number of active binaries. disjoint selects a compact set of nonoverlapping intervals per chain, all tests all admitted intervals, and presolved detects on the presolved matrix. On eligible unit-cost minimization models objective aggregates disjoint cuts into one objective row. bound computes the lower bound without adding rows and closes the solve before any LP if the start, or with balance_chain_heuristic=true a bounded stock-and-capacity schedule, is a certified point that attains it. Otherwise the search runs on the whole model (no component split), prunes its open nodes on the structural bound once a certified incumbent attains it, and reports at least that bound. The objective bound requires minimization and objective coefficients of 0, or 1 on nonnegative integer columns. The work caps, original feasibility checks and the solve deadline also apply to these experimental options; diagnostics.balance_chain_* report what was found.

weighted_stock_search=true opts in to a serial branch-and-price path for small production-stock models with binary openings, positive quarter-unit opening prices, integral stock bounds, balances in chain order, and shared capacity rows charging production time plus opening overhead. Recognition uses the coefficients and incidences. Other models and unsupported configurations use the usual native path. This option is available in the Rust and Python native APIs.

The search relaxes the shared rows at nonnegative prices. An integer dynamic program computes each independent chain optimum on an outward production grid and subtracts the capacity-price offset. The LP master proposes prices and branch choices. The search rounds bounds up to the verified objective lattice and uses original-model feasible witnesses for pruning. Reported solver statuses remain numerical results.

With mixed_lattice_pruning, a mixed model whose objective is integral on every point with integral integer columns (the objective_lattice conditions) prunes nodes on the rounded-up node bound against the certified incumbent. Pure integer models already do so; the open-node order keeps the raw bounds.

With integer_equality_presolve, short equalities over finite integer variables can tighten bounds before and during the tree. Any scaled equation must pass an outward error check on the actual binary64 coefficients, the variable box and feasibility and integrality tolerances. The original model retains its coefficient arrays and variable coordinates. Every returned point follows the usual original-model checks.

integral_slack_reduction tries an exact proof on cold serial minimization MIPs with integer coefficients, a common bounded continuous sum, a local binary and integer slack in each row, and nonnegative effects of the shared integer columns. It requires an objective dominance proof for every shared integer column, then checks the restored point and matches its original objective to the proved lower bound. Model shape, work, and time limits govern the attempt. An inapplicable model proceeds to the general solver.

Integer bounds, integer row limits and the integral-objective bound are rounded with the feasibility tolerance. A decimal equality over integers such as 15x + 0.1y = 29.8 holds at (2, -2) only up to rounding of 0.1 and 29.8; presolve keeps that point, which the result check accepts, with and without this option. Up to 0.32.0 the default presolve read the stored binary64 values exactly and reported such a model infeasible.

The integral-objective bound also applies to a MIP with continuous columns when all their objective coefficients are exactly zero and the existing offset, coefficient and magnitude guards hold. The serial tree rounds its returned global bound in these mixed models and keeps the original priorities for node selection and reduced-cost fixing. A run that stops at a limit can therefore report a bound equal to its incumbent’s objective while the status stays node_limit, time_limit or iteration_limit: the tree did not close, and the rounded bound did. The gap is then zero and the incumbent is optimal for the stored model. Set objective_lattice=false to disable it. When a weighted MIP node LP exhausts its numerical recovery, one cold retry uses largest-infeasibility pricing, sharing the original time and iteration budgets. A recovered optimum passes the usual residual checks. A recovered infeasibility needs a verified Farkas row. diagnostics.unweighted_node_retries counts these additional LP calls.

Interchangeable MIP blocks

block_symmetry_bits (integer 0–8, default 0) enables ordering of binary prefixes in a cold MIP solve with presolve. The native solver checks the objective, bounds, integer domains, local rows and coefficients in each linking row before ordering two blocks. A supplied primal start bypasses the ordering pass. The proof bound refers to the original optimum. The added rows remove symmetric copies of solutions, not optimal values: they hold for at least one optimal solution, not for every feasible point. diagnostics.block_symmetry_rows counts them.

The exact incumbent witness (rational_certification) also covers larger sparse MIPs. Above 4,096 rows or 8,192 columns it solves a sparse exact basis from equalities and near-active inequalities. It accepts at most 32,768 rows plus columns, 100,000 nonzeros and 32,768 basis entries. Every reconstructed point is checked against all original rows and bounds before it prunes. diagnostics.rational_witness_outcome reports sparse_active for this route. With large_rational_witness the same route admits inputs up to 131,072 rows plus columns and 262,144 nonzeros, with the same basis limit, work budgets and checks.

Multiple subset sum presolve

This presolve runs by default on cold maximization MIPs, without a start and outside an observed pilot, and needs no option. It recognizes a complete binary item × bin assignment:

  • every column is binary with bounds [0, 1];
  • each item row is ≤ 1 with coefficient 1 on one column per bin;
  • each bin row has an integral capacity from 0 to 512 and charges every column exactly its objective coefficient, an integer from 1 to 4,096;
  • every column lies in exactly one item row and one bin row.

The upper bound is the sum over bins of the best fill that each bin reaches on its own with the available items, capped by the total weight. A bounded search (50,000 states) looks for a packing that attains it. If one passes the original-model check, the solve returns optimal with algorithm=native_multiple_subset_sum and no nodes. Otherwise the bound is handed to the general search as a known bound and kept on its result (diagnostics.subset_sum_upper). Models outside these limits (at most 32 bins, 24 distinct weights and 32,768 columns) use the general path unchanged.

Before recognition, a maximization MIP is reported infeasible (algorithm=native_nonnegative_row_bound) when a row’s upper bound is below minus the feasibility tolerance while its activity cannot be negative: every coefficient is zero, or positive on a column with a nonnegative lower bound.

Lattice cutoffs and queued dive children

On pure integer models with an integral objective, and on mixed ones with mixed_lattice_pruning, the in-simplex cutoff of dual_cutoff_interval and the safe_node_pruning check compute a node’s outward bound as soon as its LP value comes within one lattice step of the incumbent, instead of only at the incumbent. The bound is rounded up to the lattice and prunes only when the rounded value reaches the incumbent. With dive_node_limit, a child that a bounded dive returns to the queue keeps its parent’s basis, within the snapshot budget.

HiGHS-derived search options (unreleased)

These opt-in options follow methods of HiGHS 1.16 (highs/mip/ and highs/presolve/, MIT). All default to off, so default solves are unchanged. Each keeps the contract: cuts are derived exactly or by an exact combinatorial argument, every point is checked on the original model and every bound is outward-safe. benchmarks/generic/validate_search.py and benchmarks/generic/validate_path_cmir.py check them against HiGHS.

OptionDefaultHiGHS sourceEffect
clique_cutsfalseHighsCliqueTableRoot clique cuts from a conflict graph of binary literals (below), for at most mip_cut_rounds rounds of 256 cuts.
path_cutsfalseHighsPathSeparatorRoot c-MIR on aggregations of up to six rows (below). Runs with the generic root cut rounds, like mir_cuts.
path_cut_strategyclassicHighsTransformedLpWith path_cuts, choose classic or transformed to use affine lower and upper links and try integer complements.
gmi_affine_boundsfalseHighsTransformedLpWith gmi_cuts, substitute affine lower and upper links in the exact root tableau aggregation.
probing_affine_boundsfalseHighsImplicationsAdd binary-probe links to root affine GMI and transformed path c-MIR on finite mixed-integer boxes.
node_separationfalseHighsSeparation, HighsCutPoolReprice dropped root cuts and separate globally valid MIR at fractional nodes taken from the queue.
node_cut_rounds1HighsSeparationRounds per selected node (1–4). Further rounds require improvement of at least 1% of root cut progress, with a scaled numerical floor.
node_cut_sourcebothHighsCutPoolUse dropped root_pool cuts, fresh global mir, or both.
node_cut_agingfalseHighsLpRelaxation::performAgingRetire cuts after ten checks with positive slack and zero row price. Keep them available for re-pricing.
node_cut_propagationfalseHighsDomain::CutpoolPropagationPropagate from the active cut rows in the current node box.
mip_implicationsfalseHighsImplicationsReuse conditional integer bounds from root probing and propagate row-derived cliques.
implied_bound_cutsfalseHighsImplications::separateImpliedBoundsPrice exact interpolated bound cuts from binary probes at queued fractional nodes.
propagation_conflict_limit0HighsDomain::conflictAnalysisLearn up to this many short binary clauses by replaying exact integer propagation from the root box.
parallel_row_presolvefalseHPresolveParallelRowsAndColsMerge exact parallel rows when both translated sides are representable.
parallel_column_presolvefalseHPresolveParallelRowsAndColsMerge identical or opposite objective and matrix columns with compatible integrality and exactly representable summed bounds. MIP only.
scaled_parallel_columnsfalseHPresolveParallelRowsAndColsEnable parallel-column presolve with exactly proportional matrix and objective coefficients, including nonunit scales. MIP only.
dominated_column_presolvefalseHPresolve::dominatedColumnsWith dual_presolve, remove a dominated binary choice when a certified clique makes the alternate choice available.
doubleton_presolvefalseHPresolve::doubletonEqEliminate a column from short two-term equations and reconstruct its value after the solve.
equality_aggregationfalseHPresolveAggregatorEliminate an implied-free column from equations with three to six terms and limited fill.
implied_integer_presolvefalseHPresolveImpliedIntsTreat a continuous column implied integral by an exact equality as integer in the reduced model.
monotone_dual_fixingfalseHPresolveDualFixingFix a column when movement to one bound improves or preserves the objective and satisfies all row directions.
small_binary_enumerationfalseHPresolveEnumerationEnumerate short integral binary rows to recover fixings and literal conflicts.
node_selectionbest_boundHighsNodeQueuehybrid takes the open node with the smallest 0.5 · bound + 0.5 · estimate, and every tenth time the best-bound node. The estimate is the LP value plus, per fractional integer, the cheaper pseudocost side.
plunge_limit0HighsSearch::backtrackPlungeAfter a node is taken from the queue, up to this many nodes of its subtree are processed depth-first: the dive continues, and when it ends the newest open node created since then is taken.
branching_scoreweighted_sumHighsPseudocost::getScorehighs adds inference and cutoff statistics to a normalized product of the two pseudocost gains (below).
rins_interval0HighsPrimalHeuristics::RINSEvery this many tree nodes with an incumbent, the sub-MIP that fixes each integer column whose node LP value agrees with the incumbent, when at least half agree; 500 nodes. RINS pivots stay within 5 % of the search’s pivots plus 10,000.
restart_fixing_rate0HighsMipSolverData::performRestartWhen the root stage has fixed at least this fraction of the free integer columns, MIP presolve and the root stage run once more on the fixed model.
tree_restart_fixing_rate0Root refit and restartRestart the finite-bound general tree once when a certified improving-domain refit fixes this fraction of its remaining integer columns.
tree_restart_min_nodes32Root refit and restartMinimum processed nodes before a refit or tree-progress vote can restart the tree.
tree_restart_progressfalseHighsMipSolver::checkRestartVote for one restart in the finite-bound general tree when projected work is large and the certified gap stalls.
adaptive_branchingfalseHighsSearchUses accumulated node LP pivots to budget reliability probes and skips a probe on a highly degenerate basis.
root_solution_divingfalseHighsSearchOrders children using their distance to the original root LP value for the branching column.
heuristic_effort0HighsPrimalHeuristicsFraction of accrued node LP pivots available to adaptive RINS and RENS at queued nodes.
root_heuristic_pivot_limitnoneRoot primal workShared pivot cap for root diving, feasibility pump and root RENS.

The selection rules never change what is proved: the global bound is always the smallest bound over all open nodes. Diagnostics appear only when an option is on: node_selections_best_bound, _hybrid and _plunge; clique_table_cliques, clique_table_entries, clique_cuts, clique_duplicates; path_cuts; rins_calls, rins_found, rins_nodes, rins_pivots; restarts, restart_fixed_columns, restart_free_columns.

Clique table. A row side is written as Σ c_j x_j ≤ r. A non-binary column is replaced by its least contribution over its bounds; a row with an unbounded one is skipped. A binary with c_j < 0 becomes its complement 1 − x_j with weight |c_j|. Two literals conflict when the sum of their weights exceeds r by more than four times the feasibility tolerance, decided in exact dyadic arithmetic. With the weights sorted, the longest prefix whose last two weights conflict is a clique, and so is each later literal with the prefix it conflicts with (64 per side). Separation grows a set of pairwise conflicting literals greedily from each literal with a positive LP value and adds Σ literals ≤ 1 when the values sum to more than 1 + 1e-6. A cut over uncomplemented literals that a row of the model already contains is skipped.

Path aggregation. A path starts from a row side that contains a fractional integer column and a continuous column strictly inside its bounds. At each step the continuous column farthest inside its bounds (weighted by its coefficient) is cancelled with the shortest unused row side that contains it with the opposite sign: the aggregate is multiplied by the magnitude of that row’s coefficient and the row by the magnitude of the aggregate’s, so the cancellation is exact. An equality row can be used with either sign, an inequality only in its own direction, so every aggregate is a nonnegative combination of valid row sides. Each aggregate of two to six rows goes through the mir_cuts derivation (variable upper bound substitution, divisors from the fractional integer coefficients) and its cuts are selected with the others.

The transformed strategy also starts from rows with fractional binary controllers on continuous columns. It ranks adjacent row sides by their slack at the relaxation point. Simple bounds and affine lower or upper links provide nonnegative coordinates. The link coefficients and offsets are taken from finite model row sides, and both the substitution and its inverse use exact dyadics. Each path prefix tries up to six divisors and four single-integer complements, retaining the strongest violated cut from those trials. The separator checks the work allowance between derivations. With GMI or MIR active, the path search can use the first third of the generic work allowance. The other families can spend unused work. After enabling this strategy, inspect path_aggregates, path_affine_slacks, path_complements, and path_exact_work.

With gmi_affine_bounds, GMI uses the same exact affine coordinate map. It scales both the aggregated column coefficients and the row activities before rounding and expands the affine slacks back to original columns before enclosure. gmi_affine_rows counts successful derivations that used an affine slack, and gmi_affine_slacks counts those slacks.

With probing_affine_bounds, binary propagation supplies additional affine bounds on continuous columns at the root. Each side follows from the bounds proved at the two binary values. The selector considers those bounds alongside input-row sides for affine GMI and transformed path c-MIR. probe_affine_links counts candidates produced by probing. probe_affine_selected counts candidates selected by the affine-bound ranking across root separation calls.

Parallel columns. Matching objective and matrix coefficients let two columns share a sum or difference coordinate. Both columns must be continuous or both integral. Integral bounds must be whole numbers. An integral merged column represents every integer in its summed interval. The postsolve stack splits the coordinate in reverse order, using the warm start’s split when it still fits. The solver checks the resulting point on the original model. If an exact split fails, the original solve receives the remaining budget. Structural profiles and one-sided boxes skip this pass. With scaled_parallel_columns, both orientations can propose a retained coordinate x + scale * y. The scale and transformed interval must be exactly representable in binary64. For integral columns, the scale must be an integer, and the retained column’s width must span at least abs(scale) - 1. Adjacent translated intervals then cover the whole integer interval. parallel_columns_scaled counts nonunit merges.

Dominated columns. With dual_presolve, an opt-in exchange check compares two mutually exclusive binary literals. The preferred choice must preserve both finite sides of every affected row and have a no-worse objective. The solver can then fix the dominated literal false while retaining an optimum. A fixing must also retain the supplied MIP start.

Node separation. The finite-bound general MIP search keeps a pool of up to 256 pending cuts, expiring cuts after 30 separation rounds without a violation. Newly generated MIR uses the search model’s global rows and bounds. Up to eight cuts are inserted per round and 128 per solve, with at most 64 rounds and the smaller of cut_exact_work and 100,000 exact work units per round. Aging rebuilds the compacted LP and invalidates queued bases whose row positions are stale. Scalar bound certificates obtained using globally valid cut rows remain valid after retirement. Extra LP solves count against the node and pivot budgets. The option uses a single tree with the original column space and skips separation for the one-sided certificate path. Specialized packing and worker sub-MIPs have their own settings. Diagnostics include node_separation_active, node_cut_rounds, node_cuts_added, node_cuts_from_root, node_cuts_expired, node_cuts_retired, node_cut_propagated, node_cut_exact_work and node_cut_extend_failures.

Implications and conflict replay. Up to 128 binary probes record conditional integer bounds. The implication separator interpolates the two bounds over the binary and encloses the result exactly. Propagation conflict replay takes at most eight binary branch assumptions, replays exact propagation over the stable search model, and retests shortened clauses. Verified primal conflicts can remove assignments anywhere in that tree. Cutoff clauses also carry an objective bound. Short binary enumeration uses an outward tolerance margin and contributes pair conflicts to the clique table.

Equality presolve. The solver accepts up to eight substitutions per solve. Changes to coefficients, right-hand sides, and objective offset must be exactly representable. General equality aggregation checks implied-freeness through outward activity bounds and permits up to ten added nonzeros per substitution. The solver transforms a warm start through the same stack and checks reconstructed results against the original model. Failed reconstruction retries the original problem with the remaining node, pivot, and time budgets. Structural search and separation profiles preserve their matrix layout and column kinds. They also skip monotone fixing because it can remove valid warm starts from the reduced box and bypass the structural preprocessing in those profiles. Monotone fixing preserves an optimum and can remove feasible points.

Adaptive search. The optional probe allowance is 100,000 plus half the accumulated node LP pivots, quartered while node LP work is below 100,000 pivots. Every probe consumes at least one work unit. When the basis degeneracy factor reaches 10, probing is skipped. Learned binary clauses can contribute to the highs score when adaptive branching is enabled. The adaptive sub-MIP allowance uses actual node LP pivots plus a small initial allowance. An eligible RINS or RENS call is capped at 128 nodes and 4,096 pivots, further limited by the parent budgets. Its minimum fixing fraction rises after an unsuccessful attempt and falls after an incumbent improvement. Only checked primal results can pass back to the parent.

Tree restart. A restart requires a certified improved incumbent and a successful root refit. It carries forward the incumbent, pseudocosts, valid global cuts, conservative frontier bound and the saved root basis. The incumbent must still fit the tightened box. Structural search profiles and the one-sided path keep their original search mechanisms. This restart trigger uses the fraction of fixed integers.

With tree_restart_progress, the serial tree samples the closed fraction of the binary search tree from the weights of open branches. It checks every 100 processed nodes after the initial minimum. Two consecutive checks must estimate at least 20 times the work completed so far with less than 5% gap reduction. A finite certified incumbent gap and a saved root basis are required. Saving the basis for voting keeps the configured root refit sweep limit. The restart carries the same certified frontier bound and shares the one-restart limit with the fixing trigger.

Root cut diagnostics. With mip_diagnostics, reports include root_cut_seconds, root_cut_selection_seconds, root_cut_tableau_solves, and root_heuristic_pivots. The optional root primal cap is separate from LP solves used for proofs.

Branching score highs. With a and b the down and up pseudocost gains, cost = max(a, 1e-6) · max(b, 1e-6) / max(1e-6, μ²) with μ the mean pseudocost; the inference statistic is the same product over the mean bound changes that propagation made after each branch, and the cutoff statistic over the share of children that were infeasible or cut off. With m(s) = 1 − 1/(1 + s), the score is m(cost) + 1e-4 · (m(cutoff) + m(inference)). Adaptive branching can add conflict observations. Its degeneracy score also controls probe effort.

Restart. The root stage fixes integer columns only with root heuristics and mixed_root_rounds or root_probe_limit, which need an incumbent, so restart_fixing_rate acts only with those. Both need finite bounds, so a model that uses the one_sided_mip path cannot restart. The fixings keep the seed inside the box; the second root stage starts from it. HiGHS restarts at 2.5 % (end of the root) and 10 % (during separation).

On the generic MIPLIB 3 panel, branching_score = "highs" with hybrid selection and plunge_limit = 100 on top of the existing root cuts, heuristics and reliability branching (benchmarks/generic/profiles/highs_search.json) gave the best native result on the held-out test split: 15 proofs against 14 and an 11 % lower shifted geometric mean. Clique cuts, path cuts and RINS cost more time than they saved there. HiGHS proved 21. The defaults are unchanged; benchmarks/generic has the measurements.