MS-RCPSP
Public Member Functions | Public Attributes | List of all members
EvolutionaryAlgorithm::Population< T > Class Template Reference

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
 

Detailed Description

template<class T>
class EvolutionaryAlgorithm::Population< T >

Representation of population, i.e. set of specimen (schedules).

Definition at line 12 of file Population.h.

Constructor & Destructor Documentation

template<class T>
EvolutionaryAlgorithm::Population< T >::Population ( int  size,
T **  t 
)
inline

Creates the population from the list of scecimen.

Parameters
sizeSize of population.
tList of specimen.

Definition at line 19 of file Population.h.

Member Function Documentation

template<class T>
T* EvolutionaryAlgorithm::Population< T >::best ( )

Returns specimen with the smallest fitness function in the population.

template<class T>
void EvolutionaryAlgorithm::Population< T >::showStat ( FILE *  stream)

Shows statistical information of the population: best, average and worst specimen.

Parameters
streamDestination file stream.
template<class T>
int EvolutionaryAlgorithm::Population< T >::size ( ) const
inline

Returns size of the population.

Definition at line 24 of file Population.h.

Member Data Documentation

template<class T>
T** EvolutionaryAlgorithm::Population< T >::genotype

List of specimen.

Definition at line 30 of file Population.h.


The documentation for this class was generated from the following file: