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.

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().