public static < S > void fillPopulationWithNewSolutions ( List < S > solutionList , Problem < S > problem , int maxListSize ) { while ( solutionList . size ( ) < maxListSize ) { solutionList . add ( problem . createSolution ( ) ) ; } }
Fills a population with new solutions until its size is maxListSize