Reference
MP-Opt-Model Classes
Use mp.opt_model to build and solve your mathematical programming and optimization models.
Deprecated:
MP-Opt-Model Functions
Master Functions
The MP-Opt-Model master functions provide unified interfaces to multiple solvers for linear program (LP), quadratic program (QP), quadratically-constrained quadratic program (QCQP), nonlinear program (NLP), mixed-integer program (MILP/MIQP) optimization, as well as nonlinear equation (NLEQ) solving and parameterized nonlinear equation (PNE) solution tracing.
Utility Functions
Use these functions to convert constraints or to copy data from one struct to another.
Options Handling Functions
Use these functions to set up input options for individual solvers.
Version Information Functions
Use these functions to check the version of the installed MP-Opt-Model, Gurobi, HiGHS, and OSQP.
Solver Interfaces & Implementations
These functions provide the implementations and interfaces for the solvers accessible through the Master Functions above.
MIQP Solver
NLEQ Solver
NLP Solver
PNE Solver
LP/QP Solver
QCQP Solver
MP-Opt-Model Examples
These are examples of using MP-Opt-Model to build and solve various types of problems.
The following Live Scripts, also found in the examples directory, help to
illustrate MP-Opt-Model usage.
milp_example1.mlx - Good introduction to build and solve a model with MP-Opt-Model.
qcqp_example1.mlx - Example of quadratic constraints and QCQP.
MP-Opt-Model Tests
These functions test that MP-Opt-Model is installed and functioning as expected.
Legacy Tests
Tests of deprecated functionality.
Private Functions
The following are private functions that implement detection of specific
optional functionality. They are not intended to be called directly, but
rather are used to extend the capabilities of have_feature().
- have_feature_bpmpd
- have_feature_catchme
- have_feature_clp
- have_feature_cplex
- have_feature_evalc
- have_feature_fmincon_ipm
- have_feature_fmincon
- have_feature_fsolve
- have_feature_glpk
- have_feature_gurobi
- have_feature_highs
- have_feature_intlinprog
- have_feature_ipopt_auxdata
- have_feature_ipopt
- have_feature_isequaln
- have_feature_knitro
- have_feature_knitromatlab
- have_feature_linprog_ds
- have_feature_linprog
- have_feature_mosek
- have_feature_opti_clp
- have_feature_optim
- have_feature_optimoptions
- have_feature_osqp
- have_feature_quadprog_ls
- have_feature_quadprog
- have_feature_sdpt3
- have_feature_sedumi
- have_feature_yalmip