# Bonabeau Apps > Interactive models of complex systems by Eric Bonabeau: swarm intelligence, ant colony algorithms, interactive evolution, agent-based models, markets and biology. Each app is a single self-contained page on its own subdomain of bonabeauapps.com, and most can be driven by an AI agent through a JavaScript API or through URL parameters. ## How to operate any app - Read the manifest: JSON in `script#sim-manifest` (schema `sim-manifest/2`), or call `sims[id].describe()`. It lists each demo's parameters (with ranges and slider grid), metrics, actions, worked examples, and what is deliberately not exposed. - Wait for `await sim.ready` (`window.sim` is the primary demo; `window.sims[demoId]` holds every demo). - Simulation demos: `sim.setParams({...}); sim.reset({seed: 1}); const r = await sim.run({steps: 2000});` then read `r.metrics` and `r.series`. Same parameters + seed + steps give identical results. - Evolution demos: `getPopulation()`, `select([ids])`, `breed()`, `render(id)` (PNG data URL, or text where the manifest says so), `await autoEvolve({generations, chooser: "target" | "objective" | "random", pick})`. - Calculator demos: `setParams({...})` then `getMetrics()`; `sweep({param, values})`. - Without JavaScript access: load `?=&seed=1&steps=2000&autorun=1` (add `demo=` for a non-primary demo; evolution demos take `generations`, `chooser`, `pick`), wait for `html[data-sim-status="done"]`, and read the JSON in the demo's `[data-role="results"]` element (`#sim-results` for the primary demo). - Full machine-readable index: [simulations.json](https://www.bonabeauapps.com/simulations.json) ## Apps - [Agent-Based Pattern Formation: interactive models from Bonabeau (1997)](https://abm-pattern-formation.bonabeauapps.com/): Interactive versions of the five models in Bonabeau's 1997 Artificial Life paper on pattern formation: ant cemetery clustering, Young's activation-inhibition cellular automaton, and three agent-based versions of Young's model that use perception, memory, or both. Each runs on a toroidal grid, with presets that reproduce the paper's figures. Demos: `clustering` (simulation), `young` (simulation), `agentSpace` (simulation), `agentTime` (simulation), `combined` (simulation). - [Ant Colony Optimization on the Traveling Salesman Problem](https://ant-colony-tsp.bonabeauapps.com/): Ant colony optimization on the traveling salesman problem. Part one runs Dorigo's Ant System on random cities; part two shows, after Meuleau and Dorigo (2002), that the pheromone update is an approximation of stochastic gradient ascent, with two update rules side by side and a two-tour gradient landscape. Demos: `ant-system` (simulation), `update-rules` (simulation), `gradient-landscape` (simulation). - [Army ant raid patterns: an interactive explainer of Solé et al. (2000)](https://army-ants.bonabeauapps.com/): Interactive reproduction of Solé, Bonabeau, Delgado, Fernández and Marín (2000): army ants following simple pheromone rules form column or swarm raids depending on the prey, and a macroevolutionary search over the rule parameters finds raid patterns that maximize food returned per ant. Five demos: the live raid, three landscapes side by side, the parameter search, and the two movement rules. Demos: `raid` (simulation), `compare` (simulation), `search` (simulation), `rule1-move` (calculator), `rule2-direction` (calculator). - [Biomorphs: interactive evolution](https://biomorphs.bonabeauapps.com/): Breed Dawkins's biomorphs by eye: pick the offspring you prefer and it becomes the next parent. Optional gene groups add symmetry, segmentation and gradients, and several parents can be recombined. - [Bits of Intuition: an interactive tour of information theory](https://informationtheory.bonabeauapps.com/): Eight small interactive levels on information theory, from a jar of marbles to Shannon's noisy channel coding theorem: information as ruled-out probability mass, entropy and prefix codes, cross-entropy and KL divergence, typical sequences, mutual information, entropy rate of a Markov chain, channel capacity, and error-correcting codes. Demos: `surprise` (calculator), `prefix-code` (calculator), `cross-entropy` (calculator), `typical-sequences` (calculator), `mutual-information` (calculator), `sticky-urn` (simulation), `channel-capacity` (calculator), `noisy-channel` (simulation). - [Breeding network metamaterials: interactive evolution of scale-rich networks](https://breeding-metamaterials.bonabeauapps.com/): Interactive evolution of mechanical network metamaterials on the scale-rich growth model of Both et al. (Nature, 2026): breed 2D ligament networks by eye or toward a declared goal such as auxetic in every direction, breed 3D cylinder and plate networks, inspect one specimen from genes to response, and recompute Figures 2, 3, 5 and 6 of the paper with reduced beam models. Demos: `breeder` (evolution), `breeder3d` (evolution), `bench` (calculator), `fig2` (calculator), `fig3` (calculator), `fig5` (calculator), `fig6` (calculator). - [Composite evolver: interactive evolution of a suspect face](https://facial-composites.bonabeauapps.com/): Study a target face, hide it, then breed a likeness from memory by choosing among whole faces, as in the EvoFIT procedure (Frowd et al., 2005); three breeding strategies from Zahradnikova et al. (2017) can be compared, and Finish and compare scores the composite's likeness to the target. - [Diagnostic choice tasks: an interactive guide to Pfeiffer et al. (2014)](https://choice-decision.bonabeauapps.com/): Interactive guide to Pfeiffer, Duzevik, Rothlauf, Bonabeau and Yamamoto (2014), An optimized design of choice experiments (Journal of Behavioral Decision Making): a genetic algorithm builds, for each respondent, a phone comparison in which four decision rules (WAD, MAJ, LEX, EBA) each select a different phone, so one choice reveals the rule. The page lets you apply the rules to a comparison, count the possible tasks, see how similarity and conflict are measured, run the GA against random sampling for a synthetic respondent, and read the study's results. Demos: `ga-search` (simulation), `random-tally` (simulation), `hero-comparison` (calculator), `rule-explorer` (calculator), `task-space` (calculator), `similarity-conflict` (calculator). - [Dynamic Scheduling and Division of Labor in Social Insects: interactive explainer](https://ant-scheduling.bonabeauapps.com/): Interactive explainer of Campos, Bonabeau, Theraulaz and Deneubourg (2001), Dynamic Scheduling and Division of Labor in Social Insects: trucks leave an assembly line once a minute and paint booths decide which booth takes each truck, either by bidding (a market rule) or by response thresholds that adapt with experience (an ant rule). A reimplementation runs both rules on the same trucks and breakdowns, repeats the experiment over many runs, and plots both rules' formulas. Demos: `paint-shop` (simulation), `paired-runs` (simulation), `rule-curves` (calculator). - [Emoji evolution](https://emoji-evolution.bonabeauapps.com/): Breed emoji faces by eye: pick the faces you like and they become the parents of the next generation, mixing and mutating their hair, expression, accessories and situation. A typed description can steer the traits. - [Estimating agent-based models by matching random features](https://abmestimation.bonabeauapps.com/): Explainer of simulation-based estimation of agent-based models by matching random Fourier features (Shalizi 2021; Wieck-Sosa and Shalizi 2026): an agent-based model defines a distribution one can only sample from; 2p + 1 randomly chosen features identify its p parameters; their time averages on observed and simulated data are matched by a global search. A 32 x 32 grid epidemic with unknown transmission and recovery probabilities is the running example, estimated live in the browser. Demos: `abm-run` (simulation), `random-feature` (calculator), `feature-embedding` (calculator), `time-average` (calculator), `rolling-window` (calculator), `live-estimation` (simulation). - [evoDesign: interactive evolution of tiles](https://evodesign.bonabeauapps.com/): A reproduction of evoDesign (Anderson, Buchsbaum, Potter and Bonabeau, 2008): breed seamless repeating tiles made of circles, rectangles, stripes and color grids by selecting the ones you like and applying mutation, crossover or both. - [Evolving a map of swarm behaviors](https://evolving-particle-swarms.bonabeauapps.com/): A quality-diversity (MAP-Elites) search over a nine-parameter self-propelled particle model, after Wen and Bonabeau (Physica A): every simulated swarm is placed in a 12 by 12 grid of alignment and milling or clustering, and each cell keeps its most stable rule. A single-objective optimizer and random sampling fill the same grid for comparison. - [Evolving car silhouettes inside constraints](https://evolving-car-silhouettes.bonabeauapps.com/): Interactive evolution of car side views: two parents are recombined into six offspring, you choose which ones look right, and constraint zones you draw on the board (occupants, roof limit, sight line) discard candidates that break them. - [Evolving the view: interactive evolutionary computation for exploratory data analysis](https://interactive-data-exploration.bonabeauapps.com/): Interactive evolutionary computation for exploratory data analysis, rebuilt from the 2004 Icosystem experiments: evolve metrics, projections, embeddings, sonifications and time-series combinations by picking what looks informative, and compare with automatic indices, surrogate models, MAP-Elites and active learning. Demos: `metric` (evolution), `bagel` (evolution), `links` (evolution), `stripes` (evolution), `preference` (evolution), `qd` (simulation), `sound` (evolution), `timeseries` (evolution), `active` (calculator). - [Interactive evolution as model inversion](https://interactive-inversion.bonabeauapps.com/): Interactive evolution as a way to invert forward models: four labs where an observer picks or ranks candidates that look closest to a target, after Ashburn & Bonabeau (CEC 2004) and Ecemis, Bonabeau & Ashburn (GECCO 2005) on an agent-based financial market, Boschetti & Moresi (2001) on mantle convection, Wijns, Boschetti & Moresi (2003) on fault spacing, and Singh, Minsker & Valocchi (2008) on aquifer conductivity with three objectives. Demos: `market` (evolution), `geo` (evolution), `faults` (evolution), `aquifer` (evolution). - [Interactive evolution for workload partitioning](https://multi-participant-workload-partitioning.bonabeauapps.com/): A working model of interactive evolution for dividing work among the people who do it: each round the planner prepares six partitions, every participant ranks only their own piece, and the rankings choose the parents of the next round. Two examples with simulated participants: five mail carriers dividing a town into routes (after the Accord field process for La Poste), and a nurse roster scored as in Funes, Bonabeau, Hervé and Morieux (CEC 2004). Demos: `mail` (evolution), `nurse` (evolution). - [Interactive evolution in molecular space](https://interactive-evolution-molecular-space.bonabeauapps.com/): A working model of interactive evolutionary computation for drug candidate design, after the Mobius environment of Ecemiş, Wikel, Bingham and Bonabeau (IEEE Trans. Evol. Comput., 2008): a genetic algorithm searches compounds assembled from chemist-chosen fragments on a quinolone scaffold, trapezoid property models score them, and the chemist steers the search by reshaping the models and liking or banning proposals. - [Interactive evolution of images, after Karl Sims](https://sims-interactive-evolution.bonabeauapps.com/): A browser replication of Karl Sims's interactive evolution of images (1991, 1993): each picture is a Lisp expression evaluated at every pixel, and you breed them by picking one image to mutate or two to mate. - [Interactive evolution of reaction-diffusion systems](https://sims-reaction-diffusion.bonabeauapps.com/): Twelve Gray-Scott reaction-diffusion simulations run side by side, each with its own feed and kill rates, scale, flow, orientation and colors. Pick the ones you like and breed the next generation from them. - [Lattice swarms: stigmergic building and interactive evolution of architectures](https://swarm-building.bonabeauapps.com/): Lattice swarms after Theraulaz and Bonabeau (Science and J. Theor. Biol., 1995) and Bonabeau et al. (BioSystems, 2000): agents walking on a 3D lattice deposit bricks when the configuration around them matches a shared rule table, so coordinated tables grow wasp-nest architectures without any plan. Two demos are scriptable: the lattice swarm with the published, inferred, random or custom tables, and the interactive evolution of building algorithms, with the papers' fitness F. Demos: `lattice-swarm` (simulation), `evolution` (evolution). - [Longevity Priority Matrix](https://longevity.bonabeauapps.com/): An evidence-weighted ranking of 86 longevity interventions (lifestyle, diet, supplements, drugs, procedures and more). Each has fixed 0-to-5 ratings for healthspan and maximum-lifespan evidence, effectiveness and magnitude, plus safety and durability; adjustable weights combine them into healthspan, max-lifespan and overall scores and a priority tier, shown as tiers, a scatter plot and a sortable table. - [Margin-liquidation cascades, step by step](https://margin-liquidation-cascade.bonabeauapps.com/): Step-by-step explainer of E. Bonabeau, Finite-size effects, heavy tails and transient impact in absorbing margin-liquidation cascades (Physical Review E, 2026): leveraged positions are margin-called when the price falls past a leverage threshold, their forced sales move the price, and the breached dollar fraction obeys a fixed-point equation whose low state disappears at a fold. Interactive figures compute one balance sheet, the breached tail, the exposure tilt, the cascade fixed point for a chosen shock, the random collapse point of finite cohorts, and lognormal versus Pareto weights. Demos: `cascade` (calculator), `balance-sheet` (calculator), `breached-tail` (calculator), `exposure-tilt` (calculator), `cohorts` (simulation), `weights` (simulation). - [Marginally stable swarms are flexible and efficient](https://marginally-stable-swarms.bonabeauapps.com/): Interactive companion to Bonabeau (1996) and its 1997 follow-up: an ant colony foraging from two sources can both commit to a trail and switch to a richer source only if it sits just past a bifurcation. Five demos: a live stochastic colony, a sweep over colony size N, the width of the switching window against the quality gap, a double-well potential, and the group-versus-mass recruitment model. Demos: `live-colony` (simulation), `bifurcation-sweep` (simulation), `window-scaling` (simulation), `potential` (simulation), `recruitment-mix` (calculator). - [Nymbler - Your personal baby name assistant](https://nymbler.bonabeauapps.com/): A browser recreation of Nymbler (Icosystem, 2007): choose up to six names you like, and it suggests 15 names with a similar feel, scored by shared features such as letters, length, spelling, style, origin and popularity pattern, and drawn by tournament selection. Star the suggestions you like and ask again. - [Panda evolver](https://panda-evolver.bonabeauapps.com/): Breed ceramic panda busts by eye, from cute to scary: pick the pandas you like and breed them; each generation mixes their eyes, mouths and other traits with small mutations. - [Pharma R&D Productivity](https://pharmardproductivity.bonabeauapps.com/): Interactive companion to R&D Productivity and the Evolving Biopharmaceutical Ecosystem (Bonabeau, Schacht & Paul, 2026): an eight-stage drug R&D pipeline model giving out-of-pocket and capitalized cost per launch, launch probability and time for the 2026 reference, AI and China scenarios and the corrected Paul et al. (2010) comparator, with expected-launch cohort NPV and break-even gross profit, a seeded paired Monte Carlo, sensitivity and robustness analyses, and an optional theoretical crowding stress test. Demos: `pipeline` (calculator), `value` (calculator), `uncertainty` (simulation), `robustness` (calculator), `crowding` (calculator). - [Photo evolver](https://photo-evolver.bonabeauapps.com/): Breed a photo instead of editing it: nine versions, each made by a short chain of image filters, are shown; click the ones you like and evolve, and the picks stay while their offspring fill the other places. The photo never leaves the page. - [Stigmergy: how work leaves traces that organize more work](https://stigmergy.bonabeauapps.com/): An interactive explainer of stigmergy, the coordination of work through traces left in a shared environment, after Theraulaz and Bonabeau's 1999 history: termites building pillars, walls and chambers from cement pheromone, a Polistes wasp comb built by qualitative rules, ant-based network routing, and how the idea reaches 2026 AI agent systems. Three demos are scriptable: the termite building model, the routing network, and the comb. Demos: `termite-building` (simulation), `routing` (simulation), `comb` (simulation). - [System-level reorganization of gene co-expression](https://honeybees-system-level.bonabeauapps.com/): An interactive guide to Page and Bonabeau (PNAS 2026): in honeybee workers moving from nursing to foraging, the correlation network of 90 fat-body genes reorganizes rather than rescales. Between days 6 and 10 negative ties appear, the network splits into two antagonistic modules (a nurse program H and a forager program L), and individual bees move toward one program or the other. Demos: `network` (calculator), `bees` (calculator). - [Term sheet simulator](https://term-sheet-simulator.bonabeauapps.com/): Change a clause of a startup financing round (pre-seed, seed or Series A; SAFE, convertible note or priced equity) and see who gets paid what across the futures the company might face: ownership, probability-weighted proceeds, payouts by scenario, and the cost of non-standard terms. A genetic search looks for terms that meet both the founders' and the investor's objectives. Demos: `term-sheet` (calculator), `agreement-search` (simulation). - [The aggressor-defender game: sandbox and interactive evolution](https://aggressor-defender.bonabeauapps.com/): An agent-based model of the aggressor-defender game (Funes, Orme and Bonabeau 2004; Bonabeau, Funes and Orme 2003): each player picks an aggressor A and a defender B and either keeps B between A and itself or stays between A and B. A sandbox sets the mix of rules and the relationship network; an interactive evolution tab breeds networks from the playgrounds you select. Demos: `sandbox` (simulation), `evolution` (evolution). - [The AI financing web](https://aifinancingweb.bonabeauapps.com/): Quarterly discrete-agent model of the financing web linking frontier AI labs, hyperscalers, neoclouds, chip vendors, suppliers and power, private-credit vehicles, banks and sovereign investors (31 actors, data as of 2026-10-13). Set growth, capital-cycle, private-credit and default assumptions and the page reruns the whole horizon deterministically, reporting system debt, losses, defaults and lender balance sheets; it also ranks forced defaults, tests joint-default order, runs a seeded Monte Carlo around the chosen scenario, and a scenario-weighted Monte Carlo. Demos: `simulator` (calculator), `joint-default` (calculator), `monte-carlo` (calculator), `weighted-mc` (simulation). - [The invariance defect: an interactive companion](https://information-geometry-evolution.bonabeauapps.com/): An interactive companion to E. Bonabeau, 'The invariance defect of continuous-trait parametric replicator dynamics'. Selection changes the whole trait distribution, while quantitative genetics usually tracks only its mean and variance under a normal assumption. For four fitness landscapes and any normal starting distribution, the page splits Fisher's rate Var(f) into what a mean-and-variance model can express and the invariance defect δ², the rate of adaptation carried by changes of shape, and runs the full replicator flow against its Gaussian approximation, including the stalling state under disruptive selection. - [When ants work in pulses: synchronization and foraging efficiency](https://ant-synchronization.bonabeauapps.com/): Recruitment to a food source only pays once enough ants are active at the same time. Four views after Bonabeau, Theraulaz and Deneubourg (1998): the critical number of active foragers, a pulsing colony against a steady one with the same total effort, an agent model whose bursts organize themselves, and how troughs between bursts let a colony switch to a richer source. Demos: `minimum-crew` (calculator), `pulsing-vs-steady` (calculator), `self-organized-bursts` (simulation), `staying-flexible` (calculator). - [Why lynx started eating kites: an interactive model](https://predatorpreymodel.bonabeauapps.com/): An interactive model reproducing Sergio et al. (2026, Nature): Iberian lynx in Doñana began taking black kite nestlings only when rabbit disease and drought struck together. A single foraging rule, a diet switch on lynx intake, explains when and why not before; the page compares it with constant-coefficient Lotka-Volterra predation, replays 1993 to 2023, and projects kites and owls forward. Demos: `diet-switch` (calculator), `replay` (calculator), `lv-compare` (calculator), `projection` (calculator). ## Other pages - [Bonabeau Apps — Simple apps for complex systems](https://www.bonabeauapps.com/): Interactive apps and data explorations by Eric Bonabeau — complex systems scientist, entrepreneur, and educator. - [Mega-IPO Market Clearing Lab | SpaceX, OpenAI & Anthropic](https://spacexipo.bonabeauapps.com/): A research simulator of how index-inclusion buying, retail and insider trading, IPO flippers and margin liquidations clear through one inventory-based square-root price-impact curve after a mega-IPO (SpaceX, with OpenAI and Anthropic scenarios), with a Monte Carlo fan, a three-IPO index-flow calendar, the funding sales it implies in 15 incumbent stocks, and a Tesla–SpaceX merger index scenario. Results are conditional simulations under stated assumptions, not forecasts. - [The Jagged Frontier: a visual atlas](https://jagged-frontier.bonabeauapps.com/): Thirty pictures of what AI can and cannot do, collected from essays, talks, tweets and memes, redrawn in one visual language and arranged as an argument in five acts: the line, the blob, the star, the mirror, and the frontier of knowledge.