Menu

#23 try different efficiency calculation

open
nobody
None
5
2005-10-26
2005-10-26
kristi
No

calculate efficiency by:

average netGenerationEnergy / "systemEnergy"

where the "systemEnergy" is the highest energy a bug
could receive

average netGenerationEnergy is the average energy
gained (or lost) by the set of bugs

=======================
efficiency used to be calculated by

average "generationEnergy" / ( "systemEnergy" +
baseEnergy)

where generationEnergy was the total energy a bug had
minus the carryover energy. (At the beginning of the
generation the generationEnergy would be equal to the
baseEnergy).

"carryover energy" is energy kept by the winners of the
previous generation.

baseEnergy was the energy given to each bug at the
beginning of the generation

This formula caused the generation efficiency graph to
initially start out at some percentage. ie, for the static
light Epoch, the initial efficiency was equal to the
baseEnergy / (energy of the light source + baseEnergy ),
or around 30-50%. Within a few turns (~20 ish) the
efficiency would drop to ~10% since it would take the
bugs a while to move close enough to the light to get
energy. Then the efficiency would increase and plateau
as more and more bugs swarmed around the light.

This new formula would cause the efficiency to start out
at around 0. Probably, in static light Epoch's initial turns
the efficiency would be negative since the bugs would
have to exert energy to reach the light. Then the
efficiency should increase and plateau again.

Discussion


Log in to post a comment.