ga Package ga implements the genetic algorithm. It can handle negative fitness properly. Mutation probability is adaptive and does not need to be set.