CMASearch Class Reference

#include <CMA.h>

Inheritance diagram for CMASearch:

EvolutionaryAlgorithm< double * > SearchAlgorithm< T > SearchAlgorithmBase

List of all members.

Public Member Functions

 CMASearch ()
 ~CMASearch ()
CMAgetCMA ()
const CMAgetCMA () const
const PopulationT< double > * parents () const
const PopulationT< double > * offspring () const
void init (ObjectiveFunctionVS< double > &fitness, CMA::RecombType recomb=CMA::superlinear, CMA::UpdateType cupdate=CMA::rankmu)
void init (ObjectiveFunctionVS< double > &fitness, const Array< double > &start, double stepsize, CMA::RecombType recomb=CMA::superlinear, CMA::UpdateType cupdate=CMA::rankmu)
void init (ObjectiveFunctionVS< double > &fitness, unsigned int mu, unsigned int lambda, const Array< double > &start, double stepsize, CMA::RecombType recomb=CMA::superlinear, CMA::UpdateType cupdate=CMA::rankmu)
void run ()
 main interface: perform one iteration of the search algorithm
void bestSolutions (std::vector< double * > &points)
void bestSolutionsFitness (Array< double > &fitness)
 Return a two-dimensional array of fitness values.

Protected Attributes

CMA m_cma
ObjectiveFunctionVS< double > * m_fitness
PopulationT< double > * m_parents
PopulationT< double > * m_offspring


Detailed Description

Examples:

paraboloidCMA.cpp.

Definition at line 131 of file CMA.h.


Constructor & Destructor Documentation

CMASearch::CMASearch (  ) 

Definition at line 287 of file CMA.cpp.

References SearchAlgorithmBase::m_name, m_offspring, and m_parents.

CMASearch::~CMASearch (  ) 

Definition at line 295 of file CMA.cpp.

References m_offspring, and m_parents.


Member Function Documentation

void CMASearch::bestSolutions ( std::vector< double * > &  points  ) 

Definition at line 405 of file CMA.cpp.

void CMASearch::bestSolutionsFitness ( Array< double > &  fitness  )  [virtual]

Return a two-dimensional array of fitness values.

The first dimension corresponds to the solution, while the second dimension corresponds to the objective.

Implements SearchAlgorithm< T >.

Definition at line 411 of file CMA.cpp.

const CMA& CMASearch::getCMA (  )  const [inline]

Definition at line 138 of file CMA.h.

References m_cma.

CMA& CMASearch::getCMA (  )  [inline]

Definition at line 137 of file CMA.h.

References m_cma.

void CMASearch::init ( ObjectiveFunctionVS< double > &  fitness,
unsigned int  mu,
unsigned int  lambda,
const Array< double > &  start,
double  stepsize,
CMA::RecombType  recomb = CMA::superlinear,
CMA::UpdateType  cupdate = CMA::rankmu 
)

void CMASearch::init ( ObjectiveFunctionVS< double > &  fitness,
const Array< double > &  start,
double  stepsize,
CMA::RecombType  recomb = CMA::superlinear,
CMA::UpdateType  cupdate = CMA::rankmu 
)

void CMASearch::init ( ObjectiveFunctionVS< double > &  fitness,
CMA::RecombType  recomb = CMA::superlinear,
CMA::UpdateType  cupdate = CMA::rankmu 
)

const PopulationT<double>* CMASearch::offspring (  )  const [inline]

Definition at line 140 of file CMA.h.

References m_offspring.

const PopulationT<double>* CMASearch::parents (  )  const [inline]

Definition at line 139 of file CMA.h.

References m_parents.

void CMASearch::run (  )  [virtual]


Member Data Documentation

CMA CMASearch::m_cma [protected]

Definition at line 150 of file CMA.h.

Referenced by getCMA(), init(), and run().

Definition at line 151 of file CMA.h.

Referenced by init(), and run().

PopulationT<double>* CMASearch::m_offspring [protected]

Definition at line 153 of file CMA.h.

Referenced by CMASearch(), init(), offspring(), run(), and ~CMASearch().

PopulationT<double>* CMASearch::m_parents [protected]

Definition at line 152 of file CMA.h.

Referenced by CMASearch(), init(), parents(), run(), and ~CMASearch().


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