A Guided Tour of 16 Simulations

A Journey Through the Economy

What happens when you stop assuming the economy is in equilibrium and let it evolve? A narrative walkthrough of the complexity economics simulations inspired by Eric Beinhocker's The Origin of Wealth.

16 interactive models · 96 experiments · One story
Prologue
The Equilibrium Illusion

For over a century, economics has rested on a comforting metaphor: the economy as a machine tending toward balance. Set the interest rates right, correct the market failures, and the system will find its equilibrium -- a stable resting point where supply meets demand, prices reflect information, and rational agents maximize their utility. It is an elegant framework. It has produced Nobel Prizes and shaped policy from Washington to Brussels. There is only one problem: it does not describe the world.

In 2006, Eric Beinhocker published The Origin of Wealth, a sweeping challenge to this vision. His thesis is precise: the economy is not an equilibrium machine but a complex adaptive system -- an evolving ecology of strategies, technologies, and institutions that perpetually generates novelty, never settles into rest, and produces its own crises as naturally as it produces its own growth. Financial crashes arise without obvious cause. Business cycles persist despite sophisticated policy. Wealth distributes itself according to power laws, not bell curves. Organizations that look perfectly adapted collapse overnight.

What follows is a journey through 14 computational simulations, each designed to make one of Beinhocker's arguments concrete and measurable. These are not idle abstractions. Each model captures, in miniature, a mechanism that shapes how real economies work. Together, they tell a story -- about agents who reason imperfectly, structures that amplify small causes into large effects, dynamics that never rest, and evolution as the master algorithm of wealth creation.

Every simulation is interactive. You can run them yourself, change the parameters, and watch the complexity unfold. But first, let us walk through them as a connected narrative.

Act I
The Agents
How people really decide

Traditional economics begins with a hero: the rational agent. This figure processes all available information, forms correct expectations about the future, and maximizes a well-defined utility function. It is a useful fiction for some purposes, but it is a fiction nonetheless. The first three simulations reveal what happens when we replace this idealized character with something closer to real human cognition.

1
The Bar Problem: When Rationality Has No Answer
Simulation 10 — El Farol Bar Problem

Every Thursday night in Santa Fe, New Mexico, a bar called El Farol hosts live Irish music. You want to go -- but only if the bar is not too crowded. If you predict it will be crowded, you stay home. But if enough people predict crowding and stay home, the bar is empty and you should have gone. And if everyone reasons that way, they all show up and the bar is packed again.

This thought experiment, conceived by the economist W. Brian Arthur, is a miniature demolition of rational expectations theory. There is no deductively "correct" answer. If a strategy becomes popular, it invalidates itself. The very act of prediction changes the outcome being predicted.

"If there were a rational solution, all agents would use it, and by definition it would be wrong."

-- Beinhocker, on the El Farol problem

In our simulation, 100 agents each maintain a portfolio of heuristic strategies -- trend-followers, contrarians, periodic attenders, randomizers -- and play whichever has worked best recently. The result is striking. Mean attendance self-organizes to hover near the 60-person comfort threshold, even though no one is coordinating. Attendance oscillates above and below the threshold roughly every other week, driven by nothing but the agents' own reactions to each other.

45% average prediction accuracy -- worse than a coin flip, because the system punishes correct predictions

The deepest finding is that accuracy itself is self-limiting. No strategy achieves better than 47% accuracy across any of our experiments, because the moment a strategy works, everyone adopts it, and it stops working. The rational expectations framework assumes agents can form correct predictions about the economy. El Farol shows that in a self-referential system, "correct prediction" is a contradiction in terms.

Try it yourself

Watch 100 agents decide whether to go to the bar. Adjust the threshold and population to see how coordination fails. Open the El Farol simulation

2
The Adaptive Market: Learning Beats Rationality
Simulation 01 — SFI Artificial Stock Market

If agents cannot be perfectly rational, what happens when we let them learn? The Santa Fe Institute Artificial Stock Market answers this question by populating a market with traders who each maintain a library of forecasting rules that evolve through a genetic algorithm. Successful rules reproduce. Failures are culled. Mutations introduce novelty. A market-clearing mechanism sets the price.

The comparison between rational and learning agents is devastating for the traditional view. The "rational" market -- where each agent uses a single fixed rule -- produces the worst outcomes by every measure: double the volatility, persistent mispricing, near-zero trading volume, and extreme wealth inequality (Gini 0.60). Without heterogeneous beliefs, no one trades because no one disagrees.

2.55 Hill tail index of learning market returns -- strikingly close to the empirical cubic law (~3) found in real equity markets

The learning market, by contrast, generates every "stylized fact" that characterizes real financial markets: fat-tailed returns (excess kurtosis of 45), volatility clustering (absolute return autocorrelation of 0.49), active trading (volume 100x higher), and moderate wealth inequality. These properties are not fragile artifacts of specific parameters -- every learning configuration we tested, across mutation rates, population sizes, and evolutionary tempos, produces fat tails and clustered volatility. They are the natural signature of adaptive agents co-evolving in a complex system.

The most revealing experiment: when we accelerated the genetic algorithm (evolving strategies every 50 ticks instead of 250), kurtosis tripled to 141. The evolutionary mechanism that allows agents to adapt is the same mechanism that generates systemic tail risk. Adaptation and instability are two sides of the same coin.

Try it yourself

Compare rational vs. learning traders. Watch fat tails and volatility clustering emerge from the bottom up. Open the Stock Market simulation

3
The Cooperation Puzzle: Structure Makes the Rules
Simulation 06 — Prisoner's Dilemma

One of the oldest questions in social science: how does cooperation emerge among self-interested agents? In the Prisoner's Dilemma, mutual cooperation produces the best collective outcome, but each individual benefits from defecting while the other cooperates. Standard game theory predicts universal defection -- and in our well-mixed tournament, that is exactly what happens. AllD (Always Defect) achieves 100% fixation within 50 generations. Every cooperative strategy goes extinct.

But place the same agents on a spatial grid, where they interact only with neighbors, and the outcome inverts completely.

100% cooperation rate on the spatial grid, vs. 0% in the well-mixed tournament -- same agents, same strategies, same payoffs

This is the single most important result from the simulation. The same seven strategies, the same payoff matrix, the same initial conditions produce diametrically opposite outcomes depending on population structure. On the grid, cooperative strategies form protective clusters that resist invasion by defectors. Grudger (cooperate until betrayed, then defect forever) dominates at 46%, acting as an immune system that walls off any incursion by defectors.

Add noise -- a 10% chance of accidentally defecting -- and the strategy landscape transforms again. Grudger's "never forgive" policy becomes costly when accidents happen, and Pavlov (Win-Stay, Lose-Shift) rises to 98% dominance. Pavlov self-corrects errors: after an accidental mutual defection, both Pavlov players shift back to cooperation. The environment selects not for the cleverest strategy but for the most robust one.

"The rules of the game -- trust, reciprocity, punishment of defection -- can themselves emerge as adaptive strategies in an evolutionary system."

-- Beinhocker, on emergent institutions
Try it yourself

Watch cooperation emerge on the spatial grid, then collapse in the well-mixed tournament. Add noise and watch Pavlov take over. Open the Prisoner's Dilemma simulation

The thread

Agents are inductive reasoners, not rational optimizers. They use heuristics, learn from experience, and their predictions can never be consistently correct. Cooperation, market dynamics, and coordination all depend on structure and adaptation, not on the fiction of perfect rationality.

Act II
The Structures
How systems amplify

If agents are imperfect, the systems they inhabit make things far more interesting. Simple structures -- chains of suppliers, networks of interacting decisions, food webs -- can amplify tiny perturbations into dramatic emergent behavior. The next three simulations show how.

4
The Bullwhip: Delay Creates Chaos from Order
Simulation 02 — Beer Distribution Game

The Beer Game models a four-echelon supply chain: Retailer, Wholesaler, Distributor, Brewery. Consumer demand changes exactly once -- a step from 4 to 8 cases per week at week 5. After that, demand is constant forever. There are no further shocks, no surprises, no uncertainty.

Yet the supply chain erupts into 35 weeks of wild oscillation. The Wholesaler amplifies order variance by 8x. The Brewery accumulates 95 cases of excess inventory -- 12 weeks of demand sitting on the warehouse floor. Total system cost reaches $3,236, roughly double what a perfectly rational ordering policy would produce.

But the human tax (2x from bounded rationality) is not the story. The story is the structure tax.

44x cost multiplier when shipping delay increases from 2 to 5 ticks -- structure dominates rationality by an order of magnitude

Delay is the master variable. Adding one tick of delay (from 4 to 5) nearly quadruples system cost. At 5-tick delay, the Retailer's bullwhip ratio reaches 60x -- meaning its orders bear almost no resemblance to actual consumer demand. The supply chain is not transmitting information; it is generating noise. Upstream agents are responding to the system's own echoes, not to customer behavior.

Information sharing helps: transmitting actual consumer demand to all echelons cuts costs by 43%. But even with perfect information, at 4-tick delay the system still costs 5x the baseline. Beer still takes four weeks to arrive regardless of what you know. Physics beats information.

"Business cycles may be endogenous -- generated by the structure of economic systems -- rather than caused by external shocks."

-- Beinhocker, Chapter 8
Try it yourself

Change one demand step, then watch the supply chain amplify it into 35 weeks of chaos. Adjust delays and watch costs explode. Open the Beer Game simulation

5
The Edge of Chaos: Where Organizations Live or Die
Simulation 03 — Boolean Networks

Stuart Kauffman's Boolean networks are among the simplest models in complexity science and among the most profound. Take N nodes, each holding a binary state. Wire each node to K random inputs. Assign random Boolean functions. Update synchronously. What happens depends almost entirely on K.

At K=1, perturbations die out. Flip one bit, and on average fewer than 3 of 50 nodes are ever affected. The system is frozen: stable but incapable of coordinated response. At K=5, perturbations engulf everything -- 93% of the network is affected by a single bit flip, and no stable configurations can be found at all. The system is chaotic: every change cascades everywhere, making prediction and coordination impossible.

K=2 the critical connectivity where Kauffman's networks sit at the "edge of chaos" -- maximally capable of complex computation and adaptation

At K=2, the system sits at criticality with remarkable precision (measured Derrida parameter 1.010 vs. theoretical 1.000). Perturbations neither grow nor shrink. Most cascades are small, but occasional large avalanches reach 48% of the network. This is the regime where the system can both remember (small perturbations are contained) and adapt (large perturbations propagate when needed).

The implications for organizations are direct. The same connectivity that works at small scale produces paralysis at large scale: at K=4 with 20 nodes, the system is manageable; at 150 nodes, cascades engulf 90% of the network and no stable configurations exist. This is not a management failure -- it is mathematical inevitability. Hierarchy tames the chaos by creating modular firebreaks, cutting cascade sizes nearly in half at scale.

Try it yourself

Flip one node and watch the cascade propagate. Compare ordered, critical, and chaotic regimes. Open the Boolean Network simulation

6
The Eternal Cycle: Oscillations from Interaction
Simulation 12 — Predator-Prey

The Lotka-Volterra predator-prey model is a century old, yet its lesson remains underappreciated in economics. Place prey and predators on a grid with simple rules -- prey eat grass and reproduce, predators eat prey and reproduce, both starve without food. No external forcing, no seasonal cycles, no random shocks. What emerges are sustained oscillations with a period of roughly 56 ticks, purely from the interaction rules.

Prey boom when predators are scarce. Predators boom when prey are abundant. Then prey crash under predation pressure. Predators decline from starvation. The cycle repeats, endlessly, driven by nothing but the lag between population growth and predation. The oscillations are not perfectly periodic -- amplitude and period vary from cycle to cycle due to stochastic effects and spatial heterogeneity -- but the cyclical pattern is inexorable.

The most important finding is the qualitative difference between the mathematical (ODE) and agent-based versions. The ODE guarantees eternal oscillation: populations can approach zero but never reach it. The agent-based model can and does produce extinctions. When predators dropped to just 1 individual in our fast-starvation experiment, one unlucky tick would have ended the species forever. The deterministic equilibrium model misses the most important feature of real systems: they can collapse.

56 tick oscillation period, generated entirely by interaction -- no external driver needed
Try it yourself

Watch prey and predator populations chase each other through boom-bust cycles on the grid. Compare the agent model with the deterministic ODE. Open the Predator-Prey simulation

The thread

Simple structures create complex emergent behavior. Delayed feedback amplifies tiny perturbations into system-wide crises. Networks at the edge of chaos balance stability and adaptation. Cycles arise from interaction alone. The architecture of a system constrains its behavior more tightly than the sophistication of its agents.

Act III
The Dynamics
How economies evolve

We have seen how imperfect agents interact within amplifying structures. Now the story deepens: when such systems run over time, they generate the large-scale patterns that define economic life -- inequality, segregation, catastrophic collapses, and the endless cycling between order and disruption.

7
The Wealth Puzzle: Inequality from Identical Rules
Simulation 07 — Sugarscape

Epstein and Axtell's Sugarscape places agents on a landscape with two peaks of renewable sugar. Agents move, consume, and die according to identical behavioral rules. They differ only in randomly assigned traits: how far they can see (vision) and how much sugar they consume per tick (metabolism). There is no exploitation, no market power, no inheritance of advantage.

Yet inequality emerges immediately and reliably. From an initial Gini coefficient of 0.22 (reflecting only endowment variation), the system settles at 0.375 -- comparable to many real-world pre-industrial economies. The top 10% hold wealth 39 times greater than the bottom 10%. Natural selection operates ruthlessly: no agent with metabolism=4 survives to tick 200. The survivors overwhelmingly have low metabolism (54% at the minimum of 1) and high vision (45% at 5 or 6).

0.375 Gini coefficient emerging from agents with identical rules and random starting positions -- inequality is endogenous

Enable reproduction and the system transforms further. Over 300 ticks, population explodes from 400 to 1,302 as successful agents breed. Trait evolution is dramatic: 97% of agents converge to the minimum metabolism, and vision shifts strongly upward. But Gini drops to 0.148 because reproduction acts as a wealth-splitting mechanism -- you cannot accumulate runaway wealth when exceeding the reproduction threshold halves your sugar. This is one of the few models that generates both realistic inequality and a natural mechanism to limit it.

The large-grid experiment reveals an even more fundamental insight: geography can dominate genetics. When the grid quadruples in size, 100% of survivors cluster within 18 cells of a sugar peak. Agents with metabolism=3 near a peak survive; agents with metabolism=1 placed in the desert do not. Location matters more than ability.

"Wealth inequality is not imposed externally but emerges endogenously from agent heterogeneity interacting with resource geography."

-- The complexity economics perspective
Try it yourself

Watch inequality emerge from identical rules. Enable reproduction and observe trait evolution in real time. Open the Sugarscape simulation

8
The Segregation Paradox: Mild Preferences, Extreme Outcomes
Simulation 11 — Schelling Segregation

Thomas Schelling's model is perhaps the most elegant demonstration of emergence in all of social science. Place two types of agents on a grid. Each agent has a simple rule: if fewer than X% of my neighbors are like me, move to a random empty cell. That is the entire model.

Set the threshold at 30% -- agents are happy being a 30% minority, tolerating 70% of neighbors being different. This is a mild preference by any standard. Run the simulation.

75% segregation from a 30% tolerance threshold -- the micro-macro disconnect is dramatic and unavoidable

The system converges in just 10 ticks with 705 moves, producing neighborhoods that are 75% homogeneous. Nobody wanted this. Nobody coordinated this. Agents who were perfectly happy being a minority collectively produced a world far more segregated than anyone demanded. The largest cluster reaches 670 agents -- nearly 77% of one type in a single contiguous region.

The relationship between threshold and segregation is sharply non-linear. At 10% threshold, amplification is trivial (7%). At 30%, it is major (49%). At 50%, neighborhoods are 90% homogeneous. At 75%, segregation is essentially perfect (99.8%), but at enormous cost: 65,820 moves over 95 ticks of shuffling. The system reaches the outcome eventually, but the path is tortuous.

Try it yourself

Set a modest tolerance threshold and watch extreme segregation emerge. Adjust density and thresholds to explore the tipping point. Open the Schelling simulation

9
The Sand Pile: Self-Organized Criticality
Simulation 13 — Sand Pile (BTW Model)

Drop one grain of sand at a time onto a pile. Eventually the pile reaches a state where adding a single grain can trigger an avalanche of any size -- from 1 toppling to thousands. This is self-organized criticality, the phenomenon Per Bak described as "how nature works," and it may be the most fundamental insight connecting physics to economics.

In the Bak-Tang-Wiesenfeld sandpile model, grains accumulate on a grid. When a cell reaches threshold (4 grains), it topples, sending one grain to each neighbor. Those neighbors may in turn topple, creating a cascade. The pile naturally evolves to a critical state where 44% of cells sit at height 3 -- one grain below threshold -- creating a "loaded spring" configuration that enables cascade propagation.

1:600 ratio of median to maximum avalanche size -- there is no "typical" event in a power-law system

The avalanche size distribution follows a power law with exponent ~1.26. The median avalanche involves 22 topplings. The largest involves 6,647. Both extremes, and everything in between, emerge from the same mechanism: one grain, dropped on one cell. There is no characteristic scale, no "normal" event size. This is the core insight of SOC as applied to economics: traditional risk models based on normal distributions systematically underestimate tail risk because they assume a typical event size exists. In power-law systems, extreme events are not outliers -- they are inevitable consequences of the system's dynamics.

Try it yourself

Drop grains and watch the pile reach criticality. See how one grain can trigger an avalanche spanning the entire grid. Open the Sand Pile simulation

10
Creative Destruction: The System's Natural Mode
Simulation 04 — Punctuated Equilibrium

If sand piles demonstrate self-organized criticality in physics, the punctuated equilibrium ecosystem simulation demonstrates it in evolution. Species interact through a directed network of mutualistic and competitive relationships. Fitness is not intrinsic but relational -- you thrive when the species that support you are themselves thriving. Each tick, the least-fit species is replaced, and its neighbors are perturbed.

The result: cascade sizes follow a power law. Over 500 ticks, the baseline ecosystem (100 species) produced 174 cascades with a power-law exponent of approximately 2.0. Most cascades replaced just 1-3 species. But the largest replaced 21 -- a fifth of the ecosystem wiped out in a single event. The system never reaches permanent stability, cycling endlessly between growth and disruption across 24 phase transitions.

"Creative destruction is not an occasional disruption of an otherwise stable system -- it is the system's natural mode of operation."

-- Beinhocker, Chapter 11

Connectivity is the critical variable. Tripling connection density from 0.05 to 0.15 transforms the ecosystem from one with occasional small cascades (mean size 2.5) into a system of perpetual catastrophe (mean size 56.9). Dense networks cannot compartmentalize damage. Each replacement rewires a node with roughly 15 connections, affecting many species simultaneously, and those affected species are themselves highly connected. The shockwave propagates rapidly to most of the network.

23x increase in mean cascade size when connection density triples -- connectivity amplifies fragility dramatically

Size creates qualitative differences. Small ecosystems (N=20) undergo frequent, rapid turnover -- 94 phase transitions and 10 punctuation events. Large ecosystems (N=200) are more stable on average but produce rarer, catastrophic tail events: one cascade wiped out 60% of 200 species in a single event. This mirrors the real world: small island ecosystems undergo frequent turnover while continental systems experience rare mass extinctions.

Try it yourself

Watch species replace the weakest, triggering cascades of creative destruction. Increase connectivity and observe the phase transition to perpetual catastrophe. Open the Punctuated Equilibrium simulation

The thread

Power laws, emergence, and the arrow of complexity. Inequality arises from identical rules. Segregation emerges from mild preferences. Sand piles drive themselves to criticality. Ecosystems cycle endlessly between creation and destruction. None of this is designed. None of it is equilibrium. It is the natural behavior of complex adaptive systems.

Act IV
The Evolution
How wealth is created

We have seen what agents do, how structures amplify their behavior, and what dynamics emerge over time. Now we arrive at Beinhocker's central question: where does wealth come from? His answer is evolution -- not biological evolution, but a broader process of variation, selection, and amplification that operates on technologies, organizations, and business strategies.

11
Searching Fitness Landscapes: How Technology Evolves
Simulation 08 — Technology Evolution

Beinhocker argues that technological innovation is fundamentally combinatorial -- new technologies arise by recombining existing ones. The technology evolution simulation implements this idea using Kauffman's NK fitness landscapes, where firms search a 12-dimensional binary technology space through different strategies: local hill-climbing (incremental improvement), long-jump adaptation (radical leaps), and recombination (combining existing technologies).

The clearest finding: no single search strategy dominates. The mixed-strategy baseline (40% local, 25% long-jump, 20% recombination) outperformed both pure strategies on final mean fitness. All-local-climbers converged fast but stagnated at 0.769, trapped on local optima with no way to escape. All-long-jumpers explored broadly but converged slowly, reaching only 0.764 because they lacked the fine-grained refinement needed to climb to the top of a peak.

0.784 mean fitness of mixed-strategy population, beating both pure local (0.769) and pure long-jump (0.764) -- diversity of search wins

Landscape ruggedness drives market turbulence. On smooth landscapes (K=1), firms converge quickly to the single peak with low creative destruction (17 exits in 200 ticks). On rugged landscapes (K=8), firms face many local optima separated by deep valleys, producing the highest innovation (182 innovations), the highest destruction (40 exits), and the highest diversity (0.483). This maps directly to the real world: industries with complex, interdependent technologies (software, biotech) experience more Schumpeterian disruption than industries with modular ones (commodities).

"The economy evolves not by firms improving in place, but by better technologies displacing worse ones."

-- Beinhocker, on creative destruction
Try it yourself

Watch firms search fitness landscapes with different strategies. Increase landscape ruggedness and observe creative destruction intensify. Open the Technology Evolution simulation

12
The Adaptability Trap: When Success Breeds Fragility
Simulation 05 — Rigids vs. Flexibles

If evolution favors adaptation, why do successful organizations fail? The Rigids vs. Flexibles simulation provides a devastatingly clear answer. In a hierarchy with tournament-based promotion, two types of agents compete: "Rigids" who always play the same strategy (and excel when it matches the environment), and "Flexibles" who observe and adapt (with some noise). During stable periods, the tournament promotes Rigids to the top because they outperform. The organization becomes a monoculture of specialists -- brilliantly adapted to the current environment, catastrophically unprepared for change.

96% rigid composition at the moment of the first environment switch -- the organization had systematically eliminated almost all adaptive capacity

In the high-stability experiment (500 ticks without disruption), performance peaked at 1.44 -- the highest of any experiment. The organization was 97.5% rigid, with exactly one Flexible agent remaining. This is the Thatcher Trap: the leader is perfectly matched to the regime, every metric looks excellent, and the evidence for purging flexibility is strongest precisely when the need for flexibility is greatest.

Flip to high volatility (24 environment switches in 500 ticks), and the hierarchy inverts. The top level becomes 100% Flexible. Flexibles outperform Rigids on average (1.18 vs. 0.97). Transition costs are nearly zero. Recovery takes 6 ticks instead of 15. Overall performance is lower (1.04 vs. 1.44), but the organization never experiences a catastrophic crash.

The performance-resilience tradeoff is real and steep. Maintaining diversity costs 25% of peak performance -- but you do not know how volatile the future will be while you are living in the present.

"The key to long-term survival is not being the best adapted to the current environment, but being the most adaptable to environments that haven't arrived yet."

-- Beinhocker, Chapters 12-13
Try it yourself

Watch the tournament purge Flexibles during stability, then trigger an environment switch and see the organization struggle. Open the Rigids vs. Flexibles simulation

13
Wealth as Fit Order: The Economy's DNA
Simulation 14 — Business Plans

Beinhocker's most original claim is that the fundamental unit of economic evolution is not the firm, the product, or the technology, but the business plan -- an integrated design that encodes Physical Technology (how to make things), Social Technology (how to organize people), and Strategy (how to match market demand). Wealth, in this framework, is "fit order": the degree to which business plans match the environment.

The simulation makes this concrete. Each business plan lives on three NK fitness landscapes. Total fitness is multiplicative: PT x ST x market_fit. This means the weakest component always drags the whole plan down. A brilliant product (high PT) with poor market fit (low Strategy) generates little wealth -- and this is exactly what the data shows. Mean total fitness (~0.30-0.57) is far below any single component fitness (~0.65-1.0) because all three must work simultaneously.

+81% wealth increase under stable preferences -- but at the cost of diversity collapsing to near-zero (0.006)

Stable preferences produced total wealth of 35.93 vs. baseline 19.90 because Strategy fitness converged perfectly to 1.000 with no moving target. But diversity collapsed. Rapid preference shifts created a Red Queen effect: despite generating 37% more innovations, wealth stayed at baseline levels because the target kept moving. The economy ran fast just to stay in place.

The exploration-exploitation tradeoff appeared with precision. Low mutation (0.01) produced higher wealth by preserving good solutions but at the cost of diversity. High mutation (0.15) destroyed accumulated knowledge faster than it could be replaced, dropping PT and ST fitness below baseline despite maximum diversity. Too much exploration is as damaging as too little.

Try it yourself

Watch business plans evolve on fitness landscapes. Shift market preferences and watch the Red Queen effect unfold. Open the Business Plans simulation

The thread

Evolution is the master algorithm. Technologies evolve through combinatorial search. Organizations face an unavoidable tradeoff between current fitness and future adaptability. Wealth is created when physical technology, social technology, and market strategy align. And no amount of optimization within the current paradigm protects against the next disruption.

Act V
The Whole
Putting it together

We have toured the components: adaptive agents, amplifying structures, emergent dynamics, evolutionary processes. But the real economy is not a collection of separate models. It is all of these things happening simultaneously, interacting with each other, creating feedback loops within feedback loops. The final simulation attempts something ambitious: connecting the pieces.

14
When Everything Connects: The Integrated Economy
Simulation 09 — Integrated Economy

The Integrated Economy simulation weaves together four sub-models: a Beer Game supply chain, an SFI-style stock market, a punctuated equilibrium ecosystem of firm dependencies, and the Rigids-vs-Flexibles organizational engine. Each firm has composite health drawn from all four channels. Firms fail when health drops below threshold, and failures propagate through a dependency network.

Under normal operations, the economy is stable but quietly fragile. GDP holds steady (standard deviation of only 0.053 over 200 ticks). But underneath, flexibility drifts to the model's floor of 0.20 within 50 ticks as rigidity dominates in the absence of crisis. The organization is optimizing itself into the Thatcher Trap.

Then the shocks arrive. A 2.5x supply shock alone? Zero failures -- the supply chain buffers absorb it entirely. A technology disruption alone? Zero failures -- composite health stays above threshold. But a market panic following a supply shock? Catastrophic.

28 of 40 firms destroyed in a single tick when the market panic hits -- the cascade is catastrophic and concentrated

The cascade does not arrive instantly. The panic hits at tick 120, but the major cascade (28 firms) fires at tick 130 -- a 10-tick delay while multiple damage channels compound. This is the most realistic feature of the model: crises build gradually through the interaction of multiple stressors, then break suddenly when a threshold is crossed.

Scale amplifies the catastrophe. At 100 firms (vs. 40), the same supply shock that was harmless triggers total system wipeout at tick 83 -- before the panic even occurs. The denser dependency network (792 edges vs. 125) makes cascades self-sustaining. This is a phase transition in network behavior, and it maps directly to systemic risk in interconnected financial systems.

But the most hopeful finding comes from the stress test. Repeated, well-spaced shocks make the economy more resilient by driving organizational flexibility upward. Each crisis pushes flexibility up rapidly; stability erodes it slowly. The asymmetry creates a ratchet: after three shocks, flexibility reaches 0.80, and the economy survives a market panic that would have destroyed it earlier. Periodic disruption is, paradoxically, the price of resilience.

Try it yourself

Run supply shocks, tech disruptions, and market panics on an interconnected economy. Watch cascades propagate through the dependency network. Open the Integrated Economy simulation

15
Strategy as Evolution
Simulation 15 — Strategy as Evolution

If the economy is an evolutionary system, what does that mean for strategy? Beinhocker's answer is radical: strategy is not a plan but a portfolio of experiments. The firm that runs many experiments, learns fast, scales the winners, and cuts the losers will outperform the firm that bets everything on a single vision. The Strategy simulation tests this directly.

Three types of firms compete across shifting market niches. Exploiters concentrate all resources on their best-performing experiment. Explorers spread resources evenly across everything. Adaptive firms dynamically reallocate based on performance feedback — a portfolio approach that blends the best of both.

63.2% market share captured by adaptive firms in the baseline — confirming that portfolio strategy outperforms pure exploitation and pure exploration

The results are decisive. In the baseline (moderate volatility), adaptive firms dominate with 63.2% market share, exploiters hold 27.6%, and pure explorers are nearly eliminated at 3.1%. The adaptive strategy is never the best at any single moment — but it performs well enough across all conditions to accumulate the highest long-run share. Robustness beats optimality.

But environment matters enormously. In a perfectly stable market (zero niche shifts), exploiters surge to 67.8% — when the landscape is frozen, there is nothing to adapt to, and concentration wins. In a volatile market (shift rate 0.2, producing 282 niche shifts over 300 ticks), adaptive firms lead at 50.0% while exploiters hold 40.7%. Pure exploration is a death sentence in every environment: mean fitness of 0.36 versus 0.65 for the baseline. Spreading resources too thin prevents any single initiative from reaching competitive fitness.

The most revealing experiment is the all-exploiter market. It performs well during stability, with mean fitness of 0.63. But when niches shift, every firm that concentrated on a now-mismatched experiment has no fallback. The result is catastrophic synchronized crashes — fitness collapses into the 0.55-0.58 range before slowly recovering. This is March's competency trap made visible: the very success of exploitation eliminates the diversity needed to survive disruption.

In the large economy (100 firms, 10 niches), individual portfolio diversity drops from 0.79 to 0.47 — but the market as a whole still covers all 10 niches. This is Beinhocker's core insight about markets: they function as massively parallel search algorithms. Individual firms can specialize while the system as a whole explores broadly. The market does what no individual firm can.

Try it yourself

Pit exploiters, explorers, and adaptive firms against each other across shifting niches. Adjust volatility and watch the competency trap unfold. Open the Strategy simulation

16
Public Policy in a Complex World
Simulation 16 — Public Policy

If the economy is a complex adaptive system, how should governments govern? Beinhocker's answer: policy should not try to engineer particular outcomes but should shape the fitness environment — creating the conditions under which evolutionary search can operate most effectively. The Public Policy simulation tests five regimes head to head.

Fifty firms evolve on an NK fitness landscape under different policy levers: entry barriers, compliance costs, mutation rates (innovation subsidies), market share caps, and safety net strength. The regimes range from laissez-faire (minimal intervention) to protectionist (high barriers, shielded incumbents) to adaptive (dynamically adjusting all levers based on economic indicators).

9.83 vs. 4.70 mean GDP: adaptive regime vs. protectionist — a 109% advantage from responsive governance over ideology

The adaptive regime dominates on nearly every metric. It produced the highest mean GDP (9.83, 60% above laissez-faire's 6.14), the best long-run growth (nearly flat versus laissez-faire's steady decline), the lowest unemployment (15.3%), and the highest final fitness (0.715). Over 500 ticks, it discovered a specific policy configuration that no preset regime offered: minimum regulation (0.05), low taxes (0.10), high innovation subsidies (0.60), no competition limits (1.00), and a near-maximum safety net (0.90).

Laissez-faire, counter to the simplest "free market" narrative, produced the second-lowest GDP and the highest unemployment (39.4%). With a weak safety net and no subsidies, failed firms rarely re-entered the economy. The economy slowly shrank: 30 firms alive at the end versus 50 at the start. Dead firm slots that stay empty are wasted positions in the fitness landscape search.

Protectionism is the worst regime by far: lowest GDP (4.70), worst long-run growth, lowest fitness. High regulation created entry barriers 2.6x higher than normal, making it expensive for new firms to enter. It achieved the lowest Gini (0.192) — but only because the economy was uniformly poor. This confirms Beinhocker's argument that protecting incumbents stifles the evolutionary search process. New entrants bring fresh genetic material that the economy needs.

Perhaps the most surprising finding: safety nets are pro-growth, not just pro-equity. Comparing laissez-faire (safety net 0.10) to the adaptive regime's final state (safety net 0.90), stronger safety nets correlate with higher GDP. The mechanism is evolutionary: safety nets increase the respawn probability for failed firms (from 2.8% to 9.2% per tick), maintaining the population size and the rate of landscape search. This reframes the traditional growth-versus-equity debate entirely.

Entry barriers also matter more than tax rates. Social democracy (regulation 0.40, tax 0.45) achieved 62% higher GDP and 42% lower unemployment than protectionism (regulation 0.80, tax 0.35). In an evolutionary economy, the flow of new entrants — the variation supply — matters more than the tax burden on incumbents.

Try it yourself

Compare policy regimes head to head. Watch how entry barriers, innovation subsidies, and safety nets shape the evolutionary dynamics of a complex economy. Open the Public Policy simulation

Epilogue
A New Economics

We have traveled through 16 simulations spanning financial markets, supply chains, organizational networks, ecosystems, social dynamics, evolutionary processes, strategic competition, and public policy. The models are simple -- toy worlds built from a few dozen lines of rules. But their lessons converge on a set of principles that challenge the foundations of traditional economic thinking.

Markets are not in equilibrium. The rational-expectations benchmark produced the worst market in our simulations: highest volatility, largest mispricing, near-zero liquidity. The perpetually out-of-equilibrium learning market tracked fundamentals better and distributed wealth more equally. Equilibrium is not a useful approximation; it is the opposite of what happens.

Simple rules plus structure produce complex outcomes. No agent in any simulation is sophisticated. The complexity lives in the interactions -- the feedback loops, delays, dependencies, and evolutionary pressures that turn simple local rules into rich global behavior. Four identical supply chain agents following the same heuristic generate 35 weeks of wild oscillation. Two types of grid agents with a simple "move if unhappy" rule produce dramatic segregation. One grain of sand triggers an avalanche spanning the entire grid.

Power laws are natural. Heavy-tailed distributions emerged in stock returns (Hill index 2.55), cascade sizes (exponent ~2.0), avalanche sizes (exponent ~1.26), and bullwhip ratios. They are the statistical fingerprint of self-organized criticality -- systems that drive themselves to the boundary between order and chaos.

Diversity is not inefficiency -- it is the source of resilience. In the stock market, heterogeneous strategies stabilize prices. In ecosystems, moderate connectivity balances richness and resilience. In organizations, maintaining Flexible agents reduces transition costs by half. In technology, mixed search strategies outperform any pure approach. Every model demonstrates that homogeneity is fragility.

Structure trumps intelligence. In the Beer Game, the structure tax (44x from delay) dwarfs the human tax (2x from bounded rationality). In Boolean networks, topology determines whether perturbations are contained or catastrophic. In hierarchies, depth amplifies the rigidity trap. The architecture of a system constrains its behavior more tightly than the sophistication of its agents.

"The economy is perhaps the most complex adaptive system we know -- more complex than any ecosystem, more dynamic than any organism, more inventive than any individual mind."

-- Eric Beinhocker, The Origin of Wealth

Beinhocker's vision is not a rejection of economics but an expansion of it. The equilibrium framework is not wrong so much as incomplete -- it describes a special case (systems at rest) within a much larger space of possibilities (systems in motion). Complexity economics does not abandon rigor; it trades the closed-form elegance of equilibrium models for the computational richness of agent-based simulation, where the phenomena that actually define economic life -- crashes, cycles, innovation, inequality, adaptation -- can emerge from the bottom up rather than being assumed away from the top down.

These 16 simulations are a starting point, not an endpoint. Each model is vastly simpler than the reality it represents. But together, they form a coherent argument: the economy does not tend toward equilibrium. It tends toward complexity. And understanding that complexity -- measuring it, simulating it, building intuition for how it works -- is the first step toward economic thinking that matches the world as it actually is.