#include <Population.h>
Collaboration diagram for genetiK::Population:

Public Member Functions | |
| Population (unsigned int size) | |
| creates a new Population able to hold size Individuals | |
| virtual | ~Population (void) |
| destroys this population and the Idividual objects it contains | |
| unsigned int | getSize () const |
| retrieves the size of the population | |
| Individual ** | getIndividuals () |
| retrieves the Individual collection | |
| Individual * | getBest () |
| retrieves the Individual having highest fitness in the Population | |
| void | sort (bool ascending=true) |
| sort individuals by fitness | |
The Population class represents a single generation of Individuals in a given stage of the execution of an EvolutionaryAlgorithm
|
|
destroys this population and the Idividual objects it contains
|
|
|
retrieves the Individual having highest fitness in the Population
|
|
|
retrieves the Individual collection
|
|
|
retrieves the size of the population
|
|
|
sort individuals by fitness Sorts the Individuals in this Population by fitness, in ascending or descending order
|
1.4.6