Written and maintained by CASRAI Editorial Board
Published
On this page
Bonmin (Basic Open-source Nonlinear Mixed INteger programming) is an open-source C++ solver for general mixed integer nonlinear programming (MINLP) problems, distributed through the COIN-OR project. It builds on the COIN-OR solvers Cbc and Ipopt, offers six selectable algorithms, and is exact for convex problems but only a heuristic for nonconvex ones. This page is about the software; searches for “Bonmin” also return car dealerships with similar names, which have no connection to it.
Short answer: what is Bonmin?
Bonmin is a software library and stand-alone program that searches for the best solution to an optimisation problem in which some decision variables must take integer values and the objective or constraints are nonlinear. The Bonmin project describes it as “an open-source code for solving general MINLP (Mixed Integer NonLinear Programming) problems”. It was initiated in 2004 by IBM and Carnegie Mellon University as part of a joint effort to study MINLP algorithms, and it is developed by Pierre Bonami and the other contributors listed in the project’s AUTHORS file. Researchers cite it through the 2008 paper “An algorithmic framework for convex mixed integer nonlinear programs” in Discrete Optimization (doi 10.1016/j.disopt.2006.10.011).
Definition and scope: the problems Bonmin solves
The Bonmin users’ manual describes the problem class as minimising an objective function f(x) subject to constraint functions g(x) with lower and upper bounds, bounds on the variables x, and the requirement that a chosen subset of the variables be integer. The manual states that f and g must be twice continuously differentiable. That smoothness requirement matters in practice: Bonmin’s nonlinear subproblems are handed to a gradient-based solver, so functions with kinks, lookup tables or noise are outside what the solver is designed for.
Two further scope points come directly from the project’s README:
- Exact for convex, heuristic for nonconvex. The README states that Bonmin’s algorithms “are exact when the problem is convex. For nonconvex problems, they are heuristics.” A solution reported for a nonconvex model is therefore a candidate, not a proof of global optimality.
- Not a stand-alone LP or MIP engine. Bonmin is built on top of Cbc (mixed integer linear programming) and Ipopt (nonlinear programming). For models with no nonlinearity, see the CASRAI guide to mixed integer programming; for the nonlinear solver underneath Bonmin, see the guide to Ipopt.
How Bonmin is used in practice
The README lists three ways to run Bonmin directly: as a callable library through its C++ or C interfaces, or as a stand-alone executable that reads models written in AMPL. It also lists the modelling environments and services through which Bonmin can be reached:
- AMPL, natively, using the
bonminexecutable; - GAMS, through the GAMSlinks project;
- JuMP in Julia, via AmplNLWriter;
- Pyomo in Python (see the CASRAI guide to Pyomo);
- the NEOS Server, which lists Bonmin as an AMPL-input solver.
The algorithm is chosen with the algorithm option, and B-BB is the default. The solvers Bonmin calls for its subproblems are also configurable: the manual states that the defaults for the MILP and NLP subproblems are the COIN-OR codes Cbc and Ipopt, and that it is also possible to use Cplex as the MILP solver and FilterSQP as the NLP solver. Cbc in turn relies on further COIN-OR modules, namely Clp for linear programs and Cgl for generating cutting planes.
Installing Bonmin
The README gives these routes, which differ by platform:
- Docker: an image that provides Bonmin and the other projects of the COIN-OR Optimization Suite.
- Debian and Ubuntu:
sudo apt install coinor-libbonmin-dev. - Fedora:
sudo dnf install coin-or-Bonmin coin-or-Bonmin-devel. - FreeBSD:
sudo pkg install math/bonmin. - Windows: download an archive attached to a release on GitHub.
- conda, cross-platform:
conda install -c conda-forge coin-or-bonmin. - Source: the
coinbrewscript is the recommended route because it also fetches the COIN-OR dependencies.
The README adds a caveat that affects reproducibility: because of license incompatibilities, pre-compiled binaries lack some functionality. A study that depends on an optional component should record how Bonmin was obtained, not only its version number.
Components Bonmin relies on
| Component | Role stated in the project documents | Where stated |
|---|---|---|
| Cbc | Default solver for the mixed integer linear subproblems; Bonmin builds on top of it | README; users’ manual |
| Ipopt | Default solver for the nonlinear subproblems; needs a sparse linear solver | README; users’ manual |
| Clp | Linear programming solver used by Cbc | Users’ manual |
| Cgl | Generates cutting planes for mixed integer linear problems | Users’ manual |
| MUMPS | Sparse linear solver built by default when building with coinbrew | README |
| HSL (for example MA27) | Optional sparse linear solvers, often faster than MUMPS; installed separately through ThirdParty-HSL | README |
| Cplex and FilterSQP | Optional non-open-source alternatives for the MILP and NLP subproblems | Users’ manual |
The six algorithms and how they differ
The data table below compares the six values of the algorithm option as described in the README and in the users’ manual. The two sources agree on the substance; the table keeps each source’s own wording so that the descriptions can be checked against the originals.
The names point to a small number of ideas from the MINLP literature. Branch-and-bound (B-BB) solves a nonlinear relaxation at every node of a search tree. Outer approximation (B-OA) alternates between a mixed integer linear master problem and nonlinear subproblems. The paper by Bonami and co-authors presents a framework in which pure branch-and-bound and polyhedral outer approximation are the two extremes, with hybrid methods in between; B-Hyb is the hybrid option. B-QG implements Quesada and Grossmann’s branch-and-cut, B-Ecp is described by the README as an extended cutting plane (ECP) cuts approach in the style of FilMINT, and B-iFP applies an iterated feasibility pump to MINLP, which targets finding feasible solutions.
Where Bonmin matters for research and lab work
Check convexity before trusting the answer
Because the guarantee depends on convexity, the first modelling decision is whether the continuous relaxation of the problem is convex. If it is, Bonmin’s algorithms are exact. If it is not, the README says they are heuristics, so a published result should say so and should not describe the returned point as a proven global optimum. The Bonmin project hosts a library of test instances of convex MINLPs at the IBM and Carnegie Mellon page named in the README, which is useful for benchmarking a model or a solver setting.
The linear solver behind Ipopt affects speed
Bonmin solves its nonlinear subproblems with Ipopt, which needs a sparse linear solver. The README states that when building with coinbrew, MUMPS is built by default, and that the HSL codes (for example MA27) are often faster, but require obtaining the source from HSL and building through ThirdParty-HSL before building Bonmin. Run-time comparisons between two installations are only meaningful if both used the same linear solver.
Where it sits among related tools
Bonmin is one of several open-source options for nonlinear optimisation. The CASRAI guide to CasADi covers a framework for nonlinear optimisation and optimal control, and the Pyomo guide covers a modelling language through which Bonmin can be called. These tools differ in role: Pyomo and AMPL describe the model, whereas Bonmin is the solver that receives it.
How to cite it
The README’s CITE section gives a single reference: the paper at https://doi.org/10.1016/j.disopt.2006.10.011 (Bonami, Biegler, Conn, Cornuéjols, Grossmann, Laird, Lee, Lodi, Margot, Sawaya and Wächter, Discrete Optimization 5(2), 186-204, 2008). Reproducible work should also state the Bonmin release or package version, the algorithm option, the Ipopt linear solver and the Cbc version used, since all of these influence the result.
A reporting checklist for studies that use Bonmin
The checklist below is an editorial synthesis of the facts above, not a rule published by the Bonmin project. Each item exists because the project documents say the item changes what the solver does.
- Convexity statement. Say whether the model is convex, because the README ties exactness to convexity.
- Algorithm option. Name the value of the
algorithmoption, since six are available and B-BB is only the default. - Installation route. Name the package or build route, because the README notes that pre-compiled binaries lack some functionality.
- Ipopt linear solver. State whether MUMPS or an HSL code was used, because the README says HSL is often faster.
- Interface. State whether the model was passed through AMPL, GAMS, JuMP, Pyomo, NEOS or the C++/C library.
- Citation. Cite the Discrete Optimization paper that the README lists.
Readers who need the linear and integer building blocks first can start with the CASRAI guide to mixed integer programming, then return here for the nonlinear case.
Common misunderstandings
- “Bonmin is a car dealership.” Web results for the bare word are dominated by businesses with similar-sounding names. The solver is unrelated to them; it is a COIN-OR research software project.
- “It always finds the global optimum.” Only for convex problems. For nonconvex problems the project says its algorithms are heuristics.
- “It is a single algorithm.” It is a collection of six, selected with the
algorithmoption, with B-BB as the default. - “It runs alone.” It depends on Cbc and Ipopt, and Ipopt in turn needs a sparse linear solver such as MUMPS or HSL.
- “The license is unclear.” The GitHub README states that Bonmin is released as open source under the Eclipse Public License 2.0. The older users’ manual page refers to the EPL as well, and the project’s GitHub repository is the authoritative place to confirm the current terms.
Frequently asked questions
What is Bonmin?
Bonmin is an open-source solver for mixed integer nonlinear programming problems, written in C++ and distributed under the COIN-OR Foundation. It combines the COIN-OR codes Cbc and Ipopt and offers six algorithms, selected with the algorithm option.
Who developed Bonmin?
The project was initiated in 2004 by IBM and Carnegie Mellon University. It was developed by Pierre Bonami and the other contributors listed in its AUTHORS file, and it is distributed under the auspices of the COIN-OR Foundation.
Is Bonmin free?
Bonmin is open-source software released under the Eclipse Public License 2.0, according to its GitHub README. The optional HSL linear solvers and the commercial Cplex and FilterSQP solvers mentioned in the manual are separate components with their own terms.
Which algorithm does Bonmin use by default?
B-BB, the NLP-based branch-and-bound algorithm, is the default.
Can Bonmin solve nonconvex problems?
It accepts them, but the README states that for nonconvex problems the algorithms are heuristics, so the result is not guaranteed to be globally optimal.
Can I use Bonmin from Python?
The README lists Pyomo as one of the ways to reach Bonmin. It can also be installed with conda from the conda-forge channel.
Sources
- Ipopt repository, COIN-OR on GitHub, https://github.com/coin-or/Ipopt, the nonlinear solver Bonmin builds on, named in the Bonmin README (read 2026-11-20).
- Cbc repository, COIN-OR on GitHub, https://github.com/coin-or/Cbc, the mixed integer linear solver Bonmin builds on, named in the Bonmin README (read 2026-11-20).
- NEOS Server, Bonmin with AMPL input, https://neos-server.org/neos/solvers/minco:Bonmin/AMPL.html, as linked from the Bonmin README (read 2026-11-20).
- COIN-OR Bonmin project page and users’ manual introduction, https://www.coin-or.org/Bonmin/Intro.html (read 2026-11-20).
- Bonmin repository README, COIN-OR on GitHub, https://github.com/coin-or/Bonmin (read 2026-11-20).
- Bonami P., Biegler L. T., Conn A. R., Cornuéjols G., Grossmann I. E., Laird C. D., Lee J., Lodi A., Margot F., Sawaya N., Wächter A. (2008), An algorithmic framework for convex mixed integer nonlinear programs, Discrete Optimization 5(2), 186-204, https://doi.org/10.1016/j.disopt.2006.10.011 (citation given in the README, checked 2026-11-20).
Data: Bonmin algorithm options as described by the project README and users' manual
Compares the six values of Bonmin's algorithm option as worded in the COIN-OR Bonmin GitHub README and in the Bonmin users' manual introduction, with the default marked. Compiled from the two primary project documents read on 2026-11-20.
Period covered: 2026.
| algorithm option | README description | users' manual description | default |
|---|---|---|---|
| B-BB | NLP-based branch-and-bound algorithm | NLP-based branch-and-bound algorithm | yes |
| B-OA | outer-approximation decomposition algorithm | outer-approximation decomposition algorithm | no |
| B-QG | implementation of Quesada and Grossmann's branch-and-cut algorithm | implementation of Quesada and Grossmann's branch-and-cut algorithm | no |
| B-Hyb | hybrid outer-approximation based branch-and-cut algorithm | hybrid outer-approximation based branch-and-cut algorithm | no |
| B-Ecp | ECP cuts based branch-and-cut algorithm a la FilMINT | variant of B-QG based on adding additional ECP cuts | no |
| B-iFP | iterated feasibility pump for MINLP | iterated feasibility pump algorithm | no |
Sources
- Bonmin README (COIN-OR on GitHub) (accessed 2026-11-20)
- Bonmin users' manual: Introduction (accessed 2026-11-20)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







