Inferensys

Glossary

Mixed-Integer Linear Programming (MILP)

An optimization method that minimizes a linear objective function subject to linear constraints where some decision variables are restricted to integer values.
Finance analyst reviewing cash flow AI optimization on laptop, charts and projections visible, home office work session.
PRESCRIPTIVE OPTIMIZATION

What is Mixed-Integer Linear Programming (MILP)?

A foundational operations research technique for solving complex decision problems where some choices are discrete and others are continuous.

Mixed-Integer Linear Programming (MILP) is an optimization method that minimizes (or maximizes) a linear objective function subject to a set of linear equality and inequality constraints, where a subset of the decision variables are restricted to take only integer values. This integrality constraint allows the model to capture discrete, yes-or-no decisions—such as whether to open a warehouse, route a truck, or schedule a production batch—that are impossible to represent in purely continuous linear programming formulations.

MILP problems are solved using sophisticated algorithms, most commonly Branch and Bound, which systematically partitions the search space into subproblems while using linear programming relaxations to compute bounds that prune non-optimal regions. Advanced solvers integrate cutting-plane methods, presolve reductions, and heuristics to accelerate convergence. In autonomous supply chains, MILP is the computational engine behind Multi-Echelon Inventory Optimization, Vehicle Routing Problem (VRP) variants, and Job Shop Scheduling, enabling prescriptive analytics systems to recommend globally optimal operational actions rather than merely predicting outcomes.

CORE PROPERTIES

Key Characteristics of MILP

Mixed-Integer Linear Programming (MILP) is defined by a specific set of mathematical properties that distinguish it from other optimization paradigms. These characteristics dictate its modeling power and computational complexity.

01

Linear Objective Function

The goal of a MILP is to minimize or maximize a single, linear objective function. This function is a weighted sum of decision variables, such as 3x + 2y - z. The linearity is a strict requirement; terms like or x*y are not permitted. This property ensures that the objective's contribution from each variable is constant and proportional, a key assumption that enables the use of powerful, convergent solution algorithms like branch-and-bound.

02

Linear Constraints

All restrictions on the decision variables must be expressed as linear equalities or inequalities. A typical constraint takes the form a₁x₁ + a₂x₂ ≤ b. This linearity defines a feasible region that is a convex polytope in the continuous space. The intersection of these linear constraints creates the search space where the optimal solution must reside, and the linearity guarantees that the optimal continuous solution will be at a vertex of this polytope.

03

Integrality Constraints

The defining feature of MILP is that some decision variables are restricted to integer values. These are the 'integer' variables in 'Mixed-Integer'. Common restrictions include:

  • Binary variables: x ∈ {0, 1}, used to model yes/no decisions like facility location or task assignment.
  • General integers: y ∈ {0, 1, 2, ...}, used for counting discrete items like vehicles or batches. This integrality transforms the problem from a tractable Linear Program (LP) into a combinatorial one, making it NP-hard.
04

Separation of Continuous and Discrete Variables

A MILP model explicitly partitions its decision variables into two distinct sets:

  • Continuous variables: Can take any real value within bounds, often representing flow rates, temperatures, or percentages.
  • Integer variables: Restricted to discrete values, representing structural or logical decisions. This 'mixed' nature allows a single model to capture both the high-level strategic choices (discrete) and the fine-grained operational quantities (continuous) of a system, such as deciding which warehouses to open (integer) and how much product to ship from each (continuous).
05

Deterministic Data

A standard MILP formulation assumes that all input parameters—such as costs, demands, and resource capacities—are known with certainty at the time of solving. The model does not inherently account for uncertainty or variability in the data. This contrasts with Stochastic Optimization or Robust Optimization, which explicitly incorporate data uncertainty. In a deterministic MILP, the output is a single, optimal action plan contingent on the exact data provided.

06

Computational Complexity (NP-Hardness)

The addition of integer variables makes MILP a combinatorially explosive problem. It belongs to the class of NP-hard problems, meaning there is no known algorithm that can solve all instances in polynomial time. The computational effort can grow exponentially with the number of integer variables. Practical solvers use sophisticated techniques like the Simplex method for continuous relaxations, combined with branch-and-bound, cutting planes, and heuristics to close the optimality gap and find provably optimal solutions within a reasonable timeframe.

MILP FUNDAMENTALS

Frequently Asked Questions

Clear, concise answers to the most common questions about Mixed-Integer Linear Programming, from its core definition to its role in modern prescriptive analytics.

Mixed-Integer Linear Programming (MILP) is an optimization method that minimizes or maximizes a linear objective function subject to a set of linear constraints, where some decision variables are restricted to integer values while others can be continuous. It works by combining the Simplex Method for solving the continuous linear programming relaxation with sophisticated enumeration algorithms like Branch and Bound to enforce integrality. The solver first solves the problem as if all variables were continuous. If the optimal solution has fractional values for integer-constrained variables, the algorithm systematically partitions the problem into subproblems, creating a search tree. It uses the relaxed solution's objective value as a bound to prune unpromising branches, guaranteeing an exact optimal solution without exhaustively checking every integer combination. This mechanism allows MILP to model discrete decisions—like yes/no choices, on/off states, or countable quantities—within a continuous optimization framework.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.