template <class GENOME> class Ecosystem : public ControlPars

A class for holding a set of niches, making them interact and compete

Inheritance:


Public Methods

Ecosystem(GENOME& Problem, int NGenerations, int NNiches, int NichesPop, ControlPars cp=ControlPars())
Construction: based on a maximisation problem

Public

Niche's data access
How to make the Ecosystem evolve, after it is created.
GENOME Solution()
Access the best solution found so far.
double Objective()
The objective value at the best solution.
unsigned NumberOfCalls()
The total number of call made to the objective function.
Clock& TheClock()
Make the ecosystem's clock also accessible. }
Operations to control the evolution.
How to make the Ecosystem evolve, after it is created.
void Evolve()
All the evolution in a single function.
void Start()
Preparation for evolving.
void Step()
Perform a single evolution step.

Inherited from ControlPars:


Documentation

A class for holding a set of niches, making them interact and compete. All niches evolve for a given number of generations.
Ecosystem(GENOME& Problem, int NGenerations, int NNiches, int NichesPop, ControlPars cp=ControlPars())
Construction: based on a maximisation problem. The arguments are:
Parameters:
Problem - an object of the class GENOME, which is itself a template argument. This object holds a functor that implements the objective function, that tells the fitness of individuals.
NGenerations - the number of generations that we want the Ecosystem to evolve
NNiches - the number of niches
NichesPop - the population of each of the niches
cp - an optional parameter, where we can specify detailed information for controlling the evolution.

Operations to control the evolution.
How to make the Ecosystem evolve, after it is created.

void Evolve()
All the evolution in a single function.

void Start()
Preparation for evolving.

void Step()
Perform a single evolution step.

Niche's data access
How to make the Ecosystem evolve, after it is created.

GENOME Solution()
Access the best solution found so far.

double Objective()
The objective value at the best solution.

unsigned NumberOfCalls()
The total number of call made to the objective function.

Clock& TheClock()
Make the ecosystem's clock also accessible. }


This class has no child classes.



this page was generated by


Joao Pedro Pedroso
Oct 21, 1997