}
}
private void populatePool(int numOfIndividuals,
AbstractIndividualFactory indFactory) {
UniformDistribution portfolioSize =
new UniformDistribution(rng, problem.getMinSize(),
problem.getMaxSize() + 1);
individuals = new IIndividual[numOfIndividuals];
for (int i = 0; i < numOfIndividuals; i++) {
individuals[i] =
indFactory.createRandomIndividual(rng,
problem.getPerformanceData()[0].performances.length,
(int) portfolioSize.getRandomNumber());
}
}