milp#

Big-M constants come from declared bounds#

declared_bounds_bigm.ipynb Open In Colab Open In Deepnote Open In Kaggle Open In Gradient Open In SageMaker Studio Lab
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

Diverse alternatives: beyond the solution pool#

diverse_alternatives_mga.ipynb Open In Colab Open In Deepnote Open In Kaggle Open In Gradient Open In SageMaker Studio Lab
Description: Generate near-optimal alternatives that really differ: a solution pool against max-min Modelling to Generate Alternatives (MGA) on a unit commitment model, with the budget as a constraint or as an objective hierarchy

Hierarchies with tolerances: the Pareto front and pass statistics#

hierarchy_tolerances_pareto.ipynb Open In Colab Open In Deepnote Open In Kaggle Open In Gradient Open In SageMaker Studio Lab
Description: Cost, emissions and starts in a unit commitment model: objective priorities and tolerances as AMPL suffixes, per-pass statistics, native against emulated hierarchies, and the Pareto front traced by a tolerance sweep

Infeasible? Ask the solver for an IIS#

iis_unit_commitment.ipynb Open In Colab Open In Deepnote Open In Kaggle Open In Gradient Open In SageMaker Studio Lab
Description: Find out why a unit commitment model is infeasible: ask an MP solver for an irreducible infeasible subsystem (IIS) and read it through AMPL suffixes in amplpy

Perspective reformulation of a convex cost on a semicontinuous variable#

perspective_unit_commitment.ipynb Open In Colab Open In Deepnote Open In Kaggle Open In Gradient Open In SageMaker Studio Lab
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

Price what you would relax: feasibility relaxation and priced slacks#

priced_relaxation.ipynb Open In Colab Open In Deepnote Open In Kaggle Open In Gradient Open In SageMaker Studio Lab
Description: After an infeasible unit commitment: a priced feasibility relaxation through AMPL suffixes (.rhspen, .lbpen, .ubpen) against a slack priced in the model, which runs on any solver and sweeps into an operating reserve demand curve

Pricing and target-market#

pricing_and_target_market.ipynb Open In Colab Open In Deepnote Open In Kaggle Open In Gradient Open In SageMaker Studio Lab
Description: Formulate a pricing optimization and target-market problem as a MILP.