void EvolutionaryAlgorithmTest::test_get_fitness_assignment_method(void) { message += "test_get_fitness_assignment_method\n"; EvolutionaryAlgorithm ea; ea.set_fitness_assignment_method(EvolutionaryAlgorithm::LinearRanking); assert_true(ea.get_fitness_assignment_method() == EvolutionaryAlgorithm::LinearRanking, LOG); }
void EvolutionaryAlgorithmTest::test_get_selective_pressure(void) { message += "test_get_selective_pressure\n"; EvolutionaryAlgorithm ea; ea.set_fitness_assignment_method(EvolutionaryAlgorithm::LinearRanking); ea.set_selective_pressure(1.0); assert_true(ea.get_selective_pressure() == 1.0, LOG); }