New Two-Stage Algorithm Solves Million-Product Inventory Puzzles in Seconds
Mathematics

New Two-Stage Algorithm Solves Million-Product Inventory Puzzles in Seconds

By bridging continuous relaxation and integer reconstruction, researchers bypassed traditional computational limits in massive resource allocation tasks.

By Joseph Jackson
Published:
Email this Article
New Two-Stage Algorithm Solves Million-Product Inventory Puzzles in Seconds
Photo by Vitaly Gariev on Unsplash

When sorting out supply chains for millions of products across dozens of warehouses, traditional mathematical solvers often grind to a halt. A new computational approach solves this massive resource allocation puzzle by turning complex integer math into continuous optimization, slashing solve times from hours down to seconds while scaling easily to handle over one million distinct items.

How Can Discrete Mathematical Hurdles Be Bypassed at Scale?

Many real-world planning problems involve dividing limited supplies among various destinations under strict capacity limits. While these challenges are easy to state, finding the exact optimal mix of products usually becomes impossibly difficult as the number of items grows. Traditional mixed-integer programming algorithms struggle because every possible choice requires checking discrete whole numbers, leading to an exponential explosion of calculations.

To tackle this bottleneck, researchers Alvaro Maggiar at Amazon.com and Ozan Candogan at the University of Chicago Booth School of Business developed a two-stage computational framework. Instead of confronting the discrete puzzle directly, the authors relax the problem by allowing fractional values and relying on a special mathematical property known as M-convexity. This concept from discrete convex analysis generalizes standard geometric convexity to integer grid points, ensuring that local optimal points are also globally optimal.

What Happens When Continuous Relaxations Meet Integer Reconstruction?

The proposed algorithm operates in two distinct phases. First, Stage 1 computes a continuous relaxation of the objective function, finding an optimal point where variables do not have to be whole numbers. This relaxation can be solved efficiently in parallel across distributed agents using a computational tool called a proximal oracle. In tests published in an arXiv preprint, this continuous phase establishes a lower bound on the objective value.

Stage 2 then reconstructs a valid whole-number solution from the continuous output. By applying local Carathéodory decompositions, the method expresses each agent’s continuous point as a weighted combination of nearby integer support points. A linear programming purification step subsequently reduces the number of fractional variables until at most $m$ agents remain fractional, where $m$ represents the number of coupling constraints. The authors proved that the resulting whole-number allocation matches or beats the relaxation value while keeping constraint violations bounded by a small constant that does not depend on the total number of products $N$.

How Well Does the Algorithm Perform on Real Inventory Challenges?

To test their theoretical framework, the researchers evaluated the two-stage method on a large inventory placement problem involving up to one million products routed across regional facilities. The cost function captured demand-weighted squared percentage errors in inventory positions. Across hundreds of test runs, the coupling residual stayed well below theoretical worst-case bounds and did not grow as the product count increased.

When compared against standard exact integer-programming benchmarks running under identical conditions, the new method demonstrated dramatic speedups. Exact solvers often timed out or failed to certify optimality within one hour on large problem instances, whereas the two-stage approach generated near-optimal solutions in minutes. Furthermore, the overall running time grew almost linearly with the number of products, opening up new possibilities for large-scale decision-making in logistics and economics.

The study was posted to the arXiv preprint server on November 20, 2026.

Fact Checked

This article has been fact checked for accuracy, with information verified against reputable sources. Learn more about us and our editorial process.

Last reviewed on .

Article history

  • Latest version

Cite this page:

Jackson, Joseph. “New Two-Stage Algorithm Solves Million-Product Inventory Puzzles in Seconds.” BioScience. BioScience ISSN 2521-5760, 23 November 2026. <https://www.bioscience.com.pk/en/subject/mathematics/distributed-optimization-of-m-convex-functions-subject-to-linear-constraints-via-continuous-relaxation-and-shapley-folkman-decomposition>. Jackson, J. (2026, November 23). “New Two-Stage Algorithm Solves Million-Product Inventory Puzzles in Seconds.” BioScience. ISSN 2521-5760. Retrieved November 23, 2026 from https://www.bioscience.com.pk/en/subject/mathematics/distributed-optimization-of-m-convex-functions-subject-to-linear-constraints-via-continuous-relaxation-and-shapley-folkman-decomposition Jackson, Joseph. “New Two-Stage Algorithm Solves Million-Product Inventory Puzzles in Seconds.” BioScience. ISSN 2521-5760. https://www.bioscience.com.pk/en/subject/mathematics/distributed-optimization-of-m-convex-functions-subject-to-linear-constraints-via-continuous-relaxation-and-shapley-folkman-decomposition (accessed November 23, 2026).
End of the article