Six short chapters that explain the ideas behind the paper “Optimizing the Optimizers”, each with a figure made from this repository’s own runs and a hands-on example you can run in about a minute. No data downloads are needed for the examples (they generate their own problems); chapter 3 reads the paper’s recorded results.
| # | chapter | you will learn | hands-on |
|---|---|---|---|
| 1 | What a MIP solver does while it runs | incumbents, bounds, gaps, branch-and-bound | examples/ex01_first_mip.py |
| 2 | Measuring “good solutions early” | primal integral, primal-dual integral, time to target | examples/ex02_primal_integral.py |
| 3 | Portfolios, oracles and headroom | single best strategy, per-instance oracle, noise, closed gap | examples/ex03_headroom.py |
| 4 | Choosing versus switching | static settings, mid-solve schedules, restarts, run-level variation | examples/ex04_switching.py |
| 5 | Agents in the loop | the agent interface, bandits, charging decisions to the clock | examples/ex05_my_agent.py |
| 6 | Parallel copies and learned selectors | portfolios without prediction, LightGBM vs a decision model | reading the paper’s tables |
Further reading: resources.md — seminal books and papers, marked open or paywalled.
cd optopt
uv venv .venv && source .venv/bin/activate
uv pip install highspy pyscipopt numpy scipy pandas pyarrow matplotlib
python tutorials/examples/ex01_first_mip.py
Figures are regenerated with python tutorials/make_figures.py.