I am trying to implement a genetic algorithm to maximize a function of n variables. However, the problem is that fitness values can be negative, and I'm not sure how to handle negative values when making a selection. I read this article Linear fitness scaling in the genetic algorithm creates negative fitness values, but it’s not clear to me how negative fitness values were taken into account and how the scaling factors a and b were calculated.
In addition, from the article I know that choosing a roulette wheel only works for a positive fitness value. The same for choosing a tournament?
genetic algorithm
vjain27
source share