Modeling guide for MP-based AMPL solvers#
Ever wondered how to model logical and non-linear constraints? For example:
At most one of the variables x, y can be positive
All variables in a group should have different values
Piecewise-linear approximation of y = sin(x).
MP automates many of such modeling tasks by reformulating AMPL models suitably for the given solver. Moreover, MP supports Multiple objectives. A series of small modeling tasks like these are handled in the MP Modeling Series, while below follows a comprehensive guide.
- Modeling guide for MP-based AMPL solvers
- Modeling overview and implemented solvers
- Expressions supported
- Multiple objectives
- Efficiency considerations
- Choosing between formulations
- Compare root bounds before benchmarking
- Indicator constraints or big-M
- Logic in implications, and facets
- Known formulations for common structures
- Perspective reformulation
- Set membership or disjunction
- A tighter formulation is not always faster
- Nonlinear models: substitute or name
- Comparing formulations fairly
- References
- Numerical accuracy
- Tools & details
- Troubleshooting