Category: Blog

  • Engineering ToteSim: High-Fidelity Intralogistics Modelling in AnyLogic

    Engineering ToteSim: High-Fidelity Intralogistics Modelling in AnyLogic

    This September at the online AnyLogic Conference 2026 (#ALConf26), the Decision Lab and Gousto engineering teams dived seep the technical architecture behind ToteSim.

    ToteSim is a data-driven simulation twin of the automated replenishment and material-handling system at Gousto’s Warrington fulfilment facility. Delivered through an intensive five-month collaborative sprint comprising 24 epics and over 300 technical tasks, the model bridges industrial discrete-event kinematics with modern cloud data stacks and live Python decision services.

    Below is an engineering walkthrough of the system topology, technical challenges, and architecture presented by Dr Fabrice Durier and Will Seymour (Gousto), alongside Peter Riley, Jacob Whyte, and Andrew Nestor (Decision Lab).

    You can watch the full recorded presentation from the conference below:

    At a Glance: ToteSim Technical Summary

    • Project: ToteSim — a high-fidelity digital twin of Gousto’s Warrington fulfilment centre (fulfilling ~200k boxes/week).
    • Architecture: Developed with AnyLogic, coupled directly with Databricks for real-time factory state initialisation and live Python microservices (Dynamic Replenishment and Totewise).
    • Physical Scale: Simulates 18,000 reserve storage locations, 9,800 active pick slots, 20 vertical lifts, and 270 automated shuttles.
    • Production Impact: Used to engineer the “Robin Hood” flow-control algorithm, delivering a +4.3% throughput AUC gain, 24% lower p95 tail queueing, and zero operational disruption across 2M+ audited journeys.

    1. The Physical Modelling Challenge

    Gousto’s Warrington plant operates 24/7, fulfilling approximately 200,000 customer recipe boxes and 5 million ingredient picks weekly. While Gousto had already built an established AnyLogic simulation for red-box picking lines, that model historically relied on simplified assumptions about upstream blue-tote supply.

    ToteSim was developed to model the physical replenishment system with complete fidelity:

    • 18,000 reserve storage locations in a multi-level automated shuttle system
    • 9,800 active pick slots
    • 20 vertical lifts and 270 automated shuttles
    • Shared high-speed conveyor loops (spines) that transport full, empty, and reserve replenishment totes across multiple levels
    ToteSim Replenishment: The Golden Triangle Modular Decomposition of Automated Material Handling & Decision Loops Zone Eligibility Ambient vs chilled rules RESERVE ASRS High-Bay Storage 18,000 Storage Locations 20 Lifts • 270 Automated Shuttles DMS Inventory Bin-level location tracking DECANT Inventory Induction Dynamic Replenishment Pallet infeed & tote fill TRANSPORT SPINES Robin Hood Controller Dynamic Headroom Balancing Shared multilevel conveyor loop STATIONS Pick Faces 9,800 Active Pick Slots Totewise slotting & supply Stock & Intake Data Pallet arrivals & SKU specs Flow Constraints Conveyor merge quotas & limits Picking Demand (Red Box) Recipe mix & order schedules Full Totes Empty Totes Full Totes Empty Totes Infeed & Replen. Retrieved Totes Full Totes Flow Empty Tote Return Data / Operational Constraints Modelled Domain Boundary

    In a high-throughput network running at ~3 seconds per completed customer box, local conveyor merges, lift bottlenecks, and recirculation loops cannot be evaluated with static queueing formulas. Physical layout kinematics interact continuously with automated warehouse control software.

    2. System Architecture: Integrating AnyLogic with Databricks and Python

    One of the common traps in enterprise simulation is building monolithic desktop models fed by static Excel or CSV files. From day one, ToteSim was engineered as an enterprise software component embedded directly within Gousto’s data ecosystem.

    ToteSim Architecture & Data Pipeline Databricks Ingestion • AnyLogic Simulation Engine • Python Decision Services DATA PLATFORM Initial State Generation Historical WES/WMS telemetry move_tasks inventory positions tray_quantities SIMULATION ENGINE 1. Runs ToteSim Model 2. Executes Move Tasks Tray quantities & kinematics 3. Collects Simulation State from active simulated runs 4. Exports DR / Totewise Data CSV Intermediate State Files Store inputs for DR & Totewise DECISION SERVICES Production Python Logic Reads telemetry states Runs DR & Totewise Returns updated decisions & tote replenishment targets Initial Input Write State Read Telemetry Updated Tasks Closed-loop integration: AnyLogic executes kinematics while production Python services provide dynamic replenishment instructions

    The Ingestion & State Initialisation Pipeline

    Run parameters, inventory layouts, and movement tasks originate in Databricks. Rather than “warming up” a model from empty over arbitrary hours, ToteSim initialises directly into a historically observed factory state—including the exact location and contents of all 27,800 storage and pick slots, active tote coordinates on the belts, and outstanding order queues.

    Coupling Live Decision Code via Python

    Rather than re-coding Gousto’s production allocation algorithms into Java heuristics inside AnyLogic, ToteSim invokes Gousto’s live Python decision services during runtime.

    At periodic runtime checkpoints, AnyLogic exports the simulated factory state. Gousto’s proprietary Python services (Dynamic Replenishment (DR) and Totewise) read this telemetry, execute their logic, and return updated tasks (which pallets to decant, how many ingredients to place in each tote, and where to route replenishment) directly back into the simulation.

    This architectural decoupling ensures that the simulation tests the actual software logic deployed in production, not a synthetic approximation.

    3. Modelling Depth: Kinematics, Storage Logic, and Asset Reliability

    To deliver actionable decision intelligence, the model implements granular logic across two critical subsystems:

    A. Intelligent Inventory Logic, Not Just Geometry

    A common mistake in warehouse simulation is treating storage bins as simple abstract sinks. In ToteSim, inventory allocation is explicitly modelled as an operational decision layer. Every SKU is tracked across aisle, level, side, bin, and pickslot locations.

    Because storage decisions determine lift cycle times, conveyor travel distances, and congestion around specific aisles, the model faithfully reflects Gousto’s dynamic slotting and zoning eligibility rules.

    B. Asset-by-Asset Mechanical Reliability

    Lifts and shuttles fail in the real world. In ToteSim, mechanical downtime is treated as an explicit experimental variable rather than random, uncalibrated background noise.

    Every single lift (20 units) and shuttle car (270 units) can be independently configured under three distinct execution modes:

    1. Historic Replay: Replaying exact logged machine breakdowns from physical telemetry to audit past shifts.
    2. Synthetic Stress-Testing: Forcing selected critical lifts or entire aisle groups offline to measure how the conveyor loop recirculates and recovers from catastrophic hardware failure.
    3. Stochastic Sampling: Drawing from parametric failure distributions to quantify variance under extended runs.

    4. The “Red + Blue = Purple” Simulation Modular Boundary

    To manage model complexity, the project employed a strict architectural pattern dubbed Red + Blue = Purple:

    • Blue-Tote Model (ToteSim): Focuses strictly on decant induction, Automated Storage and Retrieval (ASRS) reserve, conveyor spines, and pick-face replenishment.
    • Red-Box Model: The mature picking model tracking customer cartons, recipe assembly lines, packing, and dispatch.
    • Purple (Integrated Twin): Connecting both models together to test complete end-to-end dynamics.

    This decoupling is essential for simulation engineering. It allows data scientists to isolate causal mechanisms and so test, for instance, whether pick-line starvation is driven by physical conveyor merge constraints in Blue or inefficient pick-sequencing rules in Red.

    5. Automated Verification, Calibration, and Validation

    Building trust in an engineering model requires objective calibration before running counterfactual experiments.

    The engineering team implemented headless execution pipelines that ran automated test suites via GitHub without launching the graphical AnyLogic animation. Historical production replay windows were assessed across two quantitative dimensions:

    • Headline Network Accuracy (~80%): Assessed via cumulative journey-volume curves (“worms”) comparing simulated vs. recorded tote completions across all major pathways.
    • Granular Critical Pathway Accuracy (>95%): Key high-volume flows—specifically decant-to-reserve (94.51%) and reserve-to-pickstation (96.42%)—reproduced production physical timings with exceptional precision.
    • Transit Distributions & Percentiles: Transit-time distributions and p5-through-p95 profiles along complex conveyor routes aligned closely with observed sensor telemetry.

    6. The Production Output: The “Robin Hood” Headroom Controller

    The engineering value of ToteSim was validated in Q1–Q2 2026 when Gousto used it to design, test, and deploy a new spine flow-control algorithm dubbed Robin Hood.

    The previous controller enforced hard, static tote-category limits on the main spine conveyor loop. When decant induction totes hit their ceiling, they queued at the merge point—blocking upstream belts and starving pick stations, even while spare capacity existed on the belt for empty or replenishment totes.

    From 2,000+ Headless Runs to Live Deployment

    AnyLogic animation of totes on conveyors in ToteSim.

    Using ToteSim’s headless execution, the team executed over 2,000 simulation runs across varying stress levels (testing artificially compressed tray volumes to simulate heavy peak loads). Candidate control scripts were evaluated using Cumulative Spine Activity Area Under the Curve (AUC), tracking total entries and exits over time.

    The Robin Hood logic demonstrated a +4.3% throughput AUC gain under high stress (p<0.001p<0.001).

    Because the algorithm was coded as a drop-in Python module using the exact telemetry inputs and outputs established in ToteSim, Gousto deployed the code directly into Warrington’s production environment at the start of Q2 2026.

    A subsequent six-week production audit across more than 2 million live tote journeys confirmed the simulation findings:

    • Zero System Destabilisation: Normal operating throughput remained completely stable.
    • 24% Reduction in p95 Tail Queueing: The 95th-percentile queue time for heavily constrained decant induction dropped by nearly a quarter.
    • 10%–20% Lower Peak Congestion: Avoidable merge waiting was slashed during peak operational windows.

    Illustrative redraw of the Use Case 6 spine_activity metric: higher or earlier cumulative activity increases AUC.

    A higher cumulative activity curve means the spine transported more totes and/or transported them earlier.

    Looking Ahead: The Evolution Toward Real-Time Twin Control

    ToteSim demonstrates that building high-value digital twins does not require starting with a fully autonomous, live-connected IoT system. By treating simulation twinning as an integrated software discipline and combining AnyLogic’s discrete-event power with modern data lakes and live Python services, engineering teams can eliminate production risk and de-risk major operational software changes before touching live machinery.

    Current work on ToteSim includes pallet induction prioritisation, dynamic pick-face allocation, and reverse-engineering third-party equipment logic to further scale Gousto’s automated facilities.

  • OR68 and Gousto’s ToteSim Digital Twin

    OR68 and Gousto’s ToteSim Digital Twin

    From Data to Decisions at Scale

    Earlier this month, the UK and international Operational Research community descended on the University of Nottingham for OR68: From Data to Decisions.

    The event featured three intense days of plenaries, poster sessions, and valuable discussions at our stand. We were honoured to present and, in particular, answer the standout question from practitioners and business leaders alike: how do you build enough stakeholder trust in an analytical model to let it directly influence physical, high-risk operations?

    Decision Lab and Gousto tackled that question head-on in our joint session in the Simulation & Digital Twins stream. Presenting alongside Dr Fabrice Durier and Will Seymour from Gousto, Decision Lab’s Peter Riley unpacked the delivery of ToteSim, a data-driven simulation twin of the automated blue-tote replenishment system at Gousto’s Warrington fulfilment facility.

    Earlier this year, we published a high-level overview in our case study, How Simulation Became Gousto’s Recipe for Growth. At OR68, we took the conversation a level deeper into the applied decision science: the validation mechanics, the experimental rigour, and the physical factory evidence.

    Here are the key operational research insights shared during the conference.

    1. When Combinatorial Variety Meets Physical Bottlenecks

    As explored in our published case study, Gousto’s strategic mission to scale its menu from 50 to 200 weekly recipes created exponential combinatorial complexity behind the scenes. Fulfilling roughly 200,000 bespoke boxes and picking 5 million ingredients every week means that an ingredient pick must occur every three seconds across dynamic, non-repeating recipes.

    While Gousto already maintained a mature simulation model for customer “red-box” packing lines, that model assumed blue-tote ingredient replenishment was an infinite, frictionless feed. In reality, Warrington’s automated tote network, which houses 18,000 reserve bins, 9,800 pick slots, 20 vertical lifts, and 270 automated shuttles, was tightly constrained.

    Conveyor merges and shared transport spines meant that a micro-stoppage in tote replenishment could cascade across the entire facility. Yet with a 24/7 operating plant, conducting physical trial-and-error was out of the question: running live A/B experiments in a single facility carried unacceptable operational risk.

    The OR challenge was to determine whether intelligent algorithmic control could unlock latent transport capacity without committing to capital-intensive physical expansions.

    2. Bridging the Gap: What Makes “Simulation Twinning” Different?

    Much of the academic discussion at OR68 centred on the levels, or extent, of digital twin maturity. Rather than striving for an immediate, all-singing real-time twin, ToteSim was built around pragmatic Simulation Twinning:

    • The Golden Triangle Architecture: Decoupling the physical replenishment facility into three bounded operational domains (Decant Induction, Reserve Storage, and Pick Stations) connected by the shared transport conveyor loop. This modular design allowed subsystems to be isolated or recombined across 24 project epics during an intensive five-month collaborative sprint.
    • Executing the Live Decision Stack: Crucially, ToteSim is not an abstract approximation of rules. Built in AnyLogic and fed shift-level historical states via Databricks, the model directly invokes Gousto’s live production Python decision services (including Dynamic Replenishment and Totewise). The simulation twin evaluates the exact algorithmic logic deployed in the warehouse.
    • The “Red + Blue = Purple” Modularity: Analysts can isolate the replenishment twin (Blue) with synthetic pick rates, or couple it directly with the customer order picking model (Red) to evaluate holistic “Purple” system impacts.

    3. Decision-Specific Validation: Building Credibility for Capital Decisions

    A core lesson shared with the OR Society delegates was how validation must be structured to build operational trust. Rather than chasing an unachievable standard of “100% global fidelity,” ToteSim’s validation strategy followed Robinson’s and Sargent’s principles of operational validity for defined decisions:

    • ~80% weighted mean accuracy across broad, multi-flow network replays against historical shift data.
    • >95% accuracy on critical, high-volume pathways (such as decant-to-reserve and reserve-to-pick flows).

    This decision-specific calibration gave Gousto’s operations leadership the confidence to use ToteSim not just as a retrospective reporting dashboard, but as a proactive experimental testbed.

    4. The First Factory Proof Point: “Robin Hood” Headroom Balancing

    The first production deployment tested whether algorithmic optimisation could ease congestion on the shared conveyor spine feeding the pick tower.

    Previously, rigid category quotas caused totes to queue at the decant line whenever their specific category limit was reached, even when spare capacity existed elsewhere on the conveyor. The team developed a drop-in controller, internally dubbed Robin Hood, based on headroom balancing:

    1. When total spine occupancy is below target, spare headroom is equalised dynamically across tote streams, clearing queues before merges freeze.
    2. When the belt reaches saturation, category limits are pulled back toward a central balance to prevent any single category from monopolising throughput.
    3. Designed as a direct drop-in replacement, it utilised the exact same input/output telemetry, requiring zero changes to physical sensors or PLC controls.

    From 2,000+ Runs to Measured Production Evidence

    Before factory rollout, ToteSim stress-tested the candidate algorithm across 2,000+ simulation runs, demonstrating a +4.3% improvement in cumulative spine activity area-under-the-curve under high stress ( p<0.001)p<0.001) ).

    Deployed into live production at Warrington at the start of Q2 2026, a six-week post-deployment evaluation across more than 2 million live tote journeys confirmed what the simulation predicted:

    • Baseline Stability: General transit times and empty/reserve movements remained completely stable, proving that the intervention was safe and non-disruptive.
    • High-Stress Tail Reduction: The 95th-percentile queue time for constrained decant totes dropped by 24%.
    • Peak Congestion Relief: Avoidable queueing during peak operational windows reduced by 10% to 20%.

    Moving from Event Models to an Enduring Decision Capability

    Our headline message at OR68 was simple: a digital twin creates value long before it becomes an autonomous, fully connected IoT system.

    By establishing a reliable loop—Observe  Initialise  Validate  Experiment  Deploy  Measure—ToteSim has evolved from a simulation model into an operational decision capability. Gousto is now utilising the twin to stress-test lift and shuttle failure modes, evaluate pallet induction strategies, and validate future automation logic before deploying capital.

  • Stepping into the Ring: Backing Naomi in the 2026 Combatathon Challenge

    Stepping into the Ring: Backing Naomi in the 2026 Combatathon Challenge

    At Decision Lab, tackling complex challenges is second nature to us, but on Sunday, 4th October, our very own Naomi Harvey is taking on a challenge of a completely different kind: Combatathon 2026.

    Naomi will be joining around 80 participants for a gruelling 3-hour, high-energy Les Mills BodyCombat marathon.

    What is Combatathon?

    Building on the incredible momentum of last year’s Aquathon (which raised over £10,000) this year’s event moves from the pool to the studio floor.
    Facilitated by popular local combat instructors, alongside a passionate team of organisers and volunteers, Combatathon brings the local community together for an intense test of stamina, coordination, and determination.

    The event has already drawn fantastic support from local businesses and partners, including Morrisons, The Printers Loughborough, Bom Bom Café, Robert Bakewell Primary School, and Dave Shepherd.

    Why We’re Supporting: Two Vital Causes

    Every penny raised from Combatathon will be split equally between two life-changing UK charities:

    • Marie Curie: The UK’s leading end-of-life charity, providing essential hands-on nursing, hospice care, and emotional support for individuals and families dealing with terminal illness and bereavement.
    • Different Strokes: An active charity dedicated to helping working-age stroke survivors and their families reclaim their lives and regain independence through specialised rehabilitation and peer networks.

    How You Can Help

    Three straight hours of martial arts-inspired cardio is no small feat, and Naomi has been training hard to go the distance.

    If you would like to cheer Naomi on and support these two incredible causes, please consider making a contribution on the official campaign page:

    Donate to the Combatathon 2026 GoFundMe

    Stay tuned, we’ll be sharing updates and photos from the event floor following the big day on 4th October!

  • The Agility Paradox in Modern Manufacturing

    The Agility Paradox in Modern Manufacturing

    Manufacturing and FMCG enterprises invest millions in enterprise resource planning (ERP) systems to better manage operations. Yet on the factory floor, the agility keeping lines running often relies on reactive firefighting and workarounds.

    This operational contradiction is the Agility Paradox. Core ERP platforms assume a static world based on fixed averages. Real production environments, however, are governed by dynamic physical constraints: sequence-dependent changeovers, fluctuating labour availability, shared engineering resources, and sudden demand shifts. When faced with disruption, rigid schedules break. Factory managers face a choice between sticking to plans that idle machinery, or best-guessing and spreading chaos down the line.

    How Digital Twins Unlock True OEE and De-Risks Operations

    Bridging the gap between macro-level enterprise planning and shop-floor volatility requires Simulation-Based Optimisation and Digital Twins. Rather than a static 3D model or retrospective dashboard, a digital twin provides a living computational replica of your facility’s physical constraints and operational logic.

    Integrating simulation delivers immediate strategic and tactical advantages:

    • Predictive Bottleneck Prevention: Evaluate alternative shift patterns, line allocations, and batch sequencing in a virtual sandbox to resolve bottlenecks ahead of time.
    • CAPEX De-Risking: Test new machinery, packing stations, and line layouts virtually to validate throughput and present boardrooms with ROI proof before issuing purchase orders.
    • Upstream Complexity Management: Quantify the operational and financial impact of complex orders and sequencing before scheduling production.
    • Rapid Commissioning: Accelerate ramp-up timelines and minimise downtime during major asset installations.

    Validated in High-Stakes Production

    Simulation-based decision intelligence is already proven across complex UK and European supply chains. Recipe-box pioneer Gousto used Decision Lab’s simulation engine as a digital sandbox to optimise network throughput and scale rapidly without sacrificing service levels. In highly regulated life sciences, global leaders like GSK and AstraZeneca deploy advanced simulation to de-risk multi-stage batch processes and maximise asset utilisation under zero-fault conditions.

    Dive Deeper in the Complete Whitepaper

    Elevate planning and eliminate the drag of operational guesswork. Learn how to transform plant complexity into predictive agility. Dive deeper, with examples and case studies, in our Agility Paradox paper.

    Download the Whitepaper: The Agility Paradox: Why Core ERP is Failing Your Factory Floor (And How Simulation Unlocks True OEE) by Naomi Harvey, CSMO at Decision Lab.

  • Optimisation evaluations: probing methods with AnyLogic

    Optimisation evaluations: probing methods with AnyLogic

    Aug 21, 2023, updated July 31, 2026

    Summary

    AnyLogic is a powerful simulation tool that can be used to simulate a wide range of systems and processes. It allows developers to build simulations that take in a user defined set of inputs and provide a robust set of outputs. Therefore, it can be a useful tool to aid in optimisation problems by taking in a set of inputs and quickly generating outputs that can then be evaluated to determine how well these inputs performed. Over multiple runs of the simulation with varying inputs you can determine which inputs provide the optimal results.

    AnyLogic provides two main types of experiment that can be used for optimisation. Firstly, there is the Optimisation Experiment which is built on top of the OptQuest Simulation Engine and is quick and easy to set up within AnyLogic. Secondly, there is the Custom Experiment which is entirely specified by the user and gives them full control and flexibility over how the simulation runs. However, to perform optimisation with Custom Experiment it requires the user to set up an external Java programme which calls and runs it. Another area that is useful to consider is how accessing python optimisation scripts can enhance an AnyLogic simulation and allow it to make better decisions or perform more complex processes. The best method for this is using the Java Pypeline library which provides AnyLogic with a way to make calls to external python scripts.

    Optimisation Experiment

    The Optimisation Experiment is a built-in feature within AnyLogic which is designed for running multiple scenarios to try and minimise/maximise the ‘objective function’. The objective function is the value that we want to optimise such as minimising lead time or maximising revenue. This could be a single output or multiple outputs that are resolved into a single aggregated value. The user can specify a set of inputs that are either fixed or are varied between runs of the model so that the best values can be determined. By varying inputs, such as the number of available resources, the model can determine the optimal set of inputs. There is also built-in functionality for performing runs of the model in parallel and evaluating multiple runs of the same inputs to account for randomness within the model such as varying levels of demand for resources at different times. These are good out-of-the box features that are easy to use and can provide a lot of value for simple optimisation problems.

    What are the Limitations of Native AnyLogic Optimisation?

    The out-of-the-box features provide immediate value for straightforward scenarios, the native setup falls short for highly complex engineering or logistics problems.

    • Algorithmic Constraints: The native experiment types are strictly limited to minimising or maximising a specific value. Advanced heuristic search techniques, such as the Hill Climbing method, are not natively supported.
    • Parameter Structure Restrictions: The optimiser cannot natively vary complex inputs like arrays or lists.

    Consequently, varying complex data structures must still be managed manually between runs. Developers may find it necessary to implement dummy inputs simply to ensure the optimiser completes, subsequently collecting performance statistics manually rather than relying on the engine’s built-in outputs.

    In theory, a developer can write custom code within the experiment to execute algorithms like Hill Climbing. However, this approach essentially bypasses the actual OptQuest engine, utilising the platform’s multi-run framework as a workaround for something that could be achieved just as effectively using a standard Monte Carlo experiment.

    AnyLogic Professional Optimization Results for 'ExampleModel' - Status: Finished. The dashboard displays a table comparing current and best iterations and objective values (Best Objective: 471.6), and a performance chart showing feasible and infeasible solution points over iterations. An active 'Copy best' button is present.
    Figure 1: Example of the default Optimisation Experiment UI

    Custom Experiments: The Cloud-Native Paradigm

    While built-in experiments offer out-of-the-box simplicity, the Custom Experiment framework unlocks total flexibility, granting full programmatic control over simulation logic, execution parameters, and model run-times.

    Historically, running a custom experiment meant orchestrating a cumbersome, local Java programme to manually trigger consecutive simulation iterations. Today, this restrictive approach has been entirely replaced by a cloud-native paradigm. Rather than binding computation to a developer’s local machine, modern architectures decouple the simulation model from the optimisation logic.

    Scaling with the AnyLogic Cloud RESTful API

    The contemporary standard for advanced orchestration relies on the AnyLogic Cloud RESTful API, which features native client libraries for Python, Java, and JavaScript. This multi-language web interface fundamentally transforms how custom optimisation loops are executed:

    • Serverless-Style Execution: Developers can completely bypass local environmental constraints. Simulation models are uploaded to a cloud or private server instance, where individual runs are triggered headlessly and asynchronously on-demand.
    • Distributed Parallelisation: Highly intensive, multi-run optimisation loops are offloaded to high-performance infrastructure. The cloud platform splits the workload horizontally across distributed cloud nodes and cores, executing thousands of scenarios simultaneously and drastically shortening time-to-insight.
    • Language-Agnostic Heuristics: By utilising the Cloud API, engineers are no longer forced to write complex search heuristics exclusively in Java. A data scientist can now design sophisticated search algorithms (such as the Hill Climbing method, genetic algorithms, or deep reinforcement learning policies) directly within a Python script, leveraging powerful open-source libraries like Google OR-Tools, SciPy, or PyTorch.

    For example, a Python orchestration script can execute a supply chain simulation via a clean REST call, instantly analyse the returned outputs to pinpoint a localised bottleneck (such as a depleted inventory layer or an asset constraint), update the input vectors, and immediately fire a new flight of parallelised runs across the cloud cluster.

    This modern cloud workflow allows businesses to use their AnyLogic digital twins as highly scalable, serverless objective function evaluators for cutting-edge external solvers.

    A split-pane screenshot of AnyLogic development environment interface. The top section is a code editor displaying syntax-highlighted Java code with comments for configuring and running a simulation engine. Key lines include creating the engine, setting the time unit to SECOND, start date to toDate( 2023, JUNE, 2, 0, 0, 0 ), and stop time to 100. The code goes on to create a new Main object, set its parameters, run the simulation in fast mode (engine.runFast()), collect results into exampleOutput, and stop the engine.

The bottom section shows a structured user interface for 'Application options' and 'Advanced Java'. It includes a field for 'Additional class code' where two variable definitions used in the script are present: double exampleInput; and double exampleOutput;, each preceded by a grey-to-red gradient marker icon.
    Figure 2: Example of the Custom Experiment Set Up
    A technical workflow diagram titled "Figure 3: Cloud-Native Custom Experiment Distributed Architecture". On the left, a Master Orchestrator in a Python Environment executes custom heuristics (such as Hill Climbing or Reinforcement Learning). It sends HTTPS POST requests with JSON input vectors across an AnyLogic Cloud RESTful API gateway. On the right, a Distributed Serverless Cluster splits the execution horizontally across multiple Headless Cloud Nodes (Node 1, Node 2, to Node N). The cluster processes the runs in parallel and returns asynchronous JSON execution outputs back to the Python orchestrator.
    Figure 3: Diagram of workflow for running Custom Experiment from external optimiser programme.

    Hybrid Decision Intelligence: Choosing Your Architectural Pattern

    When moving beyond native probing limits, enterprise models require a hybrid approach that pairs discrete-event simulation with sophisticated mathematical solvers or analytical models. Depending on your tech stack, latent memory requirements, and data science infrastructure, two primary patterns emerge.

    Pattern A: The Analytics & ML Bridge (Figure 4)

    Architecture diagram of a modern dual-pathway pipeline illustrating Python-inside-Java integration. Outbound state data flows from an AnyLogic Java simulation through a Jsonifier serialization framework into a Python analytical environment, with optimised decisions returning to the Java simulation.
    Figure 4: Diagram showing workflow of using an optimiser to supplement an AnyLogic model.

    While using native Java remains the foundation for internal scripting, enhancing an AnyLogic simulation with Python’s vast ecosystem of data science, optimisation, and machine learning libraries is now standard practice. However, Python integration is no longer a one-size-fits-all workaround. Modern architectures deploy a structured, dual-pathway approach depending entirely on which environment dictates the execution flow.

    Pathway 1: Pypeline (v1.9.6) – The Python-inside-Java Architecture

    The Pypeline custom library is the premier tool for workflows where the AnyLogic model acts as the parent process. In this configuration, the simulation runs normally in its Java environment but reaches out to a local Python installation to execute discrete, targeted scripts on demand.

    • Best For: Scenarios where the simulation requires real-time assistance from a Python library to make an internal decision (such as querying a pre-trained scikit-learn model to predict an asset failure rate mid-run or calling Google OR-Tools to solve a complex Travelling Salesman problem for fleet routing).
    • The Jsonifier Advantage: Modern iterations of Pypeline are deeply integrated with the Jsonifier serialisation framework. This eliminates the historical headache of manually converting Java data structures into standard text strings. Jsonifier allows entire agent populations, multidimensional tables, and complex database tuples to be seamlessly serialised into machine-readable JSON strings and deserialised back into native Java objects with minimal computational overhead.
    AnyLogic screenshot of a Pypeline configuration form for 'pyCommunicator'. The name is set to 'pyCommunicator' and visible. Connection and error throwing are enabled. The Python command is set to 'python'. Last configuration is not loaded. Output redirection is enabled.
    Figure 5: Default settings for the Pypeline communicator object. Allows you to select which version of python.

    Pathway 2: Alpyne (v1.2.1 Beta) – The Java-inside-Python Architecture

    When the orchestration flow needs to be completely reversed, the Alpyne (v1.2.1 Beta) library provides a powerful alternative. Under this paradigm, the master Python script acts as the host environment, treating the AnyLogic simulation as an importable, interactive object.

    • Best For: Advanced AI training, complex heuristic loops, and intensive Reinforcement Learning (RL) pipelines.
    • How it Works: Developers export their model from AnyLogic using the native Reinforcement Learning experiment framework. The Alpyne package then initialises a standalone AnyLogicSim connection inside Python. The Python script can interactively step the simulation forward, freeze execution at pre-defined decision points, inspect the exact internal observation state, inject an algorithmic action, and collect rewards.
    • AI Testbed Compatibility: Because Python serves as the control room, engineers can natively wrap the simulation inside standard machine learning frameworks (like OpenAI Gym/Gymnasium) to train neural networks using deep RL frameworks like PyTorch, TensorFlow, or Stable-Baselines3.

    Pattern B: The High-Performance Embedded Engine (Figure 6)

    Diagram illustrating Pattern B: an embedded Gurobi solver running in-memory within the AnyLogic JVM instance for zero-latency, mid-run re-optimisation.
    Figure 6: Embedded Math-Heuristic Hybrid Architecture (AnyLogic + Gurobi)

    Embedding the Gurobi Optimiser for Mathematical Rigour

    For large-scale enterprise problems (such as global supply chain networks, complex asset-scheduling, or multi-echelon inventory routing) standard heuristics and search algorithms often struggle to converge on a true mathematical optimum. In these scenarios, the highly robust architecture option involves embedding a high-performance mathematical solver like Gurobi directly into the simulation environment.

    Because AnyLogic is natively built on Java, developers can easily add the gurobi.jar dependency directly into the simulation project’s build path. This setup unlocks a powerful, two-way hybrid framework:

    • Balancing Stochasticity with Deterministic Rigour: AnyLogic excels at capturing the messy, unpredictable realities of a system (stochastic delays, machine breakdowns, fluctuating demand). Meanwhile, Gurobi excels at solving dense, deterministic mathematical models with millions of variables and constraints.
    • Dynamic, Mid-Simulation Re-optimisation: Rather than just using an optimiser to find inputs before a model runs, an AnyLogic model can call the Gurobi Java API during a run. For example, every simulated 24 hours, the model can halt, pass its current state (such as unexpected delivery disruptions or machine outages) to Gurobi as a matrix, and allow Gurobi to instantly calculate a mathematically optimal production schedule or fleet routing blueprint for the next day. The simulation then resumes using that flawless plan.

    By combining AnyLogic’s granular, event-driven simulation with Gurobi’s industry-leading prescriptive analytics engine, engineers can construct highly resilient digital twins that not only accurately predict system bottlenecks but actively solve them with absolute mathematical certainty.

    Architectural Decision Matrix

    Technical CriteriaPattern A: Python Ecosystem Bridge (Fig 4)Pattern B: In-Memory Embedded Solver (Fig 6)
    Primary FocusAI / Machine Learning & Flexible HeuristicsHigh-Speed Deterministic Mathematical Optimisation
    Data Exchange MethodIn-Memory / Inter-Process JSON SerialisationDirect In-Memory JVM RAM Reference
    Execution LatencyMicro-latency (Optimised for macro-step decisions)Near-Zero Latency (Optimised for high-frequency loops)
    Key Software StackAnyLogic + Python (scipy, scikit-learn, OR-Tools)AnyLogic + Gurobi / CPLEX Native Java API

    Final Thoughts: Choosing Your Optimisation Architecture

    Selecting the right optimisation pathway in AnyLogic depends entirely on the scale of your problem and the complexity of the data structures involved. There is no single “correct” approach, but rather a spectrum of engineering choices tailored to enterprise requirements:

    • For Straightforward Parameters: If your objective is simply to vary a handful of discrete or continuous scalar variables to find a clear minimum or maximum, the native Optimisation Experiment offers a highly capable, out-of-the-box framework driven by OptQuest that requires minimal development overhead.
    • For High-Performance Cloud Scaling: When optimisation loops involve multi-dimensional arrays or require advanced custom search heuristics, pivoting to a Custom Experiment executed via the AnyLogic Cloud RESTful API is the modern benchmark. This allows you to offload computational strain serverless-style across distributed cloud nodes.
    • For Ecosystem Integration: If your solution relies on data science or machine learning libraries, deploying a structured, dual-pathway approach via Pypeline (v1.9.6) or Alpyne (v1.2.1 Beta) ensures a robust data exchange between Java and Python, depending on whether the simulation or an external script controls the parent execution flow.
    • For Absolute Mathematical Rigour: For highly dense, combinatorial problems where heuristics fail to guarantee a true global optimum, embedding a premium solver like Gurobi directly into the simulation code path unlocks powerful math-heuristic capabilities. This empowers digital twins to balance unpredictable real-world stochasticity with precise, mid-run prescriptive analytics.

    By understanding these structural boundaries, engineering teams can stop treating simulation models as passive visual tools and start utilising them as scalable, highly intelligent decision-support engines.

    Transform Your Operational Complexities into Provable Success

    At Decision Lab, we specialise in bridging the gap between intricate system simulations and industry-leading mathematical optimisation. Whether you are aiming to de-risk global supply chains, design high-efficiency logistics networks, or train cutting-edge reinforcement learning agents, our decision intelligence experts can help you architect the perfect technical framework.

  • Welcoming Asma Sabat to the Decision Lab Sales & Marketing Team

    Welcoming Asma Sabat to the Decision Lab Sales & Marketing Team

    We are thrilled to announce a fantastic new addition to the Decision Lab family. Asma Sabat has officially joined our growing Sales and Marketing team, bringing a wealth of expertise and a proven track record in driving business growth. 

    Asma joins us from Macfarlane Packaging, where she excelled as part of the New Business Development team. Throughout her career, she has demonstrated a remarkable capability for identifying market opportunities, understanding client pain points, and delivering tailored high-value propositions. Her deep expertise in sales operations makes her perfectly positioned to help shape the next chapter of our commercial journey. 

    A professional headshot of Asma Sabat, Internal Sales Coordinator, with a neutral studio background, wearing a professional brown hijab and a dark grey blazer.

    Driving Growth and Digital Transformation 

    At Decision Lab, Asma will be focusing on lead qualification, driving our software sales pipeline, and identifying valuable upselling opportunities for our existing clients. Her appointment comes at a pivotal moment for the company. As organisations increasingly look to harness simulation, digital twins, mathematical optimisation, and AI to solve complex operational challenges, our focus is firmly on delivering scalable solutions that embed these powerful capabilities directly into the workflows of our partners. 

    Asma’s background in fast-paced commercial environments will ensure that we continue to connect our partners with the precise technical assets and software products they need to level-up their decision-making. 

    “I am incredibly excited to join the brilliant team at Decision Lab. The company’s reputation for cutting-edge data science and advanced analytics is second to none. I look forward to working closely with our partners, understanding their unique strategic goals, and helping them leverage Decision Lab’s powerful software capabilities to drive real commercial value.”

    Asma Sabat, Sales and Marketing Team

     
    “Having worked with Asma in the past, I know firsthand the level of talent, strategy, and dedication she brings to the table. I couldn’t be more excited to welcome her to the team. As we enter this next chapter of proactive growth, her skillset, experience and business relationships will be instrumental in driving our sales success.“

    Naomi Harvey, Chief Sales and Marketing Officer 

    A Strengthening Commercial Vision 

    By driving our lead qualification and scaling our outward-facing commercial efforts, Asma will play a central role in ensuring that Decision Lab’s software products reach the sectors where they can have the greatest impact.  

    Please join us in giving Asma a very warm welcome to the team! We are incredibly excited to see the impact her energy and experience will bring to Decision Lab and the organisations we serve. 

  • Champions of the Gold League

    Champions of the Gold League

    In Conversation with Loughborough Foxes U14 Royals

    At Decision Lab, we apply science and technology to help organisations solve complex challenges and achieve peak performance. But performance isn’t just about algorithms and data, it is fundamentally about dedication, strategy, and teamwork.

    That is why we are incredibly proud to sponsor the Loughborough Foxes Girls Royals U14 football team. They were recently crowned U14 Gold League Champions after a sensational season, which included a standout victory against Leicester City U14 along the way.

    To celebrate their triumph, we sat down with one of the team’s stars to find out what it takes to build a championship-winning mindset, how they handle pressure, and what the future holds as they step up to the next big challenge.

    The Taste of Victory

    U14 Gold

    POSTeamPWDLPTS
    1Loughborough Foxes Girls Royals U1420152347
    2Leicester City LFC U1420134343
    3Rugby Borough Women & Girls Lionesses19132441
    4Asfordby Amateurs LG&I U1419113536
    5Groby Juniors Vixens U1420113636
    6Oadby & Wigston All Stars U141985629
    7Desford FC Girls U141982926
    8East Goscote United Girls U1420611319
    9Haunchwood Sports Juniors Galaxy U1419511316
    10Epworth Forest Junior Bears U1419251211
    11Wigston Willow Comets U142002182

    Decision Lab: Huge congratulations on winning the Gold League! Can you tell us what was running through your mind when the final whistle blew?

    Captain: “I felt incredibly proud and happy when we won. Although we had expected to win, it was an amazing achievement and was honestly one of the best things that has ever happened to me.”

    The Coach’s Perspective

    Decision Lab: Spike, as a coach, how have you seen the team develop over this incredible run?

    Spike: “The girls have been fantastic this season. Riding off the back of last season’s promotion, they continued to progress not only their game but mentally too. Last season, in Silver, we didn’t start well, though we could have won that league.

    This season was different. The 6-4 victory over title-chasing Rugby proved to be a huge result, even though it was the first game of the season! We also put in some other stellar performances, like a 5-0 win at home to Asfordby and crucial wins home and away to Groby.”

    Facing the Big Challengers

    Decision Lab: One of the highlights of your journey was a brilliant win against Leicester City U14, a huge psychological boost for the squad after losing the away fixture. What do you think was the secret to winning that particular match?

    Captain: “I believe the reason we won is that my team was very determined, and everyone was pushing themselves to get that win. All of the girls showed up, and we held high expectations of ourselves. Honestly, I just think when our team is playing the best they can, we are simply the better team.”

    The Power of an Uplifting Culture

    Decision Lab: At Decision Lab, we know that the best results come from collaborative, psychological safety where teams lift each other up. What is your favourite thing about being a part of the Royals?

    Captain: “My favourite thing about being a part of the Royals is how the whole team is very encouraging and supportive of each other. If one of us makes a mistake, we never give each other a hard time. It creates a really uplifting atmosphere while we train and play together. What makes our team so strong is that we are all great players, and we truly know how to work as a team.”

    Stepping Up to the Platinum League

    Decision Lab: Now that you’ve conquered the Gold League, what are the team’s goals looking ahead to next season?

    Captain: “Our goals for next season are to perform well in the Platinum League. Even though this will be a big challenge, I know we can do it. Another one of our goals is to never let any challenges divide us.”

    Words of Thanks

    Decision Lab: Do you have a final message for your teammates, coaches, or the sponsors who have supported you this year?

    Captain: “I would like to thank Spike, Cam, and Izzy for always showing up and helping everyone play to the best of their ability. They have pushed and supported us every step of the way!

    Secondly, I would like to thank Decision Lab for providing us with the new kits and funding the team.

    Mostly, I would like to thank myself and my teammates for always trying our best. My final message is a big well done to my teammates, who are the kindest girls and absolutely deserved to win! 💞”

    Supporting the Next Generation

    Seeing the dedication, ambition, and sheer resilience of these Loughborough Foxes is exactly why Decision Lab chooses to invest in grassroots youth sport. Championing teamwork and watching the next generation thrive on the big stage is incredibly rewarding.

    A massive well done to the entire squad and coaching staff. We are proud to have our logo on your kits, and we can’t wait to cheer you on in the Platinum League next season! 🏆 Foxes Never Quit. 🦊💙

  • Skin in the Game: An Antifragile Design Necessity

    Skin in the Game: An Antifragile Design Necessity

    Why shared-risk architecture, antifragile systems, and accountable AI are becoming essential to modern supply chain design

    Following the closure of the Strait of Hormuz, commercial maritime traffic in the region collapsed by over 90% almost immediately.

    This is no longer a localised disruption or a temporary energy shock; we are navigating a PolyCRISIS characterised by cascading failures across finance, agriculture, manufacturing, and energy. For clients and customers alike, the illusion of a stable, predictable global landscape has entirely shattered. The overarching philosophy of the past three decades focused on hyper-optimised, just-in-time (JIT) deliveries and it is dead.

    The Shift in Paradigm: Beyond Resilience

    Until recently, when disruptions occurred, organisations relied on resilience. They used static buffers like idle capacity or excess stock to absorb shocks and eventually bounce back to a baseline state.

    Now, thanks to developing techniques and technology, it is possible to move beyond the inefficiencies of traditional buffers. Recent global data indicates that traditional safety stocks tie up billions in stagnant capital only for them to fail when confronted with events of the modern world.

    We must abandon the pursuit of mere resilience. It is time to engineer genuine antifragility. Coined by Nassim Nicholas Taleb, antifragility describes a system that actively learns, adapts, and grows stronger as a direct result of volatility. While fragile systems break under stress, antifragile ones thrive because of it.

    The Design Necessity: Architecting Shared Risk

    Before deploying technology to harvest this volatility, there is a strict strategic prerequisite. If a business or a partner learns to profit from chaos, what stops them from deliberately manufacturing it? To prevent actors from exploiting systemic stress while offloading the cost of failure, supply chain leaders must engineer ‘skin in the game’ directly into their commercial and operational architectures.

    When actors face financial or operational ruin for creating destructive friction, the incentive to exploit volatility vanishes. Here is how this is structurally enforced in the real world:

    • Outcome-Based Servitisation: The definitive standard is shifting to outcome-based contracts, exemplified by Rolls-Royce’s ‘Power by the Hour’ programme. Instead of profiting from repairs, Rolls-Royce charges based exclusively on flying hours. By absorbing the repair costs, they assume absolute risk, incentivising them to pioneer predictive maintenance. For modern supply chains, this can mean paying logistics providers for network uptime rather than freight moved.
    • Vested Outsourcing: When risk is merely shifted, partners act defensively. The reverse logistics partnership between Dell and FedEx transitioned from rigid, cost-per-unit contracts into a shared economic model. By sharing the financial risk of delays and the rewards of efficiency gains, FedEx was structurally incentivised to proactively solve problems and adapt the network during crises, rather than hiding behind Service Level Agreements (SLAs).
    • Algorithmic Accountability: As organisations deploy mathematical optimisation and Agentic AI into critical infrastructure, skin in the game must extend to technology vendors. If an AI model is licensed to route freight, the vendor’s remuneration should be tied to verified, real-world operational outcomes.

    From Philosophy to Execution: The Decision Lab Approach

    At Decision Lab, we believe this algorithmic accountability is non-negotiable. We build mathematical frameworks that enforce shared-risk architectures. Once structural skin in the game is established, organisations can safely deploy autonomous technologies to harvest volatility.

    Using advanced optimisation techniques, we help organisations execute this strategic paradigm shift across four key operational vectors:

    1. AI-Driven Energy Orchestration The Strait of Hormuz closure has triggered extreme spot market volatility for energy. Our EcoSynth architecture uses an AI-powered orchestration engine to build a mixed-integer linear programming model of a facility. By intelligently shifting non-critical processes to cheaper off-peak windows, implementations have reduced total site energy consumption by 7% to 12%.

    2. Probabilistic Supply Chain Digital Twins Rerouting around the Cape of Good Hope adds a paralysing 10 to 15-day delay to global networks. We deploy Probabilistic Supply Chain Digital Twins to create a highly accurate, mathematical replica of an end-to-end logistics network, allowing planners to use Monte Carlo simulations to dynamically simulate mitigation strategies.

    3. Multi-Echelon Inventory Optimisation When lead times stretch unpredictably, single-echelon models fail, causing massive inventory swings. Decision Lab’s optimised capacity planning evaluates the network holistically, simultaneously analysing suppliers, maritime lanes, and distribution centres. Documented applications have proven to structurally reduce inventory costs by 10% to 35%.

    4. Autonomous Execution with Agentic AI Conflict-driven friction has spiked bunker fuel costs and war-risk premiums. Human planners cannot react fast enough, necessitating Agentic AI. These frameworks evaluate mitigation strategies and devise optimal responses.

    Securing the Future

    Deploying autonomous systems into critical infrastructure requires absolute trust. Because we believe in strict accountability, we maintain an unwavering commitment to AI TRiSM (AI Trust, Risk, and Security Management), ensuring our models operate securely within strictly defined guardrails of bounded autonomy.

    The mandate for the C-suite is clear: do not wait for the next macroeconomic shock to expose the limits of your operational architecture. By embedding predictive foresight into your value chain, you can mitigate today’s vulnerabilities and develop a game-changing competitive advantage.

    Read more in Navigating the PolyCRISIS: Why Supply Chain Resilience is Dead

  • Navigating the PolyCRISIS: Why Supply Chain Resilience is Dead

    Navigating the PolyCRISIS: Why Supply Chain Resilience is Dead

    …and what Supply Chain leaders must build instead

    The global macroeconomic environment has definitively transitioned from an era of manageable disruptions into one of permanent, systemic volatility. The 2026 closure of the Strait of Hormuz has severed one of the world’s most critical maritime and economic arteries, demonstrating exactly how fragile our interconnected systems have become. Following the blockades, commercial maritime traffic in the region has collapsed by over 90%.

    The war in the Middle East is creating the largest supply disruption in the history of the global oil market.

    The International Energy Agency (report)

    While the immediate reaction framed this purely as an energy shock, supply chain analysts rightly characterise the current operating environment as a ‘PolyCRISIS’. We are witnessing cascading failures across energy, manufacturing, agriculture, and finance.

    At Decision Lab, we recognise that for senior supply chain leaders, the illusion of a stable, predictable global landscape has entirely shattered. The overarching philosophy of the past three decades that was focused on hyper-optimised, just-in-time (JIT) manufacturing is no longer viable. It is time to abandon the pursuit of mere resilience and engineer genuine antifragility.

    The Antifragile Imperative

    Traditional resilience relies on static, defensive buffers: hoarding excess safety stock, contracting redundant suppliers, or building idle capacity. Resilience is designed to absorb a disruption and bounce back to a baseline state. However, these buffers are economically inefficient and inherently fragile when confronted with black-swan geopolitical events that exceed their design parameters.

    A diagram of the Uncertainty Spectrum, showing the progression from a Fragile state (suffers from uncertainty) to a Resilient state (resists uncertainty) to an Antifragile state (gains from uncertainty).

    Antifragility, a concept coined in a book of the same name by risk analyst Nassim Nicholas Taleb, describes systems that do not merely withstand volatility, but actively learn, adapt, and grow stronger as a direct result of it. If fragility implies breaking under stress, antifragility implies thriving because of it.

    Through mathematical optimisation, artificial intelligence, and probabilistic modelling, Decision Lab helps organisations map the full probability density function of all plausible future scenarios, executing a strategic paradigm shift toward antifragility. Here is how we are architecting this transformation across four critical operational vectors.

    1. AI-Driven Energy Orchestration

    The Strait of Hormuz closure has triggered severe spot market volatility in energy. This is particularly damaging in the UK, where energy constitutes one of the largest single operational expenses for the FMCG and Pharmaceutical sectors, with the UK Pharmaceutical sector spending over £1 billion annually.

    To survive, manufacturers must transition into dynamic energy orchestrators. Decision Lab’s EcoSynth architecture provides an AI-powered orchestration engine that constructs a highly detailed mixed-integer linear programming model of a facility.

    • By ingesting historical data, grid pricing, and weather forecasts, the system precisely anticipates the cost and carbon footprint of every kilowatt-hour required.
    • It intelligently identifies non-critical processes and autonomously shifts them to cheaper, low-carbon off-peak windows.
    • Implementations of EcoSynth have demonstrated the ability to deliver a 7% to 12% reduction in total site energy consumption.

    To see this principle applied, explore our work on building an antifragile pharmaceutical production facility and creating an antifragile future for medicines manufacturing.

    2. Probabilistic Supply Chain Digital Twins

    With the Red Sea rendered highly dangerous, global shipping lines are rerouting around the Cape of Good Hope, adding 3,500 to 11,000 nautical miles to Asia-to-Europe voyages. This introduces a paralysing 10 to 15-day delay into global networks.

    Decision Lab addresses this operational blindness through Probabilistic Supply Chain Digital Twins.

    • A Digital Twin is a highly accurate, mathematical replica of an organisation’s entire end-to-end logistics network.
    • The system uses Monte Carlo simulations to inject realistic randomness into the model, generating thousands of potential future states based on variables like port congestion and weather.
    • Instead of waiting for delays to manifest as stockouts, planners can dynamically simulate mitigation strategies, transforming unmanageable chaos into a quantifiable mathematical equation.

    For an in-depth look at how this operates at scale, review our case study on strategic capacity planning for a revolutionary pharmaceutical development, developed in collaboration with AstraZeneca.

    3. Multi-Echelon Inventory Optimisation (MEIO)

    The global supply of Active Pharmaceutical Ingredients (APIs) is dangerously concentrated, with approximately 60% to 70% of global production situated in Asia. When supplier lead times stretch unpredictably, traditional single-echelon inventory models inevitably fail, leading to the massive inventory swings known as the “bullwhip effect”.

    Decision Lab resolves this through Multi-Echelon Inventory Optimisation (MEIO).

    • MEIO simultaneously analyses Asian API suppliers, maritime lanes, European formulation facilities, and distribution centres to evaluate the entire network holistically.
    • The system identifies the precise mathematical optimum for inventory positioning, balancing the high cost of holding working capital against the catastrophic risk of a medical stockout.
    • Documented industry applications of MEIO methodologies have consistently demonstrated structural inventory cost reductions ranging from 10% to 35%.

    Discover more about how we implement this via optimised production and sustainable capacity planning.

    4. Autonomous Execution with Agentic AI

    The friction generated by the Middle East conflict has manifested as severe financial strain, with war-risk premiums and escalating bunker fuel costs adding between £150 and £600 per container. In this volatile environment, human supply chain planners simply cannot move fast enough to secure optimal routing.

    The solution is Agentic AI.

    • Unlike traditional AI designed to passively answer questions, Agentic AI is engineered to take goal-oriented, autonomous action.
    • When the agent detects a massive rate spike or capacity crunch, it evaluates mitigation strategies and can autonomously execute the optimal response—booking freight space and rerouting shipments directly within the enterprise software environment.
    • Agentic frameworks promise to reduce overall logistics costs by up to 15% and optimise inventory levels by 35%.

    Moving an organisation along the spectrum from a fragile to an antifragile state requires a new cognitive architecture for decision-making. For a detailed guide on the four pillars of this transformation—from de-risking capital decisions to building a sentient factory—download our complete white paper.

    Securing the Future: Our Commitment to AI-TRiSM

    As we integrate these highly autonomous, self-governing systems into critical supply chains, trust and security are paramount. Decision Lab maintains an unwavering commitment to AI-TRiSM (AI Trust, Risk, and Security Management). We ensure that every algorithm deployed, from our Digital Twins to our Agentic AI frameworks, operates within strictly defined guardrails of “bounded autonomy,” ensuring models are rigorously transparent, compliant, and secure.

    Our advanced tooling is specifically engineered for mid-to-large global manufacturers seeking to dominate complex markets through mathematical superiority. The mandate for the C-suite is clear: do not wait for the next macroeconomic shock to expose the limits of your operational architecture.

    By partnering with Decision Lab to embed predictive foresight and intelligent automation into your value chain, you can secure antifragile pharma production and transform today’s vulnerabilities into tomorrow’s insurmountable competitive advantage.

  • Understanding AI Security: Why Traditional IT Defences Are No Longer Enough

    Understanding AI Security: Why Traditional IT Defences Are No Longer Enough

    By
    Anahita Bilimoria, Decision Lab Innovation Practice Lead
    Sandy Liu, Decision Lab Senior Consultant.

    In the past, traditional IT security focused on protecting servers from physical intrusion, malware, and unauthorised network access, sometimes called the fortress model. But in a cloud-native, AI-driven world, threats have evolved. Even if servers remain physically secure, AI models can be manipulated or poisoned remotely, altering outcomes without breaching legacy security practices. Where IT security’s focus was on firewalls, authorisation, and privileges, modern AI security emphasises the integrity of the data and the robustness of the algorithm logics themselves. Because a single malicious input can skew predictions or decision-making, protecting algorithm and its data becomes even more crucial.

    Standard software security focuses on patching vulnerabilities, managing identities, and securing APIs. It’s about ensuring the code does only what it’s told to do. If you find a bug, you patch it. If a port is open, you close it. It is deterministic and, for the most part, predictable.

    AI flips the script. Unlike traditional software (precise), AI is probabilistic (uncertain). You don’t just secure the code; you have to secure the data its trained on and prompted with, the training process, and the inference logic. AI introduces black-box risks where the system might behave dangerously even if the underlying code is technically bug-free. This is where AI TRiSM (Trust, Risk, and Security Management) becomes essential.

    Unlike one-stop shop solutions, AI solutions involve a large group of functionalities interacting with each other. Throughout the solution lifecycle, there are multiple areas that can induce the fear of a functionality being a black box. TRiSM addresses this fear by providing a framework to put multiple layers of security in the solution, ensuring the entirety of the solution follows security measures and builds trust across the solution.  

    Within the TRiSM framework, Security Management is the proactive discipline of protecting the entire AI lifecycle. It moves beyond simple IT security to ensure that AI models remain robust, private, and resistant to malicious manipulation.

    AI Security vs Traditional Security

    Security can’t be an afterthought. Bolting security into solutions after deployment exposes your solution to immense risk. We must adopt a secure-by-design framework in our lifecycle, which starts with identifying and categorising potential threats to the solution.

    To understand the changing nature of system security, we can compare traditional software security with AI security across common threats categories, noting that while the categories remain the same, the nature of the risks, and what requires protection, changes.

    Threat CategoryTraditional SecurityAI Security
    Social/InputPhishing: Tricking a user into giving up a password.Prompt Injection: Tricking a model into ignoring its guardrails to leak data or execute commands.
    InfectionMalware: Malicious code designed to corrupt a system.Adversarial Attacks: Subtly altered inputs (like invisible noise on an image) that cause a model to malfunction.
    Service DisruptDDoS: Flooding a server with traffic to take it offline.Model Inversion / Drift: Stealing the model’s logic via queries, or the model becoming stale and inaccurate over time.
    Data IntegrityMan-in-the-Middle: Intercepting data as it moves between points.Data Poisoning: Contaminating the training data so the model learns a backdoor or bias.

    As this comparison highlights, the attack surface has fundamentally shifted. We are no longer defending against malicious code trying to break into a system; we are guarding against malicious intent attempting to manipulate a model’s logic or corrupt its foundational data. Because the very nature of these threats has evolved, our defensive strategies must evolve in tandem. Let’s break down the specific security measures required to neutralise these new vectors and keep your AI solutions robust.

    Type of security measures based on types of attacks

    An isometric diagram titled "AI Security Ecosystem" illustrating five key security pillars connected to a central "Secure AI Framework" node. The five pillars are: Supply Chain & Data Security (secure dependencies and data provenance); Model Integrity (rigorous sanitisation protocols); Adversarial/Input Security (prompts guardrails and adversarial training); Access Control & API Security (authorisation and usage monitoring); and Deployment & Infrastructure Security (proactive hardened environments).

    Supply Chain & Data Security

    As researchers at the Royal United Services Institute (RUSI) recently highlighted, AI is quietly becoming a major supply chain vulnerability. Attacks targeting this ecosystem focus on compromising training data, external dependencies, or pretrained models used during development. One common example is data poisoning. Another risk involves compromised third-party libraries or pretrained models that may contain hidden vulnerabilities.

    Security measures for these attacks focus on ensuring the integrity and trustworthiness of data and external components. Organisations should implement dataset validation processes and maintain clear data provenance records. Dependency scanning tools can help identify vulnerabilities in external libraries, while secure model repositories ensure that only verified artifacts are used during development.

    Additional safeguards such as encryption of sensitive datasets, restricted access to training data, and secure data pipelines can further reduce the risk of supply chain attacks affecting the AI system.

    Model Integrity

    Model integrity is about ensuring the AI remains a faithful, untampered reflection of its intended design. The primary threat here is Data Poisoning (similar to supply chain software solutions), where attackers inject malicious samples into training sets to create backdoors. To counter this, organisations must implement rigorous Data Provenance and Sanitisation protocols, essentially auditing the lineage of every data point to ensure it hasn’t been corrupted.

    Adversarial/ Input Security

    Even a perfectly trained model can be manipulated once it goes live through Adversarial and Input attacks. The most common threat today is Prompt Injection, where users use jailbreak phrases or clever framing to bypass safety filters. To mitigate this, developers should deploy Prompt Guardrails, which act as a secondary sentinel model that scans incoming requests for malicious intent before they ever reach the primary AI.

    In the realm of computer vision or file scanning, attackers often use Adversarial Examples—adding invisible noise to an image or file to cause the AI to misclassify it (e.g., making a stop sign look like a speed limit sign). Building resilience against these tactics requires Adversarial Training, a process where the model is intentionally exposed to broken or attacked samples during development, so it learns to ignore the noise. For high-stakes environments, using Ensemble Methods—where multiple different AI architectures, in effect, vote on a single input—is a highly effective defence, as it is significantly harder for an attacker to fool three different architectures simultaneously than a single, isolated system.

    Access Control & API Security

    Many AI systems expose their capabilities through APIs, which makes them vulnerable to attacks that attempt to exploit or misuse model access. Security measures in this category focus on controlling and monitoring how users and applications interact with AI models. Strong authentication and authorisation mechanisms should be implemented to ensure that only authorised users can access the system. Role-based access control can limit user permissions based on their responsibilities. Additionally, following industry standards with frameworks like the Model Context Protocol (MCP), allows for a standardised way to manage API calls and link models.

    To mitigate automated attacks and excessive queries, organisations should implement rate limiting, request validation, and usage monitoring. Logging and auditing API activity also helps detect abnormal behaviour and potential abuse. By controlling access to AI services, these measures protect the model from exploitation and safeguard sensitive system capabilities.

    Deployment & Infrastructure Security

    AI models are typically deployed on cloud platforms, containerised environments, or edge infrastructure, which introduces additional attack vectors. Threats in this area may include unauthorised access to the hosting environment, infrastructure misconfigurations, or exploitation of vulnerabilities in the deployment pipeline. Attackers who compromise the infrastructure may gain access to model artifacts, manipulate outputs, or disrupt AI services.

    Security measures designed to defend against these attacks focus on protecting the runtime environment and deployment infrastructure. This includes implementing secure configuration practices for cloud resources, isolating AI workloads through containerisation, and encrypting communications between system components.

    Integrating security checks into the MLOps or CI/CD pipeline helps identify vulnerabilities before models are deployed. This lifecycle-wide vigilance aligns perfectly with emerging international frameworks like ETSI EN 304 223, which mandates secure practices from initial design right through to operation and retirement. Continuous monitoring of infrastructure activity and system logs can also detect suspicious behavior early. Together, these measures help ensure that AI systems operate within a secure and controlled environment even after deployment.

    Apart from forming a security policy, companies must bake them into daily operations of their solution lifecycles. Operationalising security means shifting from reactive patching to proactive, hardened deployment environments. That means stress-testing solutions against both technical failures and adversarial intent.

    Conclusion

    As we navigate the gold rush of Artificial Intelligence, we must remember a fundamental truth: Unprotected performance isn’t an asset; it’s a liability. A model that is 99% accurate but left vulnerable to data theft or security breaches is not an asset; it is a ticking liability. AI TRiSM allows companies to build a foundation for safe scaling of solutions. Security Management in particular is a pillar that transcends technology types. Whether you are dealing with:

    • Hardware (Physical tampering and side-channel attacks),
    • Traditional Software (Logic flaws and exploit kits), or
    • AI Solutions (Prompt injection and model drift),

    The philosophy remains the same. The aim is to introduce security management in every aspect of the solution and not treat it as an afterthought upon deployment. This includes a mindset shift from building a solution to building a secure-by-design solution. We must follow a granular approach and introduce security in the ideation of functionalities, to achieve a robust, anti-fragile and efficient product. By integrating Security management into the solution lifecycle, we help companies ensure trust and dependability.

    At Decision Lab, we follow the secure by design approach, so that our solutions excel in current markets, that require anti-fragile, robust solutions. To learn more, contact us!