Hybrid Simulation and Digital Twins: When One Model Is Not Enough
How to couple minute-by-minute queues with month-by-month customer growth, then keep the model synchronized with real data every night
Key takeaways
Hybrid simulation combines two or more of discrete-event simulation, system dynamics, and agent-based modeling, because different parts of one system live at different levels of detail.
In the coffee shop example, a strategy-only model promises 6,519 regulars with three staff. Run through the counter model, that load leaves 72% of served customers staying over five minutes and 20% walking away.
Success creates its own problem: a staffing level that fixes today's queue is overwhelmed eight months later, and the bottleneck moves from the baristas to the cashier.
A digital twin is defined by automatic data flows in both directions, not by a 3D picture. With people's schedules, stopping at a digital shadow is often wiser.
A nightly loop of simple smoothing plus the queue model detects a 35% jump in demand within two nights and cuts long stays from 15.0% to 5.4% with about one extra person.
Most large decisions straddle two time scales. A hospital worries about waiting times in minutes and about its reputation in years. An airline balances gate delays against loyalty. A call center cuts staff to save money this quarter and loses subscribers over the next two. Analysts usually pick one scale, build a model for it, and assume that everything outside the model stays put.
The articles about Hat Nau, the fictional coffee chain followed throughout this series, have done exactly that. The discrete-event model (DES) assumes a constant arrival rate: 1.6 customers per minute at peak, today as well as a year from now. The system dynamics (SD) view sees service quality through aggregate monthly quantities and knows nothing about the actual line at 8 a.m. In reality the two are tightly linked. Fast service makes customers happy, reputation rises, and more people come. More people make the line longer, waits grow, and customers become unhappy. Waiting time at the counter (an operational question, in minutes) and the number of regulars (a strategic question, in months) drive each other, and no single model captures that loop.
Two developments in modern simulation grew out of this limit. Hybrid simulation combines several types of simulation in one model. A digital twin lets a simulation "live" alongside the real system thanks to continuously updated data.
This article has four sections. Section 1 introduces hybrid simulation: its definition, why it is needed, how methods are combined, and what makes it hard. Section 2 builds a hybrid model of one Hat Nau branch, coupling system dynamics with discrete events. Section 3 introduces digital twins and shows how the chain could use point-of-sale data to update its model every night. Section 4 summarizes the process, the pitfalls, and the code.
1. Hybrid Simulation
This section answers three questions: what hybrid simulation is and why we need it, how methods can be joined, and where the joining gets difficult.
1.1. What is hybrid simulation?
Definition. In the review by Brailsford et al. (2019), hybrid simulation is a modeling approach that combines two or more of discrete-event simulation, system dynamics, and agent-based modeling (ABM). The authors report near-exponential growth in its popularity. The main application areas are healthcare, supply chain management, and manufacturing, and most published models combine DES with SD.
Why combine? The deeper reason is the level of abstraction discussed in What Is Simulation? Borshchev and Filippov (2004) arrange the methods on that scale: system dynamics deals with aggregates and sits at the top, discrete-event modeling works at low to middle abstraction, and agent-based modeling spans all levels. They present agent-based modeling as a useful add-on that can be combined efficiently with the other two rather than as a replacement.
Real systems often have parts that belong at different levels. At Hat Nau, the queue at the counter unfolds in minutes, is highly random, and depends on individual customers and staff, so it suits discrete events. Reputation and the number of regulars change over months, accumulate, and lag, so they suit system dynamics. Each customer's choice of shop depends on location, taste, and friends, so it suits agents. Forcing the whole system into one method means oversimplifying one part or describing another in needless detail.
1.2. Ways of combining methods
Three degrees of coupling can be distinguished, from loose to tight, as in Table 1. They differ in whether information flows one way or both ways and in how often the components talk.
None of these is "more advanced" than the others. If information truly flows one way—say, location determines traffic but staffing does not change the location—sequential coupling is enough and far easier to check.
1.3. The challenges of hybrid simulation
Hybrid simulation is more powerful, but also harder. Brailsford et al. (2019) identify promising areas for research, including new methods for conceptual modeling and model validation. In practice, four challenges recur.
The first is time synchronization: SD advances in steps while DES jumps between events, so someone must decide how often they exchange information. The second is unit conversion: SD speaks of "regulars," DES needs "arrivals per minute," and the conversion is an assumption to state openly. The third is validating the parts and the whole: each submodel may be sensible, yet the assembly may still behave absurdly. The fourth is computational cost: each step of the strategic model may require dozens of runs of the operational one.
2. A Hybrid Model of One Hat Nau Branch
This section builds a bidirectional hybrid model of system dynamics and discrete events and follows one branch for 24 months.
2.1. Model architecture
The model has three layers, drawn in Figure 1. The two arrows between the strategic and operational layers are what make it hybrid; the decision layer reads the operational results and adjusts staffing.
The strategic layer is a system dynamics model with a one-month step and two stocks: regulars K and reputation R (on a 0–1 scale). New customers arrive through the innovation and imitation mechanism of the Bass (1969) diffusion model, multiplied by reputation. Departures rise as reputation falls. Reputation adjusts gradually toward actual customer experience X, with an average delay of 3 months. With a market potential of 8,000 customers, the monthly equations are:
New customers = (0.02 + 0.25 × K / 8,000) × (8,000 − K) × R
Departing customers = K × [0.02 + 0.15 × (1 − R)]
Change in R = (X − R) / 3
The operational layer is the 7:00–9:00 a.m. counter model from the article on discrete-event simulation: non-homogeneous Poisson arrivals, ordering times averaging 0.4 minutes, lognormal preparation times averaging about 1.25 minutes, and customers who leave when 12 or more people are already waiting. Each month it runs 15 mornings. Arrivals are proportional to the number of regulars: 4,000 regulars correspond to 1.6 customers per minute at peak and 1.0 off-peak.
The decision layer is a policy that adjusts the morning staff based on the previous month's operational results.
The first two layers exchange information in both directions. From SD to DES, the number of regulars sets the month's arrival rate. From DES to SD, the share of customers staying over 5 minutes (p) and the share who balk (b) determine the month's experience, X = 1 − 1.5p − b (never below zero), which then moves reputation. The 1.5 means that one customer who waits too long lowers the overall experience by more than their own share, because they tell others. It is an illustrative assumption, and Section 2.5 checks whether the conclusions depend on it.
Before running scenarios, try switching the links off: the hybrid model must collapse into its two submodels. Table 2 reports three such tests. The operational layer locked at 4,000 regulars reproduces the numbers in the discrete-event article, and the strategic layer with reputation locked at 0.85 converges to the equilibrium that can be solved by hand (new customers equal to departures).
2.2. Scenarios
The branch starts with 4,000 regulars, a reputation of 0.85, 1 cashier, and 2 baristas (the third scenario has 3 baristas from the start). Five scenarios are compared.
SD only: a pure system dynamics model that assumes reputation stays at its good level, as is common when operational detail is missing.
Hybrid, keep 2 baristas: no change in staffing.
Hybrid, keep 3 baristas: apply the conclusion of the discrete-event article right away.
Hybrid, add baristas only: if more than 10% of customers stayed over 5 minutes last month, add one barista (up to 6).
Hybrid, add at the bottleneck: same trigger, but check which stage has the longer wait (ordering or preparation) and add the person there (up to 3 cashiers and 6 baristas).
Each hybrid scenario is run 12 times with different random streams. Run r of every scenario uses the same set of seeds, so that differences between scenarios are less mixed up with luck.
2.3. Results
Figure 2 traces the 24 months, and Table 3 gives the state at month 24. The lines separate very early, even though every scenario starts with the same regulars and the same reputation.

2.4. Five lessons from the hybrid model
Table 3 and Figure 2 contain five lessons. The first four follow the scenarios, and the last ties them together.
A strategy-only model is dangerously optimistic. The SD-only model forecasts 6,519 regulars after 24 months with 3 staff. Put exactly that load through the DES model (200 mornings), and 72% of served customers stay over 5 minutes while 20% of arrivals walk away from the line. The forecast is operationally infeasible: the branch cannot serve that many people decently with the resources it has. A strategic model on its own cannot detect this kind of error.
Today's right answer can be wrong next year. With the current load, the stand-alone DES model shows that 3 baristas cut the share staying over 5 minutes to 3.7%. The hybrid model shows what happens next. Service improves, reputation climbs to 0.90, and regulars grow from 4,000 to about 5,800 in 8 months. At that load the share rises back to 20%, then fluctuates between 15% and 20% from month 10 onward, and reputation slides to about 0.70–0.73. Success creates its own problem. A solution that is optimal for the current state stops being optimal once the system responds to the solution.
Without adjustment, growth limits itself. With 2 baristas, the branch falls into a low equilibrium. Regulars edge up to about 4,620 in the first 3 months on the strength of past reputation. Longer lines then drag reputation down to 0.46 by month 6, regulars slip to 3,886 by month 10, recover to 4,239 by month 17, and fall back to 4,047: a damped oscillation. This is the "limits to growth" archetype of system dynamics, but here the limit is pinned down by the capacity of the drink station, which only the DES model can supply. The oscillation appears because reputation lags: by the time people hear that the shop is crowded, it no longer is.
Responding in the right place matters more than responding strongly. "Add baristas only" is a feedback policy, but it responds in the wrong place. Once there are 4 or 5 baristas, the bottleneck has moved to the cashier. One cashier can handle at most 1 / 0.4 = 2.5 customers per minute, while about 6,000 regulars generate 2.4 per minute at peak, or 97% of capacity. The policy keeps adding baristas up to the maximum of 6, for 7 staff in all. At month 24, customers wait 1.33 minutes on average to order but only 0.01 minutes for preparation, and the share over 5 minutes stays stuck at 12% to 15%.
"Add at the bottleneck" needs only 6 people (2 cashiers and 4 baristas, reached by month 11 in all 12 runs), one fewer, yet cuts the share to 3.0%, lifts reputation to 0.96, and brings regulars to nearly 7,170. The branch serves about 263 customers each morning, roughly 20% more than under the barista-only policy. This is the bottleneck lesson of the discrete-event article, now in motion: the bottleneck moves as the system grows, and the policy has to follow it. The same second cashier who was almost useless while preparation was the constraint becomes the most valuable hire.
The hybrid model reveals what neither model sees alone. All these lessons come from the interaction between the two layers. The SD model does not know how long the line is. The DES model does not know how demand reacts to service quality. Only when they are joined does the loop "good service, more customers, overload, poor service" appear, together with the way out of it.
2.5. Do the conclusions depend on the assumptions at the interface?
The conversion from queues to reputation is the weakest part of the model, since no direct measurement stands behind it. Table 4 reruns the four hybrid scenarios while changing, one at a time, the long-stay coefficient (1.5), the reputation delay (3 months), and the weight on balking (1).
The ranking of the four scenarios is the same in all seven rows, so the policy conclusion is fairly robust. The specific numbers are not: keeping 2 baristas yields anywhere from 3,843 to nearly 4,460 regulars. Table 4 also shows a useful pattern. The better the policy, the less sensitive it is to the assumptions, because when few people wait long, how waiting converts into reputation hardly matters. The delay barely changes the end point but does change the path: with 2 baristas, regulars peak at 4,363 when the delay is 1 month and at 4,838 when it is 6. The more slowly reputation reflects reality, the further the shop overshoots before it falls back.
3. Digital Twins
The hybrid model in Section 2 joins methods to each other. This section turns to a different connection: joining a model to the system it describes.
3.1. Concept and origins
From static to "living" models. The models in this series so far are built once from past data and then used to test options. As conditions change, they go stale unless someone updates them. A digital twin addresses this weakness by connecting the model to the real system through continuously updated data.
Origins. According to Grieves and Vickers (2017), the idea goes back to a presentation by Michael Grieves at the University of Michigan in 2002 on product lifecycle management. The slide did not use the name, but it had the elements: real space, virtual space, data flowing from real to virtual, and information flowing from virtual to real. The model was called the Mirrored Spaces Model and then the Information Mirroring Model before taking the name "digital twin" from the way John Vickers of NASA described it. A report by the National Academies of Sciences, Engineering, and Medicine (2024) likewise says the term emerged around 2010 during NASA technology roadmapping co-led by Vickers. Two years later, Glaessgen and Stargel (2012) described the digital twin for NASA and U.S. Air Force vehicles: ultra-high-fidelity simulation combined with onboard health management, maintenance history, and fleet data to mirror the life of each vehicle.
This origin story is contested. Zhou et al. (2022) find no conclusive documentary evidence that digital twins derive from Grieves's model; they point to work on virtual manufacturing in Japan in 1993 and to a 1997 paper that already used the term. Managers need not settle the dispute. It is enough to know that "Grieves invented the digital twin in 2002" is one account, resting largely on his own.
Whatever its origin, the concept spread quickly. Tao et al. (2019) call it one of the most promising enabling technologies for smart manufacturing and Industry 4.0, characterized by seamless integration of cyber and physical spaces. The National Academies of Sciences, Engineering, and Medicine (2024) stress three points: a digital twin is updated with data from its physical counterpart, has predictive capability, and informs decisions, with two-way interaction between virtual and physical at its center.
Digital model, digital shadow, digital twin. The term is now used very broadly, sometimes for any 3D model or dashboard. Kritzinger et al. (2018) propose three levels according to how far the data flows between the real system and the model are automated, as in Table 5 and Figure 3.
The models for Monte Carlo, discrete events, system dynamics, and agents in this series are all digital models: people collect data, enter it, read the results, and decide. Kritzinger et al. (2018) also found literature on the highest level, the true digital twin, to be scarce, with more on digital models and shadows. In other words, much of what is called a digital twin is really a shadow.
Another common confusion equates a digital twin with a 3D model or a virtual-reality view of a factory. Three-dimensional graphics are only a display. What makes a twin are the two things underneath: a model that can compute how the system behaves and an automatic data flow that ties the model to the real system. A twin may show nothing but a few tables; a beautiful 3D model lacking those two elements is not yet one.
3.2. Illustration: scheduling staff at Hat Nau
This illustration reuses the DES model, adds a nightly update loop, and compares it with scheduling once.
The situation. Suppose that on day 40 a new office building opens nearby, raising morning demand by 35% without the manager knowing in advance. Two ways of scheduling are compared. The fixed schedule, from a one-time model, has 1 cashier and 3 baristas every morning, the conclusion of the discrete-event article. The model-proposed schedule works as follows: each night the system reads the morning's orders from the point of sale, updates its demand estimate by exponential smoothing, runs the DES model at that estimate (200 mornings per staffing combination), and proposes the smallest team that keeps the share staying over 5 minutes below 8% the next morning. Among teams of equal size, it picks the one with the lowest share. The smoothing formula is short:
Estimate for tomorrow = estimate for today + α × (orders today − estimate for today), with α = 0.3
Figure 4 shows one 90-day run. The upper half shows how the estimate tracks the data, and the lower half shows how the schedule changes.

Results. A single run may be lucky, so Table 6 averages 200 independent runs of all 90 days.
The system notices the change after two nights and proposes one more person, holding the share of long stays at about 5.4%, just over a third of the fixed schedule's. What stands out is that it adds not a barista but a cashier. With demand 35% higher, a fourth barista would still leave 9.1% of customers staying over 5 minutes, whereas a second cashier brings that down to 5.7%. The bottleneck has moved again, and the model sees it because it recomputes the whole counter instead of reusing the old rule "add a barista."
Nothing here is algorithmically sophisticated: a simple smoothing rule and an existing DES model. The value lies in the automatic loop. New data flow in every night, and the model answers tomorrow's question rather than last month's.
Responsiveness costs stability. The parameter α controls how much the system trusts new data. Table 7 tries three values.
With α = 0.6 the system reacts after a single night, but then changes the schedule more than 7 times in 45 days because it also chases random noise. For part-time staff, a constantly shifting schedule is a real cost the model does not count. With α = 0.1 the schedule is stable, but the shop endures nearly a week of overload. A value of 0.3 is a reasonable compromise here; elsewhere, test it with the model itself.
A blind spot in the data. The point of sale records orders, not customers who look at the line and leave. Under the fixed schedule and the new demand, an average of 198.4 customers arrive each morning but only 195.4 orders are recorded. The gap is small here. At a badly overloaded counter, orders are capped by capacity, and the system would believe demand is lower than it is exactly when more people are needed.
From shadow to twin. If the system only sends a proposal and the manager decides whether to call in more people, it is a digital shadow. If it automatically updates the shift app and notifies part-time staff, it is a digital twin in the sense of Kritzinger et al. (2018). For decisions about people, such as work schedules, the shadow is often the wiser level: the model proposes, people decide.
3.3. Applications and challenges
From aerospace and manufacturing, the concept has spread to many fields. In healthcare, Karakra et al. (2018) propose a digital twin of hospital services in which a discrete-event model is integrated with health information systems and Internet of Things devices. In supply chains, Ivanov and Dolgui (2021) theorize a digital supply chain twin, a computerized model representing network states at any given moment in real time, for managing disruption risks. In cities, Caldarelli et al. (2023) argue that theories and methods from complexity science are needed to guide the development and use of urban digital twins.
The main challenges fall into four groups. The first is data quality and latency: a twin is only as good as the data feeding it, and wrong or late data can make it wrong with confidence, as with the balking blind spot above. The second is interoperability: Grieves and Vickers (2017) expect that the major issue will be less technical than the failure of different vendors' software to work together. The third is structural obsolescence: exponential smoothing updates a parameter (demand), but if the structure changes, say the shop switches to mobile ordering and counter pickup, the DES model has to be rebuilt. The fourth is cost and complexity: not every system needs a twin, and for many decisions a digital model refreshed each quarter is enough.
3.4. Human-in-the-loop simulation
Another extension places people inside the model. In human-in-the-loop simulation, people make decisions while the simulation runs. Two well-known examples are the Beer Distribution Game and the People Express management flight simulator, both from the system dynamics tradition.
The hybrid model in Section 2 could easily become a training game for branch managers. Each "month," the player sets staffing, watches the queue and reputation change, and decides again. The aim is not to forecast but to let managers experience the feedback loops before meeting them in reality. The article on simulation for learning explores this kind of simulation.
4. Hybrid Simulation in Practice
This final section condenses the work into a process, points out common pitfalls, and gives code you can run.
4.1. A process for building a hybrid model
The process has six steps, and the middle ones are where a hybrid model differs from a single one.
Start from the question, not the method. Use a hybrid model only when the question truly requires interaction between levels of abstraction.
Draw the overall conceptual model before splitting it: which parts are strategic, which operational, and what information they must exchange.
Build and validate each submodel separately. The Hat Nau model reuses a verified DES model and the familiar Bass structure.
Design the interface: which variables pass from which model to which, how often, and with what unit conversion.
Verify and validate the whole: with the links off, the hybrid model must match each submodel, as in Table 2; then compare with real data if available.
Design experiments and analyze sensitivity, especially for interface parameters such as the reputation delay or the conversion from experience to reputation, as in Table 4.
4.2. Common pitfalls
The four pitfalls below can all be avoided by stating assumptions from the start.
Going hybrid because it is fashionable. Hybrid models are more complex, harder to validate, and more expensive. If one type of simulation answers the question, use one.
An arbitrary interface. In the Hat Nau model, converting long stays into experience and experience into reputation holds the most assumptions. It also deserves the most sensitivity testing and calibration against customer surveys.
Ignoring differences in time scale. The model exchanges information monthly. With daily exchange and no smoothing, reputation could swing with every unlucky morning; with yearly exchange, the model would miss important reactions. The frequency should reflect how fast the variables really change.
Calling a shadow a twin. Naming the level of automation correctly helps judge value and risk, above all when the system can act on its own.
4.3. Tools and sample code
There are three routes, depending on how comfortable the team is with programming.
Tools. AnyLogic is probably the best-known commercial package for multimethod simulation, combining DES, SD, and ABM in one graphical model. In Python, submodels can be joined using SimPy (DES), NumPy (SD), and Mesa (ABM), which is flexible but leaves time synchronization to the modeler. It is also possible to link packages, for instance a DES model in Simul8 or Arena with an SD model in Vensim, exchanging data through files or interfaces; this reuses existing models but is hard to maintain.
Python code for the hybrid model. The code below needs only NumPy. The DES layer uses event scheduling with heapq and exactly the parameters of the discrete-event article. Note the two lines marked "SD -> DES" and "DES -> SD": they are the interface of the hybrid model.
import heapq
from collections import deque
import numpy as np
def customer_list(seed, scale):
"""One morning's customers; scale = 1 is exactly the original discrete-event model."""
rng, customers, t = np.random.default_rng(seed), [], 0.0
while True:
t += rng.exponential(1 / (1.6 * scale))
if t > 120:
return customers
if rng.random() <= (1.6 if 30 <= t < 75 else 1.0) / 1.6:
customers.append((t, rng.exponential(0.4), rng.lognormal(np.log(1.25) - 0.1, 0.45)))
def morning(cashiers, baristas, customers):
"""DES layer: returns (share over 5 minutes, balking share, wait to order, wait for drink)."""
events = [(k[0], i, "arrive") for i, k in enumerate(customers)]
heapq.heapify(events)
queue1, queue2, ordered = deque(), deque(), {}
stays, wait1, wait2, balked = [], [], [], 0
while events:
t, i, event = heapq.heappop(events)
if event == "arrive":
if len(queue1) + len(queue2) < 12: queue1.append(i)
else: balked += 1
elif event == "order_done":
cashiers += 1; queue2.append(i); ordered[i] = t
else:
baristas += 1; stays.append(t - customers[i][0])
while baristas and queue2:
j = queue2.popleft(); baristas -= 1; wait2.append(t - ordered[j])
heapq.heappush(events, (t + customers[j][2], j, "drink_done"))
while cashiers and queue1:
j = queue1.popleft(); cashiers -= 1; wait1.append(t - customers[j][0])
heapq.heappush(events, (t + customers[j][1], j, "order_done"))
stays = np.array(stays)
return (stays > 5).mean(), balked / len(customers), np.mean(wait1), np.mean(wait2)
def hybrid(policy, c, b, rep=0, M=8000):
regulars, reputation = 4000.0, 0.85
for month in range(25):
res = [morning(c, b, customer_list([rep, month, k], regulars / 4000))
for k in range(15)] # SD -> DES
long_stay, balked, wait1, wait2 = np.mean(res, axis=0)
if month % 6 == 0:
print(f"Month {month:2d}: {regulars:5.0f} regulars, reputation {reputation:.2f}, "
f"over 5 min {long_stay:.1%}, {c} cashier(s) + {b} baristas")
experience = np.clip(1 - 1.5 * long_stay - balked, 0, 1) # DES -> SD
new = (0.02 + 0.25 * regulars / M) * (M - regulars) * reputation
lost = regulars * (0.02 + 0.15 * (1 - reputation))
reputation += (experience - reputation) / 3 # 3-month delay
regulars += new - lost
if policy == "bottleneck" and long_stay > 0.10: # decision layer
if wait2 >= wait1: b = min(b + 1, 6)
else: c = min(c + 1, 3)
print("Keep 1 cashier + 3 baristas"); hybrid("fixed", 1, 3)
print("Add staff at the bottleneck"); hybrid("bottleneck", 1, 2)The output is the first run (run 0) of the 12 behind Table 3:
Keep 1 cashier + 3 baristas
Month 0: 4000 regulars, reputation 0.85, over 5 min 4.1%, 1 cashier(s) + 3 baristas
Month 6: 5741 regulars, reputation 0.80, over 5 min 19.8%, 1 cashier(s) + 3 baristas
Month 12: 5698 regulars, reputation 0.70, over 5 min 20.7%, 1 cashier(s) + 3 baristas
Month 18: 5492 regulars, reputation 0.72, over 5 min 13.0%, 1 cashier(s) + 3 baristas
Month 24: 5719 regulars, reputation 0.75, over 5 min 20.2%, 1 cashier(s) + 3 baristas
Add staff at the bottleneck
Month 0: 4000 regulars, reputation 0.85, over 5 min 23.0%, 1 cashier(s) + 2 baristas
Month 6: 5543 regulars, reputation 0.83, over 5 min 8.6%, 2 cashier(s) + 3 baristas
Month 12: 6285 regulars, reputation 0.93, over 5 min 1.2%, 2 cashier(s) + 4 baristas
Month 18: 7014 regulars, reputation 0.96, over 5 min 2.1%, 2 cashier(s) + 4 baristas
Month 24: 7172 regulars, reputation 0.96, over 5 min 3.9%, 2 cashier(s) + 4 baristasYou can see success creating its own problem. With 3 baristas, the share staying over 5 minutes starts at about 4%, but once regulars pass 5,700 it rises to around 20% and reputation slides. Adding staff at the bottleneck escapes the spiral, although reputation stalls for the first half year. One run is only one possibility: at month 18 this run shows 13.0%, while the average of 12 runs is 17.6%. To rebuild Table 3, call the function with rep from 0 to 11 and average.
Conclusion
Each type of simulation is a lens with its own magnification. System dynamics sees the forest but not the trees. Discrete-event simulation sees the trees but not how the forest changes with the seasons. Hybrid simulation puts the lenses together, so we can see how what happens at the drink station at 8 a.m. shapes the reputation of the whole branch a year later, and the other way around.
The Hat Nau story shows three things. First, a single model can be systematically wrong when it ignores feedback from outside its scope. Second, bottlenecks move as a system grows, so a good policy responds in the right place, not just strongly. Third, a digital twin turns simulation into a daily operating tool, provided the data are trustworthy and the update loop is regular.
Behind many models in this series lies a mathematical foundation that has not yet been spelled out: how a computer solves differential equations. The article on continuous simulation returns to it and explains why something as technical-sounding as the "time step" can make a result right or completely wrong.
Data note: Hat Nau is a fictional coffee chain. All parameters of the hybrid model and the digital twin illustration are illustrative assumptions, simulated in Python (NumPy, heapq). The hybrid model is run 12 times per scenario with 15 mornings per month; seeds are the triple [run, month, morning]. The digital twin illustration is run 200 times with seeds [run, day]; Figure 4 is run 0; the planning model uses seeds 0 to 199.
References
Bass, F. M. (1969). A new product growth for model consumer durables. Management Science, 15(5), 215–227. https://doi.org/10.1287/mnsc.15.5.215
Borshchev, A., & Filippov, A. (2004). From system dynamics and discrete event to practical agent based modeling: Reasons, techniques, tools. In Proceedings of the 22nd International Conference of the System Dynamics Society. System Dynamics Society. https://faculty.sites.iastate.edu/tesfatsi/archive/tesfatsi/SystemDynDiscreteEventABMCompared.BorshchevFilippov04.pdf
Brailsford, S. C., Eldabi, T., Kunc, M., Mustafee, N., & Osorio, A. F. (2019). Hybrid simulation modelling in operational research: A state-of-the-art review. European Journal of Operational Research, 278(3), 721–737. https://doi.org/10.1016/j.ejor.2018.10.025
Caldarelli, G., Arcaute, E., Barthelemy, M., Batty, M., Gershenson, C., Helbing, D., Mancuso, S., Moreno, Y., Ramasco, J. J., Rozenblat, C., Sánchez, A., & Fernández-Villacañas, J. L. (2023). The role of complexity for digital twins of cities. Nature Computational Science, 3(5), 374–381. https://doi.org/10.1038/s43588-023-00431-4
Glaessgen, E. H., & Stargel, D. S. (2012). The digital twin paradigm for future NASA and U.S. Air Force vehicles [Paper presentation]. 53rd AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials Conference, Honolulu, HI, United States. https://doi.org/10.2514/6.2012-1818
Grieves, M., & Vickers, J. (2017). Digital twin: Mitigating unpredictable, undesirable emergent behavior in complex systems. In F.-J. Kahlen, S. Flumerfelt, & A. Alves (Eds.), Transdisciplinary perspectives on complex systems: New findings and approaches (pp. 85–113). Springer. https://doi.org/10.1007/978-3-319-38756-7_4
Ivanov, D., & Dolgui, A. (2021). A digital supply chain twin for managing the disruption risks and resilience in the era of Industry 4.0. Production Planning & Control, 32(9), 775–788. https://doi.org/10.1080/09537287.2020.1768450
Karakra, A., Fontanili, F., Lamine, E., Lamothe, J., & Taweel, A. (2018). Pervasive computing integrated discrete event simulation for a hospital digital twin. In 2018 IEEE/ACS 15th International Conference on Computer Systems and Applications (AICCSA) (pp. 1–6). IEEE. https://doi.org/10.1109/AICCSA.2018.8612796
Kritzinger, W., Karner, M., Traar, G., Henjes, J., & Sihn, W. (2018). Digital twin in manufacturing: A categorical literature review and classification. IFAC-PapersOnLine, 51(11), 1016–1022. https://doi.org/10.1016/j.ifacol.2018.08.474
National Academies of Sciences, Engineering, and Medicine. (2024). Foundational research gaps and future directions for digital twins. National Academies Press. https://doi.org/10.17226/26894
Tao, F., Zhang, H., Liu, A., & Nee, A. Y. C. (2019). Digital twin in industry: State-of-the-art. IEEE Transactions on Industrial Informatics, 15(4), 2405–2415. https://doi.org/10.1109/TII.2018.2873186
Zhou, J., Zhang, S., & Gu, M. (2022). Revisiting digital twins: Origins, fundamentals, and practices. Frontiers of Engineering Management, 9(4), 668–676. https://doi.org/10.1007/s42524-022-0216-2




Discussion about this post