realea::Mutation Class Reference
[Real Evolutionary Algorithms Common (Core classes)]

Collaboration diagram for realea::Mutation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Mutation (IMutation *mut, double ratio=0.125)
void setRandom (Random *random)
bool apply (tChromosomeReal &sol)

Detailed Description

(for AGs).

Usage:

m_mutation->apply(sol);

Definition at line 37 of file mutation.h.


Constructor & Destructor Documentation

Mutation::Mutation ( IMutation mut,
double  ratio = 0.125 
)

Constructor.

Parameters:
mut IMutation to be applied if it is decided
ratio Ratio of individuals to be applied

Definition at line 30 of file mutation.cc.


Member Function Documentation

bool Mutation::apply ( tChromosomeReal &  sol  ) 

This method check if must be applied the chromosome, in that case it is updated.

Returns:
true if the solution has been changed.

Definition at line 42 of file mutation.cc.

Here is the call graph for this function:

void Mutation::setRandom ( Random random  ) 

Set the random variable

It must be speficied if Mutation is going to use it.

Parameters:
random the random generation numbers.

Definition at line 67 of file mutation.cc.

Here is the call graph for this function:


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

Generated on Sun May 9 12:26:14 2010 for Realea by  doxygen 1.6.1