dolphin278/genetic — pull request #2 by scottcheng (2013-02-13 23:06:09+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.