The boids rules inside a small ecology, from the Python ABM lab. Each bird spends energy to fly, refuels at food patches, leaves a fading pheromone trail and, with energy to spare, splits in two; the offspring inherit its steering weights with small mutations. Optuna tried parameter sets and kept the one whose flock stayed most aligned and stable while surviving and keeping its energy up. This is that setting, run once offline and played back; the browser Flocking sheet runs the classic three rules live.


Boids that eat, tire, leave pheromone trails and reproduce with mutated steering — a tuned Mesa model from the Python lab. A recorded run.