public class Population
extends java.lang.Object
Class Population, which represents a population of individuals
Constructor and Description |
---|
Population(SetupParameters global)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Individual |
EvolvePopulation(SetupParameters global,
Data data)
Method that evolves the population until the maximum number of generations is reached.
|
public Population(SetupParameters global)
Constructor
global
- public Individual EvolvePopulation(SetupParameters global, Data data)
Method that evolves the population until the maximum number of generations is reached. It initializes the first population, and in each iteration, saves the best individual by replicating it, makes the crossover, makes the mutation, copies the new population into the old one, and evaluates fitness.
global
- Global Definition parametersdata
- Input data