dolphin278/genetic — pull request #3 by scottcheng (2013-02-17 18:38:27+00:00)
Title: Preserve Score Sum When Inverting Scores

When looking for minimized fitness, score sum of all chromosomes should maintain the same when inverting the scores, so that the normalized fitness can work.

Particularly, if the sum becomes smaller after inverting scores, then on line 206 there is a chance that `level` might never reach `point`, if `point` happens to be greater than the new sum.

I am using another method of inverting the score which maintains the sum of scores at the same time.