In times of economic hardship there is a strong demand for lean operations and “optimal” execution.
But what does that actually look like when you have to manage the working capital bound by thousands of products in hundreds of warehouses while making sure you do not become so “lean” you are no longer able to meet demand?
Enter Mixed-Integer Linear Programming (MILP). It sounds like academic jargon, but it’s actually the mathematical engine behind how your favorite online retailer gets a package to your door in 24 hours without going bankrupt.
What is MILP?
At its core, MILP is a mathematical modeling technique used to find the best possible outcome in a complex scenario. Business requirements in such a model are represented as linear relationships. What makes MILP "Mixed" is that it allows for a combination of different types of variables:
- Continuous: Quantities like liters of oil or kilograms of grain.
- Integers: Whole numbers, such as the number of trucks to dispatch.
- Binary: Simple "Yes/No" decisions (0 or 1), such as whether or not to open a new distribution center.
The Three Pillars of an Optimization Model
To build an MILP model, you essentially need three components:
- Decision Variables: The "unknowns" you are trying to solve for (e.g., "How much material should I allocate to this Sales Order?").
- Objective Function: The primary goal. Are you trying to maximize total revenue or minimize operational costs?
- Constraints: The business rules that limit your choices, such as manufacturing capacity or delivery deadlines.
MILP in the Supply Chain: From Factory to Front Door
The supply chain is where MILP truly shines. It can make the difference between a profitable quarter and a logistical nightmare.
- Network Design: Companies use MILP to decide where to locate factories and distribution centers. By factoring in land costs, taxes, and shipping distances, the model dictates the optimal "map" for the business.
- Job Scheduling: If a factory makes five different products on the same line, MILP helps decide the sequence and quantity of each to minimize "changeover time" (the time wasted switching machines from Product A to Product B).
- Order Routing and Scheduling: Scheduling deliveries is a massive puzzle. Businesses use MILP to ensure deliveries respect customer-specific rules, such as "no weekend deliveries" or "deliveries only on Tuesdays". By using filters to exclude impossible delivery days, the model can find the most efficient route and schedule much faster.
Beyond the Warehouse: MILP in Other Business Segments
While supply chains are the most obvious use case, MILP is a versatile tool that pops up in unexpected places:
- Workforce Scheduling
Ever wonder how a hospital or an airline manages shifts for thousands of employees with different certifications, seniority, and availability? MILP models ensure that every "slot" is filled by a qualified person while minimizing overtime costs and adhering to rules imposed by labor law as well as unions.
- Budget Allocation
MILP can help find the minimal set of projects to apply budgets to for the highest impact. If you have to choose between multiple IT projects with clear (financial) scope and estimated impact on e.g. automation rate, MILP can find the most cost effective set of projects to pick for the biggest impact on the KPI.
- Combinatorial Auctions
The type of auction most people have at least heard of is an art auction: Multiple buyers are bidding for a single piece of art and only one can ultimately “win” the auction. But what if you want to auction off multiple units of multiple items to multiple buyers? This can be done as a combinatorial auction where MILP provides the outcome maximizing satisfaction of all bidders. This can be used to allocate available capacity against sales forecasts across multiple countries to satisfy demand as best as possible.
- Energy Management
Utility companies use MILP to decide which power plants to turn on and off throughout the day (the "Unit Commitment" problem). They have to balance the high cost of starting a plant with the fluctuating demand for electricity.
Why doesn't everyone use it?
If MILP is so great, why isn't it used by every business for every problem?
To be blunt: it’s hard.
It can be difficult to abstract real world problems into the framework of an MILP model.
Solving these models further requires significant computing power and specialized software. As you add more "integer" decisions (like adding more cities to a route), the complexity grows exponentially. This is what mathematicians call "NP-hard." However, with the rise of cloud computing and better "solvers" (the software that crunches the numbers), MILP is becoming more accessible than ever.
You can further reduce solving time by simplifying your input data and constraints with some best practices:
- Pre-Process to Simplify: If a calculation can be done in your data layer before being ingested into a MILP model, do it there. This reduces the "complexity overhead".
- Review Constraints: Every constraint adds complexity. Ask yourself: "Is this rule strictly necessary, or can I achieve the same result by filtering my input data?"
- Plan for Post-Processing: Integer and binary variables significantly increase solving time. Consider whether it is feasible to switch a variable from “integer” to “continuous” and then round the model output during post-processing back to discrete units.
The Bottom Line
Mixed-Integer Linear Programming is the invisible hand that makes modern efficiency possible. It turns "gut feelings" into "data-driven certainties." Whether it’s saving a fleet millions in fuel or ensuring a nurse isn't overworked, MILP is the bridge between complex data and smart decisions.
Celonis brings MILP to its platform through the Optimization Engine. This capability allows formulating and solving MILP models in Studio using state of the art solvers and cloud computing to find solutions within a reasonable amount of time. Any business logic available in your Process Intelligence Graph and Studio Apps can be ingested into these models and the results can be directly consumed by business users.