modeling-tips#
Big-M constants come from declared bounds#
Description: How MP sizes the big-M constants of logical constraints from declared variable bounds, why naming an expression and declaring its bound tightens the LP relaxation, and how to check this with the root bound and the exported solver model
Tags: modeling-tips, mp, big-m, reinforced-formulations, formulation-comparison, facility-location, milp, amplpy, highs
Author: Gleb Belov (21 notebooks) <gleb@ampl.com>
MP2NL: logical and complementarity constraints with any NL solver#
Description: Using the MP2NL meta-driver from amplpy: which options go where, what the subsolver receives, why the subsolver must handle the problem class MP produces, how to choose a complementarity reformulation, and how to check the returned solution
Author: Gleb Belov (21 notebooks) <gleb@ampl.com>
Perspective reformulation of a convex cost on a semicontinuous variable#
Description: Unit commitment with a convex piecewise-linear fuel cost: the perspective reformulation, its linear form for piecewise-linear costs, its form for MP’s semicontinuous declarations, and checking its value with the root bound before benchmarking
Tags: modeling-tips, mp, perspective, semi-continuous, unit-commitment, piecewise-linear, reinforced-formulations, formulation-comparison, milp, amplpy
Author: Gleb Belov (21 notebooks) <gleb@ampl.com>
Robust Linear Programming with Ellipsoidal Uncertainty#
Description: AMPL Modeling Tips #6: Robust Linear Programming
Author: Gleb Belov (21 notebooks) <gleb@ampl.com>
The model as an evaluator: fix the decisions, solve the rest#
Description: A local-search heuristic around an AMPL model: fixing the discrete decisions and solving the continuous rest with an NLP solver, checking every solve, ranking infeasible candidates with an elastic model, and comparing against the status-quo baseline
Tags: heuristics, fix-and-solve, modeling-tips, amplpy, nonlinear, local-optimization, facility-location, minlp
Author: Gleb Belov (21 notebooks) <gleb@ampl.com>