RSSAmplifier

Blog

Teach Yourself Systems Examples

Latest simulation examples from Teach Yourself Systems

teachyourselfsystems.comRSS feed ↗30 posts

Latest posts

Fishery Simulation

A fishery simulation of stocks, flows, and feedback loops managing fish populations.

Antifragile System

The same adaptive loop, two fates: with one knob negative each failure makes the system stronger; flip its sign and failures spiral to certain breakdown.

First-Price vs. Vickrey Auctions

Repeated sealed-bid auctions comparing first-price and Vickrey rules with learning agents.

Bank Renege Simulation

At a teller running near capacity, patience decides everything: impatient customers give up before a line even forms - half walk out - while patient ones build a long queue yet nearly all get served.

Bathtub Fill and Drain

A bathtub simulation illustrating stock and flow of water volume.

Car Service Simulation - SimPy Tutorial

A car service simulation showing priority washing with features like interrupts.

Dynamic Difficulty Adjustment

Adaptive encounters that track win rate to keep players challenged.

Elementary Cellular Automata

One 8-bit rule number, three worlds: flip it to walk a single-line automaton from an ordered fractal through Turing-complete complexity to deterministic chaos.

Gacha Box

Same 50 pulls, same spend, one setting apart: a pity timer guarantees the 1%-odds ultra after a dry streak, while turning it off can leave you empty-handed.

Game of Life

Conway's Game of Life: a random soup self-organizes into still-lifes, blinkers, and gliders — global order from one local rule.

Goal-Seeking Decay

A goal-seeking decay simulation modeling exponential approach toward a target.

Hospital ER Patient Flow

Queuing theory demo of patient flow through an emergency department.

Inspection Game

A ranger who patrols just 40% of sites can still stop poaching - but only if the penalty is harsh enough. Soften it and the same patrols let crime pay.

Inventory Oscillation

Naive reordering that ignores in-transit stock makes inventory swing; counting the pipeline flattens it.

Logistic Growth

Grow a population too fast and it overshoots its carrying capacity before settling; grow it gently and it glides up to the same limit.

Logistic Map

A logistic map simulation that iterates x_{n+1}=r*x_n*(1-x_n) to illustrate chaos.

Predator-Prey (Lotka–Volterra, SciPy)

A predator-prey simulation using the Lotka-Volterra equations.

Predator-Prey (Lotka–Volterra, SimPy)

Discrete-time SimPy approximation of the predator–prey model.

Machines Simulation

A machines simulation depicting resource allocation and reliability.

Matchmaking Queue

Simulates skill-based matchmaking with adjustable buckets, skill delta and max wait.

Nested Hierarchy Workflow

A nested hierarchy simulation where tasks flow across company departments.

Queue Simulation

A single-server queue at the edge of overload: nudge utilization past 1 and the backlog diverges.

Ride-Share Surge Control

Dynamic pricing stabilises rider waits—until high gain and delay turn it into surge whiplash.

Rumor vs Counterwave

Competing rumor and fact-check messages racing across a social network.

Savings vs Credit-Card Debt

Same card, same income - one number decides everything: pay just under the interest and the debt runs away; pay just over it and the balance marches to zero.

SIR Model with Vaccination

An SIR epidemic at the threshold: vaccinating past the herd-immunity line pushes effective R0 below 1 and the outbreak fizzles.

Sleep Debt Simulation

A sleep debt simulation tracking caffeine, sleep patterns, and debt buildup.

Thermostat Simulation

A bang-bang thermostat reading a delayed sensor overshoots and rings; shorten the delay and it settles.

War of Attrition

Two-player waiting game exploring mixed strategies and the option value of waiting.

Water Heater PID Control

PID control keeps a domestic hot water tank near its setpoint while balancing heater power and losses.