realea::MA2LSI Class Reference

memetic algorithm following the model proposed in the Daniel Molina's thesis More...

#include <ma2lsi.h>

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

List of all members.

Public Member Functions

 MA2LSI (IEAlgorithm *alg, ILocalSearch *ls)
void setEffortRatio (double ratio)
void setRestart (RestartStrategy *restart, int maxfailed=-1)
unsigned realApply (tChromosomeReal &sol, tFitness &fitness)
void setDisruptionSize (double size)

Protected Member Functions

bool hasDiversity (PopulationReal *pop)
void setDif (bool debug, string ident, unsigned id, tFitness oldfit, tFitness newfit)
void disturb (tChromosomeReal &sol)

Detailed Description

memetic algorithm following the model proposed in the Daniel Molina's thesis

Definition at line 35 of file ma2lsi.h.


Constructor & Destructor Documentation

MA2LSI::MA2LSI ( IEAlgorithm *  alg,
ILocalSearch ls 
)

Constructor

Definition at line 37 of file ma2lsi.cc.


Member Function Documentation

void MA2LSI::disturb ( tChromosomeReal &  sol  )  [protected]

Disturb the solution (similar to mutation it uses the disruption_size

Definition at line 256 of file ma2lsi.cc.

Here is the call graph for this function:

bool MA2LSI::hasDiversity ( PopulationReal pop  )  [protected]

Check if there is enough diversity

Definition at line 227 of file ma2lsi.cc.

Here is the call graph for this function:

unsigned MA2LSI::realApply ( tChromosomeReal &  sol,
tFitness &  fitness 
)

Alter the EA and after the LS, then the EA again, the LS, ...

Definition at line 271 of file ma2lsi.cc.

Here is the call graph for this function:

void MA2LSI::setDif ( bool  debug,
string  ident,
unsigned  id,
tFitness  oldfit,
tFitness  newfit 
) [protected]

Set the differences

Definition at line 214 of file ma2lsi.cc.

void MA2LSI::setDisruptionSize ( double  size  ) 

Set a distorsion size when the solution is a local optimum

Parameters:
size size of maximum disruption

Definition at line 46 of file ma2lsi.cc.

void MA2LSI::setEffortRatio ( double  ratio  ) 
Parameters:
ratio. Set the global ratio invested into the Local Search
ratio global ls/total ratio (change the intensity, because only one LS improvement is made)

Definition at line 30 of file ma2lsi.cc.

void MA2LSI::setRestart ( RestartStrategy restart,
int  maxfailed = -1 
)

Set the restart strategy. If it is not called never it will make a restart.

Definition at line 125 of file ma2lsi.cc.


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