Skip to content

Setting up fixed length organisms

Joshua Nahum edited this page Mar 26, 2014 · 2 revisions

In almost all of our experiments, organisms that are all the same length are easier to analyze. We are often willing to be a little less natural to be much more understandable! Here are the avida.cfg settings you will need to change from the default:

DIVIDE_INS_PROB and DIVIDE_DEL_PROB Insertion and deletion mutations should be turned off; change these settings to 0.0.
OFFSPRING_SIZE_RANGE Offspring should be exactly the same size as their parents; change this setting to 1.0

Although technically not necessary to keep organisms at a fixed length, there is one more option you probably want to change. One of the main reasons to use fixed length organism is to avoid having to calculate alignments -- you can just line the genomes up. Without the STERILIZE_UNSTABLE option, organisms may have bizarre implicit mutations which break the assumptions of this easy alignment.

STERILIZE_UNSTABLE Sometimes organisms have messed-up reproduction cycles that actually causes them to grow or shrink by copying an instruction multiple times or skipping over it entirely. These are not insertion and deletion caused by the process of division, but inherent in the organism's copy loop, so they are not turned off when you turn off DIVIDE_INS_PROB and DIVIDE_DEL_PROB. Avida can, however, check for organisms that are not able to make perfect copies of themselves (i.e. before mutations are imposed) and sterilize them so they do not produce offspring, and this is the setting that turns that checking on. Change it to 1, i.e. "yes".
Clone this wiki locally