285. MILP Idioms
285.1. MILP Modeling Idioms
Phrasebook of LP/MILP modeling idioms — small algebraic constructs that encode logic, products, piecewise terms, and other structure as linear constraints.
| Network / flow | |
| conservation: source/sink/0 | |
| net arc flow (single signed var) | |
| arc capacity | |
| flow across a cut | |
| Conditional (Big-M) | |
| active only if | |
| either/or | |
| tight | loose ruins relaxation |
| Binary ↔ continuous | |
| fixed-charge on/off | |
| semi-continuous: 0 or | |
| force strictly positive | |
| Binary logic | |
| at most one | |
| exactly one (SOS1) | |
| OR | |
| cardinality | |
| implication | |
| Products | |
| bin × bin | |
| bin × cont, | |
| McCormick envelope | cont × cont relaxation |
| Abs / norms | |
| (L1) | |
| , epigraph | |
| Min / max | |
| min ⇒ minimax | |
| max ⇒ maximin | |
| Piecewise-linear | |
| λ-method + SOS2 | convex combo of breakpoints |
| δ-method | incremental encoding |
| Sequencing | |
| MTZ subtour elim. | |
| precedence | |
| Covering family | |
| set covering | |
| set packing | |
| partitioning | |
| knapsack | |
| Slack / deviation | |
| slack (≤ → =); surplus | |
| goal prog. / soft | |
| Temporal | |
| inventory balance | |
| Transforms | |
| unit simplex | |
| Charnes–Cooper | linear-fractional → LP |
| symmetry breaking | |