Explore the future of simulation at the AnyLogic Conference 2025 on September 9.  Join us online
AnyLogic Conference 2025, September 9
 Join us online
close

Automate supply chain scenario planning and save up to 70% of your time

August 21, 2025 Elizaveta Tikhomirova

Automate supply chain scenario planning and save up to 70% of your time

In supply chain modeling, the first big win is getting your baseline model up and running. You’ve cleaned the data, mapped the network, built out the assumptions, and validated the outputs. That alone can take weeks and sometimes even months. But once you present that first model to stakeholders, something predictable happens: the questions start pouring in.

  • What if we opened a new distribution center?
  • Can we reroute products from Factory A to Factory B instead?
  • What would happen if demand doubled in Q4?

They’re great questions, but answering them isn’t always quick or straightforward. Supply chain scenario planning becomes the bottleneck. Modelers are overwhelmed. And leadership wants results right away.

Contents:

  1. The gap between models and decisions
  2. What if tactical planning was engineered?
  3. What Pychain brings to the table
  4. Scenario manager for supply chain process automation
  5. What does this change?
  6. From simulation to scalable supply chain scenario planning

The gap between models and decisions in supply chain scenario planning

In practice, this pattern appears across hundreds of projects. The initial model is built manually, typically using spreadsheets and semi-automated inputs. When new scenarios are needed, modelers copy the base file, tweak it manually, and rerun experiments from the original model.

This workflow is fragile, slow, and scales poorly

Often, just a few people understand the pipeline. The data isn’t reusable. There’s no version control. And every new question restarts the same painful process from data cleaning to manual Excel edits to model re-validation.

Taken together, these issues create what we call the first-model cliff. You’ve proven the value of simulation, but the workflow wasn’t designed for iteration.

Illustration showing obstacles in supply chain process automation

Supply chain process automation: the obstacles beyond the first model

What if tactical planning was engineered?

What if scenario development didn’t live in spreadsheets? What if data pipelines were modular, reusable, and validated by default? What if analysts and planners could test their own ideas without rebuilding the model every time?

These are the questions that led SimWell Consulting to the development of Pychain—an open-source framework for creating clean, repeatable, and modular anyLogistix models. Pychain, short for supply chain, transforms model creation into an engineering process with built-in support for supply chain process automation.

What Pychain brings to the table

At its core, Pychain is a Python library that supports supply chain scenario planning and makes it scalable. It brings together:

  • Kedro for data orchestration.
  • Polars for lightning-fast data frames.
  • Pandera for validating every column and row before import.

Beyond building and validating inputs, Pychain also streamlines the processing of anyLogistix outputs and visualizing results.

In practice, the same pipeline that generates your model data can also handle post-run results, aggregate key metrics, prepare comparison datasets, and even feed them into dashboards. This closes the loop from data ingestion → modeling → results visualization without manual exports and helps improve supply chain process automation.


What is Kedro? This was the first stage of the project, presented at the previous anyLogistix Conference. We have a separate blog where we describe this powerful tool in detail. Make sure to check it out >>

Pychain helps you define structured pipelines that take in raw data from Excel, databases, Snowflake, or wherever and turn it into fully validated anyLogistix inputs.

No more guessing if your columns are named correctly. No more trial-and-error importing. Pychain uses Pandera to validate every table and column before import, so you know the input file is clean and anyLogistix-ready before you even open the model.

Example of Pandera validation rules in Pychain (click to enlarge)

At its core, Pychain uses a layered architecture adapted from Kedro’s data engineering framework. Each piece of input data flows through a clear set of stages:

  1. Raw: connects to Excel, SQL, or Snowflake and defines data types.
  2. Intermediate: optional filters (e.g., selecting customers from specific regions).
  3. Primary: creates new columns or applies naming conventions.
  4. Model input: aggregates and renames columns to match anyLogistix formatting.
  5. Model: combines all inputs into a final Excel file that anyLogistix can import.

Data layers of Pychain for supply chain process automation (click to enlarge)

This structure makes the pipeline both readable and modular, which helps with debugging, extension, and reuse across supply chain projects.

Pychain comes in two parts:

  • The Python package: reusable core components you can use across any project after installation.
  • The project template: a starting structure for anyLogistix projects that follows consistent patterns but can be adapted to specific needs.

This separation means teams can get started quickly while still customizing for their own requirements.

For example, if your network optimization model requires 58 tables, Pychain can generate them, fill in headers, and even autofill data according to rules. This reduces repetitive work and speeds up supply chain scenario planning projects.

One of Pychain’s key innovations is the ExcelInputDataset, a custom Kedro dataset that programmatically creates the anyLogistix input file. It knows which tables are required for each experiment type and validates over 325 columns using Pandera.

Even if your pipeline hasn’t yet generated a specific table, Pychain will still write the correct sheet structure with headers, preventing anyLogistix import errors and allowing incremental model building.

Excel file created by Pychain with N of rows from Pipeline (click to enlarge)

Not every table needs to be built from scratch. anyLogistix includes several standardized tables, such as objective members, vehicle types, groups of customers, and others, that are common across projects and experiments. Pychain automates their creation, filling in headers and default values where needed.

That means less redundant work, faster project setup, and more time exploring scenarios and results instead of fixing Excel.

Scenario manager for supply chain process automation

But SimWell Consulting didn’t stop there.

Once your baseline model is built, supply chain scenario planning often requires exploring capacity changes, cost shifts, demand growth, and factory closures. Instead of making modelers handle every request separately, SimWell built a layer on top of Pychain, a tool called Scenario Manager.

Diagram of Scenario Manager data flow

Scenario Manager data flow

Scenario Manager is exactly what it sounds like: a way for users (planners, analysts, and C-level managers) to define changes they want to simulate without editing the core model themselves.

They can fill in a simple spreadsheet or, for larger teams, use a web interface connected to anyLogistix via API. This makes it easy to crowdsource new scenarios without bottlenecking your modeling team.

For example:

  • Add a liquid line at Factory B in 2027.
  • Reduce capacity by 20% at Factory C.

You trigger the pipeline, and Pychain builds a new, validated scenario input for anyLogistix. It’s ready to import. Ready to run.

No manual rework. No rechecking field names. No broken experiments.

Need more details? Watch the full presentation by the SimWell team below – [Scenario Manager demo at 15:30].

What does this change?

The results show that teams cut their scenario development time by over 70%. But speed isn’t the only benefit.

  • Planning analysts gain autonomy. They can explore real trade-offs and not just send requests to a modeling bottleneck.
  • Executives get timely answers grounded in data, not gut feeling.
  • Modelers focus on system architecture and model integrity, not data cleanup and copy-paste operations.

It also makes onboarding new team members easier. With clear pipelines and reusable templates, newcomers can contribute without needing to reverse-engineer five versions of a model.

From simulation to scalable supply chain scenario planning

Tactical planning isn't just about building one good model. It’s about the ability to respond quickly, test alternatives, and update assumptions as reality shifts. That requires systems and not spreadsheets.

Ready to take the next step? Contact SimWell Consulting to learn more about Pychain and how it can transform your anyLogistix workflow into a scalable and repeatable decision-making system.

contact SimWell