GlobalSearch< T > Class Template Reference

The super class for population-based search methods. More...

#include <GlobalSearch.h>

Inheritance diagram for GlobalSearch< T >:

GeneticAlgorithm< T >

List of all members.

Public Member Functions

 GlobalSearch ()
 Default constructor.
unsigned nGenerations ()
 Number of generation evolved so far in the search process.
double evaluate (vector< double > &x)
 Evaluate the objective function.
double bestEvaluation ()
 Best(highest) result so far.

Public Attributes

Population< T > pop
 Population to be evolved.
ObjectiveFunctionfObj
 Objective function to optimize.

Protected Attributes

unsigned nGen
 Number of generation evolved so far in the search process.


Detailed Description

template<typename T>
class GlobalSearch< T >

The super class for population-based search methods.

<File comment goes here!!>

Copyright (c) 2008 by <Quang Huy / NTU>

Parameters:
T Type T can be bool (binary problems), int (combinatorial problems) or real (continuous problems).
This class proposes the general interface for a population-based search algorithms,

Remarks:
Note that the nature of global search is to maximize due to the natural selection process (one with larger fitness value has better chance to survive). Therefore, if the objective function is to minimize, the evaluation should return the negative value of it.
See also:
GeneticAlgorithm | DifferentialEvolution | EvolutionaryStrategy

Member Function Documentation

template<typename T>
double GlobalSearch< T >::evaluate ( vector< double > &  x  )  [inline]

Evaluate the objective function.

Parameters:
x Input phenotype.
Returns:
Fitness value.
Wrapper operator for the objective function evaluation

Remarks:
Note that the nature of global search is to maximize due to the natural selection process (one with larger fitness value has better chance to survive). Therefore, if the objective function is to minimize, the evaluation should return the negative value of it.
See also:
ObjectiveFunction

template<typename T>
double GlobalSearch< T >::bestEvaluation (  )  [inline]

Best(highest) result so far.

Returns:
Best(highest) objective value obtained.
Exceptions:
<exception class> Description of criteria for throwing this exception.
Return the best evaluation obtained so far during the search process

Remarks:
If the objective function is to minimize, this will return the negative value of the fitness.
See also:
ObjectiveFunction


Member Data Documentation

template<typename T>
Population<T> GlobalSearch< T >::pop

Population to be evolved.

Remarks:
Write remarks for pop here.


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

Generated on Thu Aug 28 18:34:46 2008 for Dolphin by  doxygen 1.5.6