# Solvers

One of the core ideas in YALMIP is to rely on external solvers for the low-level numerical solution of optimization problem. YALMIP concentrates on efficient modeling and high-level algorithms.

## Recommended installation

Linear programming can be solved by quadratic programming which can be solved by second-order cone programming which can be solved by semidefinite programming. Hence, in theory, you only need a semidefinite programming solver if you only solve linear problems. In practice though, dedicated solvers are recommended.

A recommended installation if you mainly intend to solve SDPs and LPs and QPs is MOSEK, SEDUMI or SDPT3.

If you solve non-trivial linear and quadratic programs (and nonconvex problems via BMIBNB, a dedicated LP/QP solver is recommended. Most examples in this Wiki have been generated using MOSEK, GUROBI and CPLEX. All these solvers have academic licenses giving access to full unlimited versions.

If you intend to solve large problems or other problem classes, you are advised to download several solvers to find one that works best for your problem.

And finally, there are no free lunches and you get what you pay for (unless you’re in academia!).

### Available solvers by problem class

A simple categorization is as follows (the definitions of free and commercial depends slightly on the solver, please see the specific comments in the solver description)

### Linear programming (free)

CDD, CLP, GLPK, LPSOLVE, QSOPT, SCIP

### Mixed Integer Linear programming (free)

### Linear programming (commercial)

CPLEX (free for academia), GUROBI (free for academia), LINPROG, MOSEK (free for academia), XPRESS (free for academia)

### Mixed Integer Linear programming (commercial)

CPLEX (free for academia), GUROBI (free for academia), INTLINPROG, MOSEK (free for academia), XPRESS (free for academia)

### Quadratic programming (free)

OSQP, BPMPD, CLP, OOQP, QPC, QPOASES, QUADPROGBB (nonconvex QP)

### Quadratic programming (commercial)

CPLEX (free for academia), GUROBI (free for academia), MOSEK (free for academia), NAG, QUADPROG, XPRESS (free for academia)

### Mixed Integer Quadratic programming (commercial)

CPLEX (free for academia), GUROBI (free for academia), MOSEK (free for academia), XPRESS (free for academia)

### Second-order cone programming (free)

### Second-order cone programming (commercial)

CPLEX (free for academia), GUROBI (free for academia), MOSEK (free for academia)

### Mixed Integer Second-order cone programming (commercial)

CPLEX (free for academia), GUROBI (free for academia), MOSEK (free for academia)

### Semidefinite programming (free)

CSDP, DSDP, LOGDETPPA, PENLAB, SCS, SDPA, SDPLR, SDPT3, SDPNAL, SEDUMI

### Semidefinite programming (commercial)

LMILAB, MOSEK (free for academia), PENBMI, PENSDP (free for academia)

### General nonlinear programming and other solvers

BARON, FILTERSD, FMINCON, GPPOSY, IPOPT, KNITRO, LMIRANK, MPT, NOMAD, PENLAB, SNOPT, SPARSEPOP

## Internal solvers

By exploiting the optimization infrastructure in YALMIP, it is fairly easy to develop algorithms based on the external solvers. This has motivated development of mixed integer conic solvers (BNB, CUTSDP), general global nonlinear nonconvex integer programming (BMIBNB, KKTQP ), simple quasi-convex problems (bisection), sum-of-squares and semidefinite relaxation modules (solvesos, solvemoment) and a global solver for pretty much any nonlinear problem (BMIBNB), just to mention some of the most important modules in YALMIP.