TerminationFactory function

Configure the termination condition(s) a genetic algorithm.