System dynamics modeling of a Tata 1mg warehouse.

System dynamics modeling of a Tata 1mg warehouse.

System dynamics modeling of a Tata 1mg warehouse.

Role

Founder's Office Intern at Tata 1mg

Timeline

4 weeks

Skills and Tools

Systems thinking, Stella Architect (a system dynamics modeling software)

Overview

A warehouse needs to know the optimal headcount to run at.

I built a simulation model to find those numbers, and found 3 reasons that made it impossible: the model can't track individual orders, can't enforce priority, and has a unit mismatch with the real warehouse.

I paused the project before it produced a false answer, documented exactly where and why the method breaks, and scoped the alternative that would actually work.

The problem

How discrete variables are handled.

The Behrampur warehouse moves thousands of orders a day. Behind all of this are the workers who make everything happen. My question for the model was this: What is the optimal number of workers to run this warehouse?****

*at the lowest cost,

*without breaking any delivery promises,

*while considering how they can be cross-utilized over tasks,

*and also their overtime work.

This is the story of finding that answer, how I realized that we were doing the wrong thing, and what I did next.

Modeling approach

A digital twin in Stella Architect.

The first step is to build the warehouse inside this software, and accuracy was the priority. 

Over conversations with the team, visits to 2 warehouses located around Delhi, and some (beautifully dry) SOP reading, I built a stock and flow chain of every task that happened to bring something into or out of the warehouse. Then, data collection. Every single task needed numbers for an amount, a rate, a resource, and a cost attached. All the assumptions, detail loss, and other observations were documented.

~230

~230

~230

variables

variables

variables

12

12

12

connected processes

connected processes

processes

75,000+

75,000+

75,000+

daily units

daily units

daily units

The pause, and why

The 3 dealbreakers: Orders, queues, and units.

  1. The model doesn’t know which order it’s talking about.

This is called Individual entity tracking, and this tool doesn’t do it. Basically, all it knows, for example, is that there are 100 orders waiting for Packing, and we’ll need 2 hours to get them in a truck. No clue where Order #12345 specifically, so no clue when it reaches that truck.

This was the 1st dealbreaker: SLA breaches are impossible to calculate if the model can’t tell the difference between specific orders.

  1. There’s no such thing as jumping the queue.

Urgent orders skip the line in the real warehouse, but they cannot in this model since all orders are treated the same.

This was the 2nd dealbreaker: Priorities are important, and a model that can’t handle it isn’t telling us how the most important items in the warehouse are handled.

  1. Workers don’t actually process the units we were measuring.

I measured at the smallest possible scale: 1 unit. So one single bottle or pill strip. Invoices, SKUs, packages all contain units, but are never processed as units by the actual workers.

This was the 3rd dealbreaker: the model's unit of work wasn't the warehouse's unit of work, and using an average here hides a highly variable number and changes the answer.

None of these were fixable with a workaround.

I tried: looking for directionally correct answers for SLA breaches, building 24-hour profiles for every variable I could, weighting the queue estimate harder during known peak hours, building correction factors for the unit mismatch by order type. Each fix roughly patched one symptom and left the problem untouched, because the problem wasn't in my model, it was in what this kind of model can represent at all.

It's easier to keep tuning a model that's producing numbers than to stop and say the numbers can't be trusted, 4 weeks in. But a wrong answer that looks confident is worse than no answer. So I stopped, and put the remaining time into documenting exactly where and why.

The pivot and result

The alternative: Discrete Event simulation (DES)

Add the details of your work here. Use this space to explain your thinking, process, and insights.

Where this model only ever sees totals, DES tracks every order, worker, and invoice as its own entity, with its own timestamp and path.

More expensive to build, at least 15x the cost.

Cannot be done in-house, and adds reliance to a vendor.

The actual result was actually 2 questions:


  1. The data: Exactly where system dynamics stops working, and all my explorations and insights in the process of turning a warehouse into system logic.

  2. A changed question: We now know that DES modelling can add so much more to warehouse optimization. So the question becomes: When does it become worth it to invest in this, what affects that answer, and what would need to change on the ground before that expense is worth paying. My final documentation is a start on this.

My learning

A result someone else can build on.

Success here wasn’t building a specific model, but finding optimal solutions for the warehouse. Eliminating a method, finding the data, and scoping the alternative is a helpful deliverable to whoever works on this next.

The bigger lesson was about ambiguous projects generally: scope and question the method until proven innocent. This project could've failed in 3 weeks instead of 4, or never begun at all, if I'd spent 2 days upfront checking whether the tool I was told to use could even answer the question I was given.

I wrote an article about more of what I learnt on my weekly newsletter, Canvas and Case notes.

Read this article

How do you write a case study about a project that didnt work?

About me

I'm Apurva :)

Outside of my work (and content about my work), I'm currently training for a marathon, reading murder mystery novels and learning to row.

About me

I'm Apurva :)

Outside of my work (and content about my work), I'm currently training for a marathon, reading murder mystery novels and learning to row.

About me

I'm Apurva :)

Outside of my work (and content about my work), I'm currently training for a marathon, reading murder mystery novels and learning to row.