public void initPopulation ( ) { for ( int i = 0 ; i < populationSize ; i ++ ) { S newSolution = problem . createSolution ( ) ; problem . evaluate ( newSolution ) ; evaluations ++ ; population . add ( newSolution ) ; subregionIdx [ i ] [ i ] = 1 ; } }
Initialize the population