Skip to main content

Module spawn

Module spawn 

Source
Expand description

Spawn policies for evolutionary agent creation.

When an agent dies, the colony can spawn a replacement using a policy. The FitnessSpawnPolicy creates a mutated offspring of the fittest living agent, implementing biological selection.

Structs§

FitnessSpawnPolicy
Fitness-based spawn: create mutated offspring of the fittest agent.
NoSpawnPolicy
No-spawn policy: never create new agents (static population).
RandomSpawnPolicy
Random spawn policy: create agents with random genomes (control group).

Traits§

SpawnPolicy
Trait for spawn policies.