|
CalcAllFitness
|
|
|
In the CalcAllFitness routine, we determine the fitness of each chromo in the cell. Fitness is simply how close the value of a formula is to the desired value. First, we decode the chromosome into it's genes. We convert those bit pattern groupings into numbers which represent the values in our formula.
Second, we plug those values into the equation to get the value of the whole equation.
|