MS-RCPSP
|
Representation of population, i.e. set of specimen (schedules). More...
#include <Population.h>
Public Member Functions | |
Population (int size, T **t) | |
int | size () const |
T * | best () |
void | showStat (FILE *stream) |
Public Attributes | |
T ** | genotype |
Representation of population, i.e. set of specimen (schedules).
Definition at line 12 of file Population.h.
|
inline |
Creates the population from the list of scecimen.
size | Size of population. |
t | List of specimen. |
Definition at line 19 of file Population.h.
T* EvolutionaryAlgorithm::Population< T >::best | ( | ) |
Returns specimen with the smallest fitness function in the population.
void EvolutionaryAlgorithm::Population< T >::showStat | ( | FILE * | stream | ) |
Shows statistical information of the population: best, average and worst specimen.
stream | Destination file stream. |
|
inline |
Returns size of the population.
Definition at line 24 of file Population.h.
T** EvolutionaryAlgorithm::Population< T >::genotype |
List of specimen.
Definition at line 30 of file Population.h.