If your question is "what is the best configuration?", you need optimisation. If it is "how will this configuration behave when things vary?", you need simulation. Most large supply chain decisions need both: optimisation to narrow a huge set of options to a few good ones, then simulation to find out which of those survives real demand swings, delays and breakdowns.
The two terms get used loosely, including by software vendors and consultants, so the confusion is understandable. This article sets out what each method does, where each one fails, and how we choose between them on client projects.
What each method actually does
Optimisation: the best answer to a defined problem
Optimisation takes a clearly stated objective, such as minimum total network cost, and a set of constraints, such as capacity limits and service distances. A solver then searches the possible decisions and returns the best one it can prove or find. In network design this is usually a mixed-integer model: which sites to open, which customers each one serves, and how product flows between them.
Optimisation is strong when the decision space is too large for people to explore by hand. With 40 candidate warehouse sites there are more than a trillion open-or-closed combinations, and each one also needs customers assigned and flows routed. A solver handles that search in minutes or hours.
The catch is that a standard optimisation model describes a steady state. It works with averages and treats the world as known. It does not tell you what happens on the Tuesday when three vessels arrive at once.
Simulation: how a design behaves over time
Simulation builds a working model of the system and runs it forward through time. Orders arrive, trucks queue, stock is drawn down and replenished, a supplier is late. Each run draws random values from the distributions you specify, and you repeat the run hundreds or thousands of times to see the spread of outcomes.
Two simulation styles matter in supply chains. Discrete-event simulation follows individual entities, such as orders, pallets and trucks, through processes and queues. It suits warehouses, ports and production lines. Monte Carlo simulation samples uncertain inputs many times to give a distribution of results, and suits strategic questions such as inventory investment under demand uncertainty. Agent-based models, which give each actor its own behaviour rules, are a third option for networks where decisions interact.
Simulation does not search for the best answer. You tell it what to test and it tells you how that design performs. If you want to explore a thousand options, you need optimisation to do the searching.
Optimisation and simulation side by side
| Aspect | Optimisation | Simulation |
|---|---|---|
| Core question | What is the best design? | How will this design perform? |
| Output | A recommended configuration | Distributions of cost, service, utilisation |
| Treatment of variability | Mostly averages or a few scenarios | Explicit randomness and timing |
| Strength | Searches very large option sets | Reveals queues, bottlenecks, knock-on effects |
| Weakness | Can look precise but fragile | Does not find the best option by itself |
| Typical use | Network design, site selection, sourcing, transport planning | Warehouse and port operations, inventory policy, resilience testing |
| Time horizon | Usually strategic or tactical | Operational through strategic |
| Typical tools | Solvers inside anyLogistix, Python optimisation libraries | anyLogistix simulation, AnyLogic, custom models |
Optimisation searches for the design; simulation tests how it behaves
Indicative placementNetwork design and site selection. Nearer Optimisation
Searches very large option sets
Sourcing. Nearer Optimisation
Transport planning. Nearer Optimisation
Inventory policy. Nearer Simulation
Resilience testing. Nearer Simulation
Explicit randomness and timing
Warehouse and port operations. Nearer Simulation
Reveals queues, bottlenecks, knock-on effects
How to choose: five questions
We ask five questions at the start of an engagement. The answers usually point clearly to one method or to a sequence.
- Is the decision a design choice among many options? If yes, start with optimisation.
- Does performance depend on timing, queues or resource contention? If yes, you need simulation, because these effects do not appear in steady-state averages.
- How much does randomness matter? If demand, lead times or yields swing widely relative to your safety margins, test the result with simulation.
- How costly is it to be wrong? A reversible decision such as a transport tender can rest on optimisation alone. A new distribution centre with a 10-year lease deserves a stress test.
- Is the system already running? To improve an existing warehouse, simulation of the current process is often the faster route, since there are few discrete design choices to optimise.
A worked example: three or four distribution centres
The numbers below are illustrative, not from a client project, but the pattern is one we see regularly. A distributor in Southeast Asia wants to decide between a three-site and a four-site distribution network. Target service is 95% of orders delivered within the promised window.
Step 1: optimise. The optimisation model uses average demand and fixed lead times. It finds that three distribution centres give the lowest annual cost, and a fourth site adds cost without improving average service.
Step 2: simulate. We then run each shortlisted network through 1,000 simulated years. Demand varies by week, port dwell times vary, and one major road link is closed for several days in some runs.
Nearly the same cost, very different reliability
Illustrative dataExpected annual network cost, US$M
Simulated years meeting the 95% target, %
The cheapest network misses the service target in about three simulated years out of ten. The fourth site costs US$0.8M a year and buys that resilience.
| Option | Expected annual network cost | Simulated years meeting the 95% service target |
|---|---|---|
| Three DCs | US$41.2M | 71% |
| Four DCs | US$42.0M | 94% |
The three-site network is cheaper by US$0.8M a year, but it misses the service target in about three simulated years out of ten. The fourth site buys resilience. Whether that is worth US$0.8M depends on the cost of missed service, and now the executive team is deciding with evidence rather than a single optimal answer.
Neither method alone would have produced that conversation. Optimisation alone would have recommended the three-site network. Simulation alone could not have found the two candidates among the many options.
What this looks like on real engagements
On a resilience engagement for Coca-Cola in Southeast Asia, the team tested several production and distribution configurations with simulation while sites were being consolidated across borders. The chosen design cut last-mile delivery cost by 30% (about US$5M), held service at 95%, reduced total inventory by 25% (about US$2M) and lowered the carbon footprint by 15%.
In a different setting, a hygiene products manufacturer in China had a main distribution centre that congested at peak. We built a simulation from the real layout, then tested dispatch rules, manpower allocation and process changes. The recommended changes raised throughput by 21%, cut idle labour time by 17%, raised space utilisation by 25% and saved about US$1.5M a year. There was little to optimise in the sense of choosing sites. The question was how the process behaved, so simulation was the right tool.
Common mistakes
Using optimisation for a dynamic problem. If the question is "how many dock doors do we need at peak?", an optimisation model with average flows will give a tidy, wrong answer.
Treating the optimal solution as robust. The optimum is often sitting right on the edge of a constraint. A small change in demand or lead time can push it into failure.
Simulating without validating. A simulation must reproduce known history before you trust its forecasts. We calibrate against actual throughput, stock levels or service data first.
Using simulation to search. Testing 20 hand-picked network options by simulation is not the same as searching every possible one. Let optimisation do the screening.
Spending months on detail you do not need. Match model fidelity to the decision. A strategic network question rarely needs forklift-level detail, while a warehouse layout question does.
Tools and how we use them
anyLogistix is built to support both approaches in one environment: optimisation experiments for network design and simulation experiments for testing policies and disruptions. For custom operational detail, such as a bespoke warehouse process or port terminal, we build models in AnyLogic. Where data preparation is the bottleneck, we use Lagrange.ai to automate cleaning and structuring, so more of the project time goes into the decision itself.
The client keeps the working model at the end, so the next question, such as a new demand scenario or a supplier change, can be answered by re-running it.
The decision rule in one line
Optimise when you need to choose among many designs. Simulate when you need to know whether a design will work. When the stakes are high, do the first, then the second. If you are not sure which your question needs, a short scoping conversation will usually settle it.