Close Menu
    Facebook LinkedIn YouTube WhatsApp X (Twitter) Pinterest
    Trending
    • Efficient hybrid minivan delivers MPG
    • How Can Astronauts Tell How Fast They’re Going?
    • A look at the AI nonprofit METR, whose time-horizon metrics are used by AI researchers and Wall Street investors to track the rapid development of AI systems (Kevin Roose/New York Times)
    • Double Dazzle: This Weekend, There Are 2 Meteor Showers in the Night Sky
    • asexual fish defy extinction with gene repair
    • The ‘Lonely Runner’ Problem Only Appears Simple
    • Binance and Bitget to probe a rally in RaveDAO’s RAVE token, which surged 4,500% in a week, after ZachXBT alleged RAVE insiders engineered a large short squeeze (Francisco Rodrigues/CoinDesk)
    • Today’s NYT Connections Hints, Answers for April 19 #1043
    Facebook LinkedIn WhatsApp
    Times FeaturedTimes Featured
    Sunday, April 19
    • Home
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    • More
      • AI
      • Robotics
      • Industries
      • Global
    Times FeaturedTimes Featured
    Home»Artificial Intelligence»A Generalizable MARL-LP Approach for Scheduling in Logistics
    Artificial Intelligence

    A Generalizable MARL-LP Approach for Scheduling in Logistics

    Editor Times FeaturedBy Editor Times FeaturedFebruary 26, 2026No Comments17 Mins Read
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Telegram Email WhatsApp Copy Link


    Introduction

    that usually operates with shocking inefficiency: handbook processes, piles of paperwork, authorized complexities. Many firms nonetheless run on paper or Excel and don’t even gather information on their shipments.

    However what if an organization is giant sufficient to avoid wasting hundreds of thousands — and even a whole lot of hundreds of thousands — of {dollars} via optimization (to say nothing of the environmental impression)? Or what if an organization is small, however poised for speedy progress?

    Cargo Actions in Logistics Community Simulation

    Optimization is usually non-existent or rudimentary — designed for operational comfort relatively than maximizing financial savings. The trade is clearly lagging behind, but there’s a TON of cash on the desk. Cargo networks span the globe, from Alaska to Sydney. I received’t bore you with market measurement statistics right here. Insiders already know the dimensions, and outsiders could make an informed (or not so educated) guess.

    And that’s the place I got here in. As a Information Science and Machine Studying specialist, I discovered myself in a big, fast-growing logistics firm. Crucially, the workforce there wasn’t simply going via the motions; they genuinely needed to optimize. This led to the creation of a line-haul optimization challenge that I led for 2 years — and that’s the story I’m right here to inform.

    This challenge will at all times maintain a heat spot in my coronary heart, though it by no means totally made it to manufacturing. I imagine it holds huge potential — particularly within the mixture of logistics and RL’s distinctive capability to generalize decision-making.

    Whereas conventional optimization initiatives often concentrate on maximizing the target operate or execution pace, probably the most fascinating metric right here is what number of unseen circumstances we are able to resolve with the identical mannequin (zero-shot or few-shot).

    In different phrases, we’re aiming for a generalizable zero-shot coverage.

    Ideally, we practice an agent, drop it into new circumstances (ones it has by no means seen), and it simply works— with none retraining or with solely minimal fine-tuning. We don’t want perfection; we simply want it to carry out ‘ok’ to not breach the SLA.

    Then we are able to say: ‘Cool, the agent generalized this case, too.’

    I’m assured that this method can yield fashions able to ever-increasing generalization over time. I imagine that is the way forward for the trade.

    And as one in all my favourite stand-up comedians as soon as stated:

    Finally, any person will do it anyway. Let it’s us.

    Enterprise Context

    The corporate had scaled quickly, rising right into a community of over 100 line-haul terminals. At this magnitude, handbook scheduling reached its operational restrict. As soon as established, a schedule — together with its underlying enterprise contracts and preparations — would usually stay static for months with no single change.

    We noticed a constant inefficiency: vehicles had been incessantly dispatched with suboptimal hundreds — both underutilized (driving up unit prices) or bottlenecked by last-minute overflows.

    The monetary impression of this inefficiency was vital. In a community of this measurement, even a 1% enhance in car utilization interprets to hundreds of thousands of {dollars} in annual financial savings. Subsequently, maximizing car utilization turned the first lever for value discount.

    Massive Image Downside

    We had entry to historic cargo information. Whereas the storage format was removed from handy, the quantity was enough for modeling. Due to the efforts of my information engineering and information science colleagues, this uncooked information was reworked right into a clear, usable state (I’ll cowl the particular information engineering challenges in a separate article).

    My preliminary aim was to generate a ‘good’ schedule. A Schedule is outlined right here as a tabular dataset the place each row represents a bodily motion (cargo):

    • Timestamp: Hourly precision.
    • Origin & Vacation spot: The particular edge within the graph.
    • Automobile Sort: The discrete asset class (e.g., 20-ton semi, 5-ton van, and so on.).
    • Load Manifest: The actual set of aggregated ‘pallets’ packed inside.

    Subsequently, constructing a schedule requires 4 distinct choices:

    1. Select what packages to ship. What can go mistaken: if low-priority packages are despatched first, useful or pressing cargo would possibly get stranded on the warehouse. We don’t need that, as a result of the penalty is greater for the extra useful packages.
    2. Select the subsequent warehouse (the place to ship). Primarily, it is a routing downside: deciding on the optimum ‘subsequent edge’ on the graph for each single package deal.
    3. Select car varieties and their amount. It is a balancing act. What can go mistaken: sending a number of small autos as a substitute of 1 giant one creates fleet inefficiency, whereas dispatching giant vehicles that drive largely empty means paying for air. Conversely, under-provisioning the fleet results in delays, costing us in each SLA penalties and status.
    4. Lastly, inaction can be an motion. For any given time step, the optimum transfer could be to ship no vehicles in any respect. To create an optimized schedule, the system should completely stability energetic shipments with ‘doing nothing’.

    Nevertheless, actuality introduces extra complexities and constraints into the issue house:

    1. Tempo of Change: Enterprise guidelines are quite a few, complicated, and evolve quickly. The true world could be way more complicated and messier than a primary simulation. And adjustments in the actual world result in costly and time-consuming code updates.
    2. Stochastic Demand: Demand is non-deterministic, unknown upfront, and dynamic (e.g., a number of visits to a buyer inside a window).
    3. Multi-Goal Optimization: We aren’t simply minimizing value; we’re balancing value in opposition to SLA penalties (lateness) and fleet bills.

    So now, we perceive that we not solely have to create an excellent schedule, but in addition create a system that respects dynamic demand, truck capability, and quite a few customized enterprise guidelines, which may additionally usually change. This crystallized into the next.

    Want-Record

    • Low-Value Reusability. We’d like the flexibility to reuse the mechanism for brand new duties and contexts cheaply. Since real-world issues shift shortly, the answer have to be versatile — adaptable to new settings with out requiring us to retrain the mannequin from scratch each time.
    • Quick Inference. Whereas sluggish coaching is appropriate if it yields stronger generalization, the inference (decision-making) have to be quick.
    • ‘Good Sufficient’ Effectiveness. The system doesn’t must be good, but it surely should strictly adhere to the baseline SLA ranges.
    • World Optimization. We have to optimize the system as an entire, relatively than optimizing its particular person elements in isolation.

    System Specs

    • Topology: Customized graph containing 2 to 100 nodes
    • Determination frequency: 1-hour intervals, 480 steps/episode (representing 20 days)
    • Brokers: Decentralized hubs performing as impartial decision-makers
    • Constraints: Arduous bodily limits on car quantity (m³) and weight (kg). Arduous restrict on the variety of autos dispatched from a terminal per hour.
    • Goal: Decrease world value whereas adhering to dynamic SLA home windows.
    • Major metrics: Shipments value, share of late packages (SLA violations), rely of dispatched autos by sort
    • Secondary “Lengthy-term” Metrics: Common transit time and car capability utilization.

    Why Not Normal Solvers?

    Spoiler: They will’t minimize it, and they don’t seem to be ok.

    Naturally, we began by exploring commonplace solvers and off-the-shelf instruments like Google OR-Instruments. Nevertheless, the consensus was discouraging: these instruments would both resolve our precise downside poorly, or they might completely resolve a special, imaginary model of the issue. In the end, I concluded that this method was a lifeless finish.

    Linear Optimization

    That is the best and most cost-effective method, but it surely has a deadly flaw: a linear formulation fails to account for temporal dynamics (each different step will depend on the earlier one).

    Primarily, LP assumes your complete optimization downside matches right into a single, static snapshot. It ignores the truth that each step will depend on the earlier one. That is essentially incorrect and divorced from actuality, the place each motion within the community creates ripple results elsewhere.

    Moreover, the sheer quantity of enterprise guidelines makes it virtually inconceivable to cram all of them right into a “flat” solver. Briefly, whereas Linear Programming is a superb software, it is just too inflexible for an issue of this magnitude.

    Genetic Algorithms

    Genetic Algorithms (GA) had been nearer in philosophy to what we wanted. Whereas they do work, they arrive with vital drawbacks of their very own.

    First, sluggish Inference. To get a outcome, you basically should run the optimization from scratch each time (evolving the inhabitants). You can not merely “practice” a mannequin and freeze the weights, as a result of there aren’t any weights to freeze. Consequently, the system’s response time is measured in seconds and even minutes — not milliseconds — typical of a neural community or a heuristic. In a manufacturing setting coping with a whole lot of hubs in real-time, this turns into a serious bottleneck.

    Second, lack of determinism. In the event you run the scheduler twice on the identical dataset, a GA can yield two fully completely different schedules. Enterprise clients often don’t like that very a lot, which may result in belief points.

    Why not Pure RL?

    Theoretically, one may attempt to resolve your complete downside end-to-end utilizing pure Reinforcement Studying. However that’s undoubtedly the onerous method.

    A possible pure RL resolution would take one in all two kinds: both a single “God Mode” Agent that sees every part and allocates each package deal to each truck on each route at each step. Or a workforce of Sequential Brokers performing one after one other.

    God-Mode Agent

    Within the first case, the motion house turns into unmanageable. You aren’t simply deciding on a route — you must select each truck (from N varieties) Ok occasions for each path. With packages, it will get even worse: you don’t simply want to pick out a subset of cargo — you must assign particular packages to particular vehicles. Plus, you keep the choice to depart a package deal on the warehouse.

    Even with a small fleet, the variety of methods to assign particular packages to particular vehicles is astronomical. Asking a neural community to discover this whole house from scratch is inefficient. It will spend eons simply attempting to determine which package deal matches into which bin.

    Sequential Brokers

    A series of brokers passing packages down the road would create a non-stationarity nightmare.

    Whereas Agent 1 is studying, its habits is actually random. Agent 2 tries to adapt to Agent 1, however since Agent 1 retains altering its technique, Agent 2 can by no means stabilize. As a substitute of fixing logistics, every agent is compelled to infinitely adapt to its neighbor’s instability. It turns into a case of the blind main the blind, unlikely to converge in any cheap time.

    Moreover, pure RL struggles to study onerous constraints (like most weight limits) with out incurring huge penalties. It tends to “hallucinate” options — outputs that look environment friendly however are bodily inconceivable.

    However, we’ve got Linear Programming (LP): a quick, easy solver that handles onerous constraints natively. The temptation to carve out a sub-problem and offload it to LP was too nice to withstand.

    And that’s the reason I selected a hybrid method.

    Applied Resolution

    MARL + LP Hybrid Structure

    Let’s construct an RL agent that observes the state of the logistics community and orchestrates the stream of packages — deciding precisely what quantity of cargo strikes between warehouses at any given second. Ideally, this agent makes choices strategically, factoring within the world state of the system relatively than simply optimizing particular person warehouses in isolation.

    Then, an Agent represents a selected warehouse answerable for delivery packages to its neighbors. We then join these brokers right into a multi-agent community. Since each motion taken by an agent corresponds to a cargo to a number of locations, the combination sequence of those actions constitutes the ultimate schedule.

    Technically, we applied a Multi-Agent Reinforcement Studying (MARL) framework. The RL setting trains the algorithms to generate viable transportation schedules for real-world shipments. Crucially, this challenge contains each the setting creation and the agent coaching pipelines, guaranteeing that the answer can adapt (through continuous studying) to more and more complicated eventualities with minimal human intervention.

    What brokers see

    Under are the important thing observations (mannequin inputs) fed into the agent (I’ll cowl extra of the implementation particulars in Half 2).

    • Native Stock: The amount of packages at every warehouse.
    • In-Transit Quantity: The amount of packages at the moment touring on the sides between warehouses.
    • Cargo Worth: The whole monetary worth of the stock (essential for danger administration) at every warehouse.
    • SLA Heatmap: The closest deadlines for the present inventory (figuring out pressing cargo).
    • Inbound Forecast: The amount of packages anticipated to reach inside the subsequent 24 hours.
    • Heuristic Hints: Used solely through the imitation studying stage to bootstrap coaching.

    Model 1. Brokers Slicing a PriorityQueue

    On this model, packages are lined up in a precedence queue, sorted in descending order based mostly on a easy method: Precedence = Worth x Urgency (proximity to deadline). The RL agent “slices” a portion of this queue by deciding on a fraction of the highest packages and deciding which warehouse to ship them to.

    We use heuristics to pre-filter the choices — discarding packages we undoubtedly don’t wish to ship but, or ruling out nonsensical locations (e.g., delivery a package deal in the other way of its vacation spot).

    As soon as the RL selects the what and the place, the Linear Programming solver steps in to select the amount and kind of autos. The LP enforces onerous constraints on weight, quantity, and fleet availability to make sure the simulation doesn’t violate the legal guidelines of physics.

    In Model 1, a single motion consists of sending packages to at least one neighbor solely. The amount is set by the “fraction” (0.0 to 1.0) chosen by the agent. “Doing nothing” is solely selecting a fraction of 0.

    Determine 1: V1 Structure — The Agent tries to micromanage the queue

    However then, it hit me!

    Model 2. Brokers Sending Vans

    TL;DR: As a substitute of choosing packages, we constructed an agent that selects what number of vehicles to dispatch to every vacation spot. The Linear Programming (LP) solver then decides precisely which packages to pack into these vehicles.

    What if the agent managed the fleet capability instantly? This permits the LP solver to deal with the low-level “bin packing” work, whereas the RL agent focuses purely on high-level stream administration. That is precisely what we wanted!

    Right here is the brand new division of labor:

    RL Agent — Fleet Supervisor. Decides the amount of autos and their locations.

    • Instinct: It seems on the map, checks the calendar, and shouts: “Ship 5 vehicles to the North Hub!” It handles the stream administration.
    • Ability: Technique, foresight, and balancing.

    LP Solver — Dock Employee. Selects the particular car varieties (optimizing the fleet combine) and picks the particular packages to pack.

    • Instinct: It takes the “5 vehicles” order and the pile of bins, then packs them completely to maximise worth density.
    • Ability: Tetris, algebra, and bodily validity.

    Beforehand, the agent managed a “fraction of the queue,” which decided the package deal rely, which decided the truck rely, which lastly decided the reward. Now, the agent controls the truck rely instantly. The hyperlink between Motion and Reward turned a lot shorter and extra predictable, making coaching quicker and extra secure. In technical phrases, we considerably decreased the stochastic noise within the reward sign. The LP now optimizes solely the packaging and fleet combine after the strategic capability choice has already been made.

    However the engineering advantages didn’t cease there. For the reason that LP now selects the packages, we now not want to take care of a sorted Precedence Queue. This simplified the structure in three essential methods. First is concurrency: We eradicated the technical multiprocessing complications related to sharing complicated PriorityQueue objects between processes. Second is vectorization: We now not should iterate via a queue item-by-item (a sluggish Python loop). We will now rewrite every part utilizing matrix operations. This unlocked a large potential for pace optimization. Plus, the code turned considerably shorter and cleaner. And at last, multi-destination actions: The agent can now dispatch X vehicles to N completely different warehouses in a single step (not like V1, which was restricted to at least one vacation spot per step). It turned instantly clear that this was the profitable structure.

    Determine 2: V2 Structure — The “Fleet Supervisor” Strategy

    Scale-Invariant Commentary House and Generalization

    TL;DR: I take advantage of histogram state representations normalized to 0–1 as a substitute of absolute values to make the brokers transferable to new circumstances.

    A core pillar of this challenge’s philosophy is universality — the flexibility to reuse the answer throughout completely different duties and new circumstances with out retraining. Nevertheless, commonplace RL requires a rigidly mounted motion and commentary house.

    To reconcile this, we normalized the commentary house to make it scale-invariant. As a substitute of monitoring uncooked counts (e.g., “what number of packages had been despatched”), we observe ratios (e.g., “what share of the full backlog was despatched”). This permits the agent to function on the next stage of abstraction the place absolute numbers are irrelevant.

    The result’s a mannequin able to generalizing throughout completely different eventualities, enabling zero-shot switch throughout nodes with vastly completely different capacities.

    A Glimpse of the Efficiency

    Brokers Discovered “LTL Consolidation” Habits

    TL;DR: Elevated cargo value led to extra idle actions and fewer autos.

    One of the crucial spectacular emergent behaviors was the brokers’ capability to carry out LTL (Much less-Than-Truckload) Consolidation. Originally of coaching, the brokers had been trigger-happy, dispatching many partially stuffed vehicles at each step. Over time, their habits shifted.

    The cargo value is calculated as a product of the car value and the cargo value multiplier. When the cargo value multiplier will increase, a cargo prices extra in relation to the worth of the packages. That offers us a easy technique to regulate the cargo value a part of the reward manually.

    Determine 3: Complete variety of autos despatched by an agent. One level — one “20-day” episode

    As we elevated the cargo value multiplier (making logistics dearer relative to the package deal worth), the brokers discovered to be affected person. They started selecting extra “idle” actions, successfully accumulating stock to ship fewer, fuller vehicles.

    Determine 4: Complete agent reward. One level — one “20-day” episode

    As a result of it’s expensive to ship a truck half-empty (or half-full, relying in your worldview), brokers began ready to fill the vehicles nearer to 100% capability. In different phrases, the brokers discovered to optimize car utilization not directly, purely as a byproduct of the price/reward operate.

    However, sending fewer vehicles led to the next variety of overdue packages. I imagine this sort of trade-off — value vs. pace — ought to be determined by every enterprise independently, based mostly on their particular technique and SLAs. In our particular case, we had a tough cap on the share of allowed delays, therefore we may optimize by staying under that cap.

    Extra outcomes and experiments will likely be proven within the coming Half 3

    Constraints and Advantages

    As I discussed earlier, high-quality information is essential for this engine. In the event you don’t have information, you don’t have any simulation, no schedules, and no package deal stream forecasts — the very basis of your complete system.

    You additionally want the willingness to adapt your corporation processes. In apply, that is usually met with resistance. And, after all, you want the uncooked compute energy (substantial RAM + CPU) to run the simulations.

    However should you can overcome these hurdles, you would possibly discover that your logistics community has reworked into one thing far more highly effective — a community that:

    1. Can stand up to overloads, peak seasons, and sudden occasions. It’s because you’ve got a quick, dependable technique to generate a brand new schedule immediately by merely making use of your pre-trained brokers to the brand new information.
    2. Is extra environment friendly than the competitors. MARL has the potential to attain not simply native optimization, however world optimization of your complete community over a steady time horizon.
    3. Can quickly develop or contract as wanted. This flexibility is achieved exactly via the mannequin’s generalization capabilities.

    All the very best to everybody, and will your shipments at all times be quick and dependable!

    See the upcoming Half 2 for the implementation specifics and methods I used to make this work!

    LinkedIn | E-mail



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Editor Times Featured
    • Website

    Related Posts

    AI Agents Need Their Own Desk, and Git Worktrees Give Them One

    April 18, 2026

    Your RAG System Retrieves the Right Data — But Still Produces Wrong Answers. Here’s Why (and How to Fix It).

    April 18, 2026

    Europe Warns of a Next-Gen Cyber Threat

    April 18, 2026

    How to Learn Python for Data Science Fast in 2026 (Without Wasting Time)

    April 18, 2026

    A Practical Guide to Memory for Autonomous LLM Agents

    April 17, 2026

    You Don’t Need Many Labels to Learn

    April 17, 2026

    Comments are closed.

    Editors Picks

    Efficient hybrid minivan delivers MPG

    April 19, 2026

    How Can Astronauts Tell How Fast They’re Going?

    April 19, 2026

    A look at the AI nonprofit METR, whose time-horizon metrics are used by AI researchers and Wall Street investors to track the rapid development of AI systems (Kevin Roose/New York Times)

    April 19, 2026

    Double Dazzle: This Weekend, There Are 2 Meteor Showers in the Night Sky

    April 19, 2026
    Categories
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    About Us
    About Us

    Welcome to Times Featured, an AI-driven entrepreneurship growth engine that is transforming the future of work, bridging the digital divide and encouraging younger community inclusion in the 4th Industrial Revolution, and nurturing new market leaders.

    Empowering the growth of profiles, leaders, entrepreneurs businesses, and startups on international landscape.

    Asia-Middle East-Europe-North America-Australia-Africa

    Facebook LinkedIn WhatsApp
    Featured Picks

    I-care becomes Belgium’s newest unicorn after closing €20M fundraising and refinancing round

    December 24, 2025

    Best Internet Providers in Buffalo, New York

    September 23, 2024

    Life in the gray: why gambling innovation stems from unregulated areas

    December 25, 2025
    Categories
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    Copyright © 2024 Timesfeatured.com IP Limited. All Rights.
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us

    Type above and press Enter to search. Press Esc to cancel.