Energy and Entropy in PredPreyGrass
An ecosystem can sustain organized living populations only while usable energy enters it. In PredPreyGrass, grass regeneration supplies energy, feeding transfers it between trophic levels, and metabolism removes it from the usable pool. These rules create the ecological scarcity on which survival, reproduction and ultimately evolutionary selection depend.
Energy Flow in the Simulation
The discrete base environment is an open energy system. It does not simulate sunlight, temperature or thermodynamic entropy directly. Instead, it tracks scalar energy for each grass patch and animal. The term entropy describes the physical analogy, not a measured state variable or a separate reservoir in the implementation.
The Energy Budget
Let , and denote total energy stored in grass, prey and predators at step . Total usable energy is . Its conceptual accounting balance is
where is actual input from grass regeneration and is net depletion, accounting for final-step clipping or removal at starvation. Feeding and reproduction redistribute tracked energy rather than creating it.
The following settings are from the discrete base configuration. Other PPG variants may use different energy rules.
| Mechanism | Configured value | Effect on usable energy |
|---|---|---|
| Grass regeneration | 0.04 per patch per step; cap 2.0 | External input, limited by storage capacity. |
| Prey metabolism | 0.05 per step | Removes energy. |
| Predator metabolism | 0.15 per step | Removes energy. |
| Movement | 0 | No additional energy charge in this base implementation. |
| Grazing and predation | Full stored energy transferred | Redistribution; no conversion discount. |
| Reproduction | 3.0 prey; 5.0 predator | Parent transfers this energy to offspring. |
Limits to Population Growth
There are 100 grass patches, so the maximum new energy supplied in a step is units. Actual input is lower whenever patches are near their storage cap. The nominal metabolic demand for prey and predators per step is
For example, 40 prey and 20 predators require 5 units per step, exceeding the maximum regeneration rate. Such a population could temporarily draw down stored energy but cannot sustain that demand indefinitely without a reduction in population or change in energy supply. This is a budget comparison, not a prediction of equilibrium population size.
Real Ecosystems: Trophic Efficiency
In nature, energy is conserved physically, but its capacity to perform useful biological work diminishes as it is dissipated as heat. At successive trophic levels, only a fraction of production becomes new biomass at the next level. Other energy supports metabolism or passes through uneaten material and waste. Nutrients can return through decomposition; usable energy does not cycle back in the same way.
Lindeman's trophic-dynamic framework expresses this transfer as a ratio of production across trophic levels. The familiar ten-percent rule is an approximation, not a universal efficiency constant. To illustrate the cumulative effect, assume 20% efficiency at each of two transfers, starting with 100 units of grass production.
Trophic efficiency is an ecosystem-level production ratio over time, not necessarily the fraction of an individual meal assimilated by an animal. PPG simplifies the latter to full transfer of stored model energy, while passive metabolism reduces available energy between feeding events.
Implications for Selection and Learning
In the base environment, reproduction requires 8 energy units for prey and 12 for predators. Offspring receive part of their parent's stored energy; the parent also receives a separate learning reward of 10. This reward is a training signal, not new ecological energy.
Efficient foraging allows an agent to accumulate energy faster than it loses it. For predators, improved hunting can raise energy income; for prey, grazing and avoiding predation can improve survival. When inherited strategies produce more surviving descendants, energy acquisition becomes a mechanism through which natural selection can favor those strategies. This is distinct from learning a policy that increases reward during an agent's lifetime, and illustrates behavior as a cost–benefit investment.
Cooperation must likewise be assessed in terms of energy, survival and reproduction, including how costs and benefits are shared and whether coexistence persists. A higher number of cooperative kills alone does not establish an evolutionary advantage.
A More Realistic Energy-Transfer Experiment
A useful extension would vary the fraction of consumed energy retained by the consumer while keeping grass regeneration, metabolism and movement rules fixed. For a feeding event of size , an assimilation parameter between zero and one would transfer to the consumer and remove from the tracked pool.
This is a proposed experiment, not an implemented feature of the base environment. The fraction should be motivated by assimilation biology and calibrated against trophic production rather than assumed equal to the ten-percent rule. Compare otherwise identical runs across transfer fractions and measure actual input, depletion, production, population persistence and reproduction. This would test how greater energetic constraints affect food-chain viability and opportunities for cooperative behavior.
References
- Lindeman, R. L. (1942). The trophic-dynamic aspect of ecology. Ecology, 23(4), 399–417. DOI.
- National Geographic Education. Energy Flow and the 10% Rule. Resource.
- PredPreyGrass. Discrete base environment: configuration and implementation.