String function ( Set < String > arg0 , FitnessFunction arg1 , int arg2 ) { String loc0 = null ; validatePopulation ( arg0 ) ; clearInstrumentation ( ) ; setPopulationSize ( arg0 . size ( ) ) ; for ( int loc1 = 0 ; loc1 < arg2 ; loc1 ++ ) { loc0 = ga ( arg0 , arg1 ) ; } setIterations ( arg2 ) ; return loc0 ; }
returns the best individual in the specified population , according to the specified fitness-fn and number of iterations . concode_field_sep String ITERATIONS concode_elem_sep String POPULATION_SIZE concode_elem_sep int individualLength concode_elem_sep double mutationProbability concode_elem_sep Character[] finiteAlphabet concode_elem_sep Metrics metrics concode_elem_sep Random random concode_field_sep String randomSelection concode_elem_sep String mutate concode_elem_sep void setIterations concode_elem_sep int randomOffset concode_elem_sep String retrieveBestIndividual concode_elem_sep Metrics getMetrics concode_elem_sep int getPopulationSize concode_elem_sep String reproduce concode_elem_sep void setPopulationSize concode_elem_sep int getIterations concode_elem_sep void validatePopulation concode_elem_sep String ga concode_elem_sep void clearInstrumentation