BLOGS & WHITEPAPERS

7 min read

PUBLISHED

Apr 6, 2026

SHARE THIS POST

Planning & Forecasting

Teaching Supply Plans to See Around Corners

The same algorithm that steers autonomous race cars through hairpin turns at 200mph is now navigating supply chain decisions. This is how it works.
The same algorithm that steers autonomous race cars through hairpin turns at 200mph is now navigating supply chain decisions. This is how it works.
AUTHOR

Ugo Rosolia

Published

Apr 6, 2026

7 min read

Share this post

Picture an autonomous car tearing through an F1 circuit. At every millisecond, its AI brain is navigating the same trade-off: go faster now, or protect the lap later. Brake too early and you lose. Brake too late and you crash. Supply planning runs on identical logic. Every production and inventory decision is a constrained optimization call made under uncertainty, with consequences that compound across a 52-week horizon.

These aren't two industries sharing an analogy, they're sharing an algorithm. The algorithms developed for autonomous racing and supply planning have converged on the same fundamental architecture. Both are solving the same problem. How do you make locally optimal decisions in real time, continuously, without sacrificing long-term performance?

The Fastest Way to Plan a Year: Don't.

Feeding a full 52-week supply plan into a solver at once isn't just slow, the problem grows exponentially with every week you add to the horizon. Every additional period multiplies the decision space: more variables, more constraints, more combinations than any solver can work through in time. Full-horizon optimization is computationally impractical for real business cycles.

The core principle, don't try to solve the entire future at once.

The autonomous car faces the same limits. Calculating the optimal trajectory for an entire race in a single pass is impossible, the race would be over before the first result came back. So the car doesn't try. At every moment it plans only the next few seconds, executes the first move, and replans with updated information. Many small, fast solves. One long, well-navigated race.

That's rolling horizon planning.

Constructing the Marathon from Sprints

We apply this same logic to the 52-week supply plan. Rather than feeding the full year into the solver, we define a short optimization window — typically three to five periods, a function of your supply chain lead time. The solver optimizes across this window in full, accounting for all relevant constraints: capacity, inventory positions, lead times, demand coverage. We commit the first period's decisions to the plan.

The solver optimizes across this window in full: capacity, inventory positions, lead times, demand coverage. After the solve, we commit the first period's decisions to the plan, then roll the window forward and solve again.

Committing only the first period is a deliberate choice. The forward periods aren't wrong; they are directionally sound for today's decision, but subject to optimization when tomorrow's data come in. Re-solving with updated demand signals, inventory actuals, and capacity confirmations will produce a better answer than holding to a stale forward plan. Replanning is not a failure of the original solve. It's the design.

Repeat this across 52 weeks and you have a complete annual plan, assembled not as one unwieldy calculation but as a sequence of fast, precise solves.

The Hidden Flaw in Every Rolling Plan

There is a catch. Rolling horizon planning introduces a structural risk: shortsightedness.

Because the algorithm only sees to the end of its window, it can make decisions that are locally optimal but set up failure just beyond the horizon.

  • In racing: the car accelerates through what looks like a straight within its window, not knowing a hairpin turn sits just outside the frame. By the time the turn comes into view, it's too late to brake.

  • In supply planning: the solver depresses raw material buys to minimize holding costs. Rational within the window. But a product launch or demand spike one period beyond it doesn't exist to the algorithm. The plan looks clean. The execution is a shortage.

Without a way to account for what lies beyond the horizon, a rolling plan will consistently optimize itself into corners. Optimal this period. Blind to the next.

What the AI Actually Learns

This is the problem the predicted cost function solves, and where Lyric Studio's architecture diverges from conventional rolling horizon implementations.

The closest analogy outside supply chain is a chess engine. Rather than calculating every possible game state to the final move, modern engines evaluate the current board position and assign it a score based on patterns learned from millions of games. That score is a proxy for the probability of winning from that position forward. The predicted cost function works the same way. It doesn't simulate the remaining weeks of the plan. It reads the current state — inventory levels, capacity headroom, demand coverage — and returns a learned estimate of what those remaining weeks will actually cost.

The function is trained on historical planning outcomes, pairing end-of-window states with the actual costs that followed. Over time, the model learns which end states are genuinely safe and which only appear safe within the window.

The safe region is a hard feasibility constraint, not a preference. Any candidate plan terminating outside it is rejected by the solver regardless of how it looks within the window, which prevents the algorithm from producing plans that are locally optimal but operationally impossible to execute in the next period.

This architecture has academic roots. The predicted cost function and safe region construction derive from peer-reviewed research on Learning Model Predictive Control — work I developed and published across multiple control systems journals, and validated on actual race tracks before applying it to supply planning.

A Planner That Acts Locally and Thinks Globally

Lyric approaches supply planning as a dynamic problem rather than a one-time calculation. By adopting the intelligence of autonomous racing, we deliver a solution fast enough to react to today's changes and smart enough to protect tomorrow's performance.

Speed through rolling horizons. Foresight through learned cost. A planner that acts locally but thinks globally, making immediate decisions that are optimal for now without compromising the periods ahead.

References
The concepts discussed in this post—specifically the rolling horizon strategy, the construction of safe sets, and the learning of terminal costs from data—are based on the following papers:
  1. Learning Model Predictive Control for Iterative Tasks: A Data-Driven Control Framework 
U. Rosolia and F. Borrelli IEEE Transactions on Automatic Control, 2018. Read the paper
  1. Learning How to Autonomously Race a Car: A Predictive Control Approach 
U. Rosolia and F. Borrelli IEEE Transactions on Control Systems Technology, 2020. Read the paper
  1. Robust Learning Model Predictive Control for Linear Systems Performing Iterative Tasks 
U. Rosolia, X. Zhang, and F. Borrelli IEEE Transactions on Automatic Control, 2022. Read the paper
  1. Sample-Based Learning Model Predictive Control for Linear Uncertain Systems 
U. Rosolia, X. Zhang, and F. Borrelli IEEE Transactions on Automatic Control, 2022. Read the paper
  1. Data-Driven Predictive Control for Autonomous Systems 
U. Rosolia, X. Zhang, and F. Borrelli Annual Review of Control, Robotics, and Autonomous Systems, 2018. Read the paper
  1. Racing video: Autonomous Racing Experiments on full-size and 1/10 scale vehicles

Read more

Planning & Forecasting

Why Your Planning Software is Holding You Back

Apr 1, 2026

Deb Mohanty

read more

Planning & Forecasting

Why Your Planning System Should Think Like a Perishable

Mar 23, 2026

Brian Howard Dye

read more

Planning & Forecasting

The Modeling-Planning Divide Was Always a Technology Problem

Mar 19, 2026

Vish Oza & Deb Mohanty

read more

Leadership & Decision Culture

The Innovation Tax: Why Your Best Work Doesn't Compound

Feb 18, 2026

Brittany Elder

read more

Leadership & Decision Culture

What Sudoku Teaches Us About Enterprise Software

Feb 17, 2026

Akshat Jain

read more

Decision Intelligence

Taming the Toughest Problems in Transportation

Dec 18, 2025

Amit Hooda & Priyesh Kumar

read more

Leadership & Decision Culture

Why 30% of Packaged Food Never Reaches a Consumer

Dec 22, 2025

Srivatsan Kadambi Seshadri & Thilak Satya Sree

read more

Leadership & Decision Culture

How to Plan When Nothing Goes According to Plan

Dec 15, 2025

Dr. Nilendra Singh Pawar

read more

Architecture & Composability

Why We Fall Back to Heuristics

Nov 24, 2025

Frank Corrigan

read more

Architecture & Composability

What You Group is What You See

Nov 3, 2025

Frank Corrigan

read more

Architecture & Composability

The Cost of Curiosity

Sep 24, 2025

Brooke Collins

read more

Leadership & Decision Culture

Lyric Named a 2025 Gartner® Cool Vendor in Cross-Functional Supply Chain Technology

Sep 2, 2025

Sara Hoormann

read more

Leadership & Decision Culture

Built for Builders. Backed to Scale.

Aug 5, 2025

Ganesh Ramakrishna

read more

Architecture & Composability

Generative AI meets Time Series Forecasting

May 2, 2025

Deb Mohanty

read more

Architecture & Composability

The Dying Art of Supply Chain Modeling

Apr 15, 2025

Milind Kanetkar

read more

Leadership & Decision Culture

Tariffs, Trade Wars, and the AI Advantage: Why Fast Modeling Wins

Apr 7, 2025

Lyric Team | Prime Contributors - Laura Carpenter, Victoria Richmond, Saurav Sahay

read more

Architecture & Composability

Lyric Leverages NVIDIA cuOpt to Elevate Supply Chain AI

Mar 18, 2025

Sara Hoormann

read more

Architecture & Composability

The Technology Behind Modeling at Scale

Mar 14, 2025

Ganesh Ramakrishna

read more

Leadership & Decision Culture

Our Dream is to Make Every Supply Chain AI-First

Oct 18, 2023

Ganesh Ramakrishna

read more

Architecture & Composability

What Is a Feature Store Anyway?

Mar 14, 2024

Sara Hoormann

read more

Leadership & Decision Culture

Supply Chain AI Ain’t Easy

Feb 20, 2023

Ganesh Ramakrishna & Sara Hoormann

read more

Decision Intelligence

Four Ways to Improve Supply Chain Operations with Machine Learning

Jan 26, 2023

Vish Oza

read more

Architecture & Composability

Prediction is the New Visualization

May 30, 2024

Frank Corrigan

read more

A New Era in Supply Chain

© 2025 Lyric. All rights reserved.

A New Era in Supply Chain

© 2025 Lyric. All rights reserved.