realea::ILocalSearch Class Reference

This interface allow to define how to obtain the local search method. More...

#include <ilocalsearch.h>

Inherited by realea::IParallelLocalSearch.

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

List of all members.

Public Member Functions

virtual ILSParametersgetInitOptions (tChromosomeReal &sol)=0
virtual unsigned apply (ILSParameters *params, tChromosomeReal &sol, tFitness &fitness, unsigned nstep)=0
void setPopulation (PopulationReal *pop)
void setRunning (RunningPtr run)
void setProblem (Problem *problem)
void setRandom (Random *random)

Protected Attributes

Randomm_random
Problemm_problem
RunningPtr m_running

Detailed Description

This interface allow to define how to obtain the local search method.

To define new Local Search methods it is only required to implement this interface and define apply and getInitOptions methods.

Definition at line 52 of file ilocalsearch.h.


Member Function Documentation

virtual unsigned realea::ILocalSearch::apply ( ILSParameters params,
tChromosomeReal &  sol,
tFitness &  fitness,
unsigned  nstep 
) [pure virtual]

Apply the LS method improvement

Parameters:
params the initial parameters of the LS, initialised by getInitOptions
sol chromosome to be improved, it is changed
fitness fitness of chromosome 'sol', it is updated by the new sol values
nstep evaluation number into the LS process
Returns:
evaluations number
See also:
getInitOptions
virtual ILSParameters* realea::ILocalSearch::getInitOptions ( tChromosomeReal &  sol  )  [pure virtual]

Obtain the initial parameter to local searchObtain the initial parameter to local search.

Parameters:
sol chromosome to be improved
See also:
applyNewSol
void realea::ILocalSearch::setPopulation ( PopulationReal pop  )  [inline]

Allow to specify the population whose individuals will be improved

Parameters:
pop population

Definition at line 81 of file ilocalsearch.h.

void realea::ILocalSearch::setProblem ( Problem problem  )  [inline]

Set the problem

Parameters:
problem problem to be evaluated

Definition at line 99 of file ilocalsearch.h.

void realea::ILocalSearch::setRandom ( Random random  )  [inline]

Set the Random number generator

Parameters:
random 

Definition at line 108 of file ilocalsearch.h.

void realea::ILocalSearch::setRunning ( RunningPtr  run  )  [inline]

Set the running criterion

Parameters:
run stop criterion

Definition at line 90 of file ilocalsearch.h.


Member Data Documentation

The current evaluation function The current problem

Definition at line 122 of file ilocalsearch.h.

The current randomgeneration numbers

Definition at line 120 of file ilocalsearch.h.

The current population The stopping criterion

Definition at line 124 of file ilocalsearch.h.


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

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