Papers
Topics
Authors
Recent
2000 character limit reached

Mixed-Integer Linear Programming

Updated 3 December 2025
  • Mixed-Integer Linear Programming (MILP) is defined as a linear program with discrete and continuous variables, modeling complex optimization problems in real-world applications.
  • MILP formulations use various constraint types—such as bound, equality, logic, and SOS constraints—to encode discrete decisions and nonlinear phenomena within a linear framework.
  • Advanced techniques, including piecewise linear approximations, machine learning-driven reductions, and automated natural language synthesis, significantly enhance solver performance and scalability.

Mixed-Integer Linear Programming (MILP) Formulations

Mixed-Integer Linear Programming (MILP) formulations are the foundation of discrete optimization, underpinning a spectrum of real-world and theoretical problems spanning scheduling, routing, energy, network design, and synthetic modeling of logical or algebraic systems. MILPs express combinatorial and hybrid-integer decision processes via a finite set of linear inequalities/equalities and an objective, with certain variables restricted to integer or binary values.

1. Foundational Principles of MILP Model Structure

A standard MILP is defined as

minx  cxs.t.Axb,  xi{0,1}  or  Z,  xjR\min_{\mathbf{x}} \; \mathbf{c}^\top \mathbf{x} \quad \text{s.t.} \quad \mathbf{A}\mathbf{x} \leq \mathbf{b}, \; x_i \in \{0,1\} \;\text{or}\; \mathbb{Z}, \; x_j \in \mathbb{R}

where x\mathbf{x} partitions into integer, binary, and continuous blocks, and all constraints and the cost are linear in x\mathbf{x}.

A critical aspect of MILP formulation is the encoding of discrete, logical, or nonlinear constraints into linear algebraic restrictions, enabling off-the-shelf LP/MIP solvers to efficiently branch and cut within a convex polyhedral structure over a discrete feasible set.

2. Canonical Constraint Types and Knowledge Engineering

The expressive power of MILPs derives from a surprisingly small taxonomy of constraint classes (Mak-Hau et al., 2021):

  • Bound Constraints (Type I): Linear inequalities, e.g. axba^\top x \le b, capturing resource caps and knapsack restrictions.
  • Balancing/Eq Constraints (Type II): Linear equalities (ax=ba^\top x = b), enforcing flow conservation or unique assignments.
  • Set Constraints: Special cases for binary variables, such as set packing (x1\sum x \le 1), covering (x1\sum x \ge 1), and partitioning (x=1\sum x = 1).
  • Logic Constraints: Linearized versions of implicational or disjunctive rules, including Big-M formulations, indicator constraints, if-then/either-or, and SOS (special ordered sets).
  • SOS1/SOS2 Constraints: Enforce that at most one (SOS1) or two adjoining (SOS2) variables are nonzero, commonly modeling piecewise-linear or selection mechanisms.

The constraint typology can be navigated via an Optimization Modelling Tree, mapping high-level problem structure to canonical MILP forms and enabling systematic, machine-readable model synthesis from user requirements (Mak-Hau et al., 2021).

3. Advanced Formulations: Nonlinearities, Piecewise, and Logical Modeling

a. Nonconvex Piecewise-Linear Functions

Nonconvex and piecewise linear phenomena are encoded via logarithmic-sized formulations. Univariate functions are represented by embedding the convex hull of an SOS2 disjunction, from which ideal (gap-free) formulations are derived using geometric encodings such as Gray codes or zig-zag integer codes, requiring only O(logd)O(\log d) binaries for dd segments (Huchette et al., 2017). Bivariate piecewise-linear graphs leverage biclique covers of the triangulation conflict graph, yielding formulations scaling as O(logn)O(\log n) in each axis, enabling tractable modeling of 2D nonlinearities.

b. Multilinear and Factorable Nonlinear Constraints

For multilinear terms, convex hull formulations such as the λ-formulation (Fλ\mathfrak{F}^\lambda) and recursive McCormick (Frmc\mathfrak{F}^{rmc}) produce tight relaxations by exactly describing the hull of the feasible region in extended spaces (Nagarajan et al., 2018). Piecewise polyhedral relaxations further refine local approximations by partitioning variable domains and imposing vertex-based polyhedral constraints, at the cost of increased variable count (Sundar et al., 2020).

c. Embedding Surrogate Models

When embedding piecewise-linear surrogates (such as ReLU neural networks), standard big-M techniques are employed for each activation, where binary variables select active linear regimes and tight affine bounds (via bound-tightening algorithms) are critical for solver efficiency (Grimstad et al., 2019).

4. Reduction, Learning, and Automated Model Synthesis

a. Constraint and Variable Reduction

Recent advances have focused on using machine learning, particularly graph neural networks, to automate the reduction of MILPs for large-scale instances. Approaches such as constraint-based reduction leverage tight-constraint identification and multi-modal representation learning with both instance-level and abstract-level graph features to predict the subset of constraints that should be fixed to equality, thereby significantly reducing feasible space and accelerating solution time without loss of optimality (Li et al., 26 Aug 2025).

b. Synthesis from Natural Language

Frameworks integrating LLMs with mathematical templates have demonstrated the ability to automatically identify, classify, and generate MILP models from unstructured text. This three-stage methodology—variable identification, constraint classification (resource, demand, logic, etc.), and template-driven constraint generation—permits not only fully automatic MILP synthesis, but also accurate capture of logical (binary) relationships using indicator and Big-M forms (Li et al., 2023).

5. Specialized Problem-Class Formulations

a. Network Flow, Transportation, and Binarization

For network-based problems, integer variables for flow or capacity can be binarized by various schemes (full, unary, logarithmic), with full binarization facilitating the most effective cutting plane generation (MIR/GMI cuts) and drastically reducing branch-and-bound tree size, as revealed by computational studies on transportation and MST benchmarks (Bonami et al., 28 Nov 2025). Retaining explicit flow-conservation or capacity rows in the binarized variables enables automatic generation of strong formulation cuts by MILP solvers.

b. Covering and Location on Graphs

Continuous set-covering on networks, where facility and demand locations are not discretized, is formulated by judicious edge subdivision when edge length exceeds the covering radius, or via reduced models with variable-count and constraint-count independent of edge length, critical for scalability on real-world topologies (Pelegrín et al., 2022). Tight big-M constants and valid inequalities (e.g., leaf/adjacency eliminations) bolster LP relaxations.

c. Scheduling and Energy Optimization

Complex operational constraints, such as in dynamic economic dispatch with valve-point effects, require nonconvex, nonsmooth cost approximations, efficiently encoded via piecewise-linear segments and binary assignment per segment (Pan et al., 2017). In supply-chain or production contexts, energy-aware mass-flow MILPs that explicitly track transported mass yield significant practical savings but larger model size compared to classical component-flow formulations (Muguerza et al., 2015).

d. Branch-and-Cut and Learning-SAT Hybridization

For SAT-encoded problems (e.g., MaxSAT as MILP), novel cut separation exploiting SAT oracles or CDCL clause-learning enhances the MILP formulation with no-good (Clause) cuts that tightly exclude fractional LP solutions violating logical implications—often reducing hard instance run-times by two orders of magnitude compared to vanilla MILP branch-and-cut or specialized SAT solvers (Engelhardt et al., 25 Sep 2025).

6. Best Practices: Symmetry, Preprocessing, and Scalability

  • Symmetry-breaking: Explicit exclusion of equivalent decision variables (e.g., forbidding “second half” guillotine cuts) and extraction variable pruning mitigate formulation size explosion and facilitate solver convergence (Becker et al., 2021).
  • Preprocessing: Plate-size normalization, edge subdivision, and domain partitioning before model construction leverage structural redundancies and shrink MILP size (Becker et al., 2021, Pelegrín et al., 2022).
  • Dynamic/Column‐Generation: For models with combinatorially explosive variables (e.g., pattern-based cutting stock or pipeline scheduling), column/pricing frameworks with dynamic constraint generation allocate solver resources adaptively, balancing tightness and tractability (Wodecki et al., 2023).
  • Big-M Calibration: Problem-adapted big-M selection, based on precise upper/lower bounds, is essential in all logic and piecewise-linear encodings to maintain LP relaxation strength (Grimstad et al., 2019, Pelegrín et al., 2022).
  • Heuristic Decomposition: For large network or tree-partitioning MILPs, two-stage or recursive decompositions (e.g., partition followed by optimal line switching) yield near-optimal solutions at a fraction of the computational cost (Lan et al., 2021).

7. Impact, Computational Evidence, and Ongoing Developments

MILP formulations continue to deliver state-of-the-art performance across application classes, with empirical reductions in dual and primal gaps, node counts, and solution times often reaching multiple orders of magnitude over classical schemes—contingent, however, on the appropriateness of the modeling, reduction, and cut-generation pipeline (Li et al., 26 Aug 2025, Bonami et al., 28 Nov 2025, Engelhardt et al., 25 Sep 2025, Becker et al., 2021). Key advances in hybrid modeling, automated synthesis, and solver-integrated learning are broadening both the reach of MILP formulations and the accessibility of complex optimization tools to non-experts, while open questions remain regarding the projection of extended formulations and scaling of tight convex hull representations for high-dimensional nonlinearities.


References

Slide Deck Streamline Icon: https://streamlinehq.com

Whiteboard

Forward Email Streamline Icon: https://streamlinehq.com

Follow Topic

Get notified by email when new papers are published related to Mixed-Integer Linear Programming (MILP) Formulations.