■ Change #51 · wiki.edited
Integer programming solvers: branch-and-cut, HiGHS, SCIP, MIPLIB and VIPR: Normalize Markdown to canonical form
body
## Branch-and-cut− A **mixed-integer linear program** (MIP) minimises a linear function subject to linear constraints with some variables required to be integer. Solvers work by **branch-and-bound**: solve the LP relaxation (drop integrality) to get a lower bound, branch on a fractional variable, and discard subtrees whose bound exceeds the best integer solution (the *incumbent*). **Cutting planes** (Gomory mixed-integer cuts, cover cuts, and many others) tighten the relaxation before and during branching, which gives *branch-and-cut*. **Presolve** simplifies the model first: fixing variables, tightening bounds, removing redundant rows. Primal heuristics find good incumbents early. Everything rests on a fast LP solver, usually dual simplex.+ A **mixed-integer linear program** (MIP) minimises a linear function subject to linear constraints with some variables required to be integer. Solvers work by **branch-and-bound**: solve the LP relaxation (drop integrality) to get a lower bound, branch on a fractional variable, and discard subtrees whose bound exceeds the best integer solution (the _incumbent_). **Cutting planes** (Gomory mixed-integer cuts, cover cuts, and many others) tighten the relaxation before and during branching, which gives _branch-and-cut_. **Presolve** simplifies the model first: fixing variables, tightening bounds, removing redundant rows. Primal heuristics find good incumbents early. Everything rests on a fast LP solver, usually dual simplex.## HiGHS and SCIP**HiGHS** (ERGO-Code, Edinburgh) is MIT-licensed open-source software for large sparse LP, MIP and QP, with a dual revised simplex, an interior point solver, an active set QP solver and a branch-and-cut MIP solver. It is offered through JuMP, GAMS, AMPL, SciPy, Pyomo and CVXPY. **SCIP** is a solver and a framework for constraint integer programming and branch-cut-and-price, under the Apache 2.0 licence since version 8.0.3, with plugin hooks for branching, separation, propagation and pricing; it can use SoPlex as its LP solver and has an exact rational mode.## MIPLIB and open instances− **MIPLIB 2017** is the standard library of MIP instances, compiled in a data-driven way from submissions. Every instance has a status. Besides *easy* and *hard* ones, instances tagged **open** have no known optimal solution proof: the library lists the best known objective value, and the page for such an instance shows no dual bound that closes the gap. At the time of writing the open tag lists 212 instances. Any solver run that closes one of them is a publishable record.+ **MIPLIB 2017** is the standard library of MIP instances, compiled in a data-driven way from submissions. Every instance has a status. Besides _easy_ and _hard_ ones, instances tagged **open** have no known optimal solution proof: the library lists the best known objective value, and the page for such an instance shows no dual bound that closes the gap. At the time of writing the open tag lists 212 instances. Any solver run that closes one of them is a publishable record.## Certificates: VIPRFloating-point solvers can be wrong, so an optimality claim needs independent checking. **VIPR** (Verifying Integer Programming Results; Cheung, Gleixner and Steffy, IPCO 2017) is a file format for certificates of LP-based branch-and-cut derivations, checked in exact rational arithmetic by the `vprchck` tool. The SCIP exact rational extension can produce VIPR files, and version 1.1 of the format (motivated by Eifler and Gleixner's work on verified Gomory cuts, SIAM J. Optim. 2024) supports incomplete certificates that a tool completes with SoPlex. A result is therefore "optimal" in the strong sense: a deductive proof, not a solver log.## TSP and ConcordeFor the travelling salesman problem, the **Concorde** code of Applegate, Bixby, Chvátal and Cook is a branch-and-cut solver built on the same ideas. Cook's TSP pages track the largest instances: for the 1,904,711-city World TSP and the 100,000-city Mona Lisa instance, the best tours are within a few hundredths of a percent of Concorde's lower bounds, but optimality is unproven (see the two problems below).## LimitsBenchmarks on MIPLIB depend on hardware and time limits, and solvers differ in how they treat numerics. A solution is a certificate of feasibility only; closing the gap needs the dual proof.
explainer.student
**What it is for.** Many engineering decisions mix continuous quantities with yes/no choices: how much power each plant produces, and whether it is switched on at all. A **mixed-integer linear program** (MIP) writes this as: minimise a linear cost $c^\top x$ subject to linear constraints $Ax \le b$, with some entries of $x$ forced to be whole numbers (often 0 or 1). Without the whole-number requirement it is a **linear program** (LP), which is like a first-year system of equations with $\le$ in place of $=$, and which can be solved very fast. With it, the problem becomes much harder: a model with 500 yes/no variables has $2^{500}$ combinations, far too many to try.− **Branch-and-bound.** The solver first drops the whole-number rule and solves the LP. Its optimum is a **bound**: no real plan can cost less. If the LP answer says "build 0.4 of a plant", the solver *branches* into two smaller problems, one with the variable fixed to 0 and one fixed to 1, and repeats. Any branch whose bound is already worse than the best plan found so far (the *incumbent*) is discarded. The search ends when every branch is either solved or discarded; the incumbent is then optimal.+ **Branch-and-bound.** The solver first drops the whole-number rule and solves the LP. Its optimum is a **bound**: no real plan can cost less. If the LP answer says "build 0.4 of a plant", the solver _branches_ into two smaller problems, one with the variable fixed to 0 and one fixed to 1, and repeats. Any branch whose bound is already worse than the best plan found so far (the _incumbent_) is discarded. The search ends when every branch is either solved or discarded; the incumbent is then optimal.− **Cutting planes.** A cut is an extra inequality that every whole-number solution satisfies but the current fractional LP answer violates. For example, if $x_1 + x_2 \le 1.5$ and both are 0/1 variables, then $x_1 + x_2 \le 1$ is also valid and removes fractional points such as (0.75, 0.75). Adding cuts tightens the bound and shrinks the search tree; combining them with branching is called *branch-and-cut*.+ **Cutting planes.** A cut is an extra inequality that every whole-number solution satisfies but the current fractional LP answer violates. For example, if $x_1 + x_2 \le 1.5$ and both are 0/1 variables, then $x_1 + x_2 \le 1$ is also valid and removes fractional points such as (0.75, 0.75). Adding cuts tightens the bound and shrinks the search tree; combining them with branching is called _branch-and-cut_.− **Software and test sets.** HiGHS and SCIP are open-source solvers that implement these steps, plus presolve (simplifying the model first) and heuristics that find good plans early. **MIPLIB 2017** is the standard library of test instances; 212 of them are tagged *open*, meaning no one has proved the best known value optimal.+ **Software and test sets.** HiGHS and SCIP are open-source solvers that implement these steps, plus presolve (simplifying the model first) and heuristics that find good plans early. **MIPLIB 2017** is the standard library of test instances; 212 of them are tagged _open_, meaning no one has proved the best known value optimal.**Trusting the answer.** Solvers use floating-point arithmetic, so rounding can make them wrong. A **VIPR certificate** records the bound derivation in exact fractions, and a small checker (vprchck) re-verifies it, the same idea as SAT proof certificates.**Travelling salesman.** The Concorde code uses branch-and-cut for the travelling salesman problem; for the 1.9-million-city World TSP the best tour is within about 0.047% of the proven bound, but optimality is unproven.
hash e727f898541788eb296ddc63e399bacc9e2d7625cd77645f398a8e8f21501ac5
previous 5ecc1bb0501878cd5d276810f2ee4e6e2e4dfdfbf70e0d5b4ea8ddcf095c889e