Skip to main content

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​

Energy flow in PredPreyGrassDiscrete base environment · model energy unitsENERGY INPUT AND TRANSFERExternal inputGrassPreyPredatorRegeneration≤ 4 units / step100 patchesUp to 2 units eachGrazes grass−0.05 / stepConsumes prey−0.15 / stepinputgrazehuntFeeding transfers energy; reproduction splits it.No additional bite or movement cost.Metabolic dissipationEnergy removed from the usable pool — no heat or entropy variable is tracked.Solid: energy input and transfer · Dashed: removal from the model's energy ledger
Display 1: Energy enters through grass regeneration, flows through feeding, and leaves the usable pool through depletion. Arrows show accounting flows, not measured quantities.

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 GtG_t, HtH_t and PtP_t denote total energy stored in grass, prey and predators at step tt. Total usable energy is Et=Gt+Ht+PtE_t=G_t+H_t+P_t. Its conceptual accounting balance is

Et+1−Et=It−Dt,E_{t+1}-E_t=I_t-D_t,

where ItI_t is actual input from grass regeneration and DtD_t 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.

MechanismConfigured valueEffect on usable energy
Grass regeneration0.04 per patch per step; cap 2.0External input, limited by storage capacity.
Prey metabolism0.05 per stepRemoves energy.
Predator metabolism0.15 per stepRemoves energy.
Movement0No additional energy charge in this base implementation.
Grazing and predationFull stored energy transferredRedistribution; no conversion discount.
Reproduction3.0 prey; 5.0 predatorParent transfers this energy to offspring.
Display 2: Energy sources, sinks and transfers in the discrete base environment.

Limits to Population Growth​

There are 100 grass patches, so the maximum new energy supplied in a step is 100×0.04=4100\times0.04=4 units. Actual input is lower whenever patches are near their storage cap. The nominal metabolic demand for nhn_h prey and npn_p predators per step is

Dnominal=0.05nh+0.15np.D_{\mathrm{nominal}}=0.05n_h+0.15n_p.

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 production in a real ecosystemIllustrative example: 20% efficiency at each transfer0255075100Grass100 unitsPrey20 unitsPredator4 unitsProduction relative to the grass baseline (units)
Display 3: Illustrative production at successive trophic levels: 100 units of grass, 20 of prey and 4 of predator production. These are not measured PPG values.

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 ee, an assimilation parameter η\eta between zero and one would transfer ηe\eta e to the consumer and remove (1−η)e(1-\eta)e 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.