Examples tagged with balancing-loopllms.txt

Select an example to explore it in the playground.

Beginner - Introductory Models

Fishery Simulation

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

Level: Beginner

populationresource-managementsustainabilitymanagementecosystemstocks-flowsreinforcing-loopbalancing-looprenewable-resourcequota-policy

  • Stocks: population
  • Flows: births, quota
  • Feedback Loops: reproduction (reinforcing), quota (balancing)
  • Probes: population, quota, gap_to_capacity, extracted_total

Goal-Seeking Decay

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

Level: Beginner

decaygoalbalancing-loopexponentialcontrolfirst-order-dynamicstime-delay

  • Stocks: level
  • Flows: approach_rate
  • Feedback Loops: goal-seeking (balancing)
  • Probes: level, approach_rate

Thermostat Simulation

A thermostat simulation showing balancing feedback and time delays.

Level: Beginner

controltime-delaybalancing-loop

  • Stocks: indoor_temp
  • Flows: heat_gain, heat_loss
  • Feedback Loops: controller chasing set-point (balancing), high gain overshoot (reinforcing)
  • Probes: indoor_temp, heater_on
Intermediate - Classic Dynamics

Dynamic Difficulty Adjustment

Adaptive encounters that track win rate to keep players challenged.

Level: Intermediate

gameplayreinforcing-loopbalancing-loopadaptivegame

  • Stocks: skill, difficulty, retention
  • Flows: practice gains, difficulty adaptation
  • Feedback Loops: skill improvement (reinforcing), challenge tuning (balancing)
  • Probes: skill, difficulty, win_rate, frustration, retention

Ride-Share Surge Control

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

Level: Intermediate

queuepricingelasticitybalancing-loopdelayoscillation

  • Stocks: Riders Waiting, Idle Drivers, Drivers on Trip
  • Flows: Passenger Arrivals, Driver Logins, Matches, Trip Completions, Driver Logouts
  • Feedback Loops: Wait-driven surge (balancing), High-gain with delay (reinforcing oscillation)
  • Probes: price_multiplier, wait_estimate, riders_waiting, idle_drivers, arrival_rate, driver_logins, matches_per_min

SIR Model with Vaccination

An SIR vaccination simulation modeling epidemics with optional vaccination.

Level: Intermediate

populationreinforcing-loopbalancing-loopcontrol

  • Stocks: susceptible, infected, recovered
  • Flows: infections, recoveries, vaccinations
  • Feedback Loops: disease spread (reinforcing), herd immunity (balancing)
  • Probes: susceptible, infected, recovered

Sleep Debt Simulation

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

Level: Intermediate

debtreinforcing-loopbalancing-loop

  • Stocks: sleep_debt_hours
  • Feedback Loops: coffee reduces sleep (reinforcing), circadian pressure triggers sleep (balancing)
  • Probes: sleep_debt, subjective_energy

Water Heater PID Control

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

Level: Intermediate

pid-controlthermostatenergybalancing-loophouseholdcontrol-systemstemperature

  • Stocks: water_temperature
  • Flows: heater_input, heat_loss
  • Feedback Loops: PID control (balancing)
  • Probes: temperature, heater_output, error, setpoint
Advanced - Complex Simulations