AcceptFactory function

Configure the acceptance function of a genetic algorithm.