CMA Class Reference
Implements the most recent version of the non-elitist CMA-ES.
More...
#include <CMA.h>
List of all members.
|
Public Types |
| enum | RecombType { equal,
linear,
superlinear
} |
| enum | UpdateType { rankone,
rankmu
} |
Public Member Functions |
| | CMA () |
| virtual | ~CMA () |
| void | init (unsigned dimension, std::vector< double > var, double _sigma, Population &p, RecombType recomb=superlinear, UpdateType cupdate=rankmu) |
| void | init (unsigned dimension, double _sigma, Population &p, RecombType recomb=superlinear, UpdateType cupdate=rankmu) |
| void | cog (ChromosomeT< double > &a, Population &p, unsigned c=0) const |
| | calculate weighted mean for intermediate recombination
|
| void | create (Individual &o) |
| | mutation after global intermediate recombination
|
| void | updateStrategyParameters (Population &p, double lowerBound=.0) |
| | do the update of the covariance matrix and the global step size
|
| double | getSigma () const |
| | get global setp size
|
| void | setSigma (double x) |
| | set global setp size
|
| void | setChi_n (double x) |
| | set different approximation for expectation of distribution
|
| double | getCondition () const |
| | get condition number of covariance matrix
|
| const Array< double > & | getC () const |
| | get covariance matrix
|
| const Array< double > & | getLambda () const |
| | get eigenvalues of covariance matrix
|
Static Public Member Functions |
| static unsigned | suggestLambda (unsigned dimension) |
| static unsigned | suggestMu (unsigned lambda, RecombType recomb=superlinear) |
Protected Attributes |
| unsigned | n |
| double | sigma |
| double | chi_n |
| double | cc |
| double | cs |
| double | csu |
| double | ccu |
| double | ccov |
| double | d |
| double | mueff |
| double | mucov |
| ChromosomeT< double > | x |
| ChromosomeT< double > | xPrime |
| ChromosomeT< double > | meanz |
| Array< double > | z |
| Array< double > | pc |
| Array< double > | ps |
| Array< double > | C |
| Array< double > | Z |
| Array< double > | lambda |
| Array< double > | B |
| Array< double > | w |
| Array< double > | theVector |
Detailed Description
Implements the most recent version of the non-elitist CMA-ES.
Definition at line 59 of file CMA.h.
Member Enumeration Documentation
- Enumerator:
-
Definition at line 68 of file CMA.h.
- Enumerator:
-
Definition at line 69 of file CMA.h.
Constructor & Destructor Documentation
Definition at line 62 of file CMA.h.
| virtual CMA::~CMA |
( |
|
) |
[inline, virtual] |
Definition at line 65 of file CMA.h.
Member Function Documentation
| const Array< double > & CMA::getC |
( |
|
) |
const |
get covariance matrix
Definition at line 272 of file CMA.cpp.
References C.
| double CMA::getCondition |
( |
|
) |
const |
get condition number of covariance matrix
Definition at line 265 of file CMA.cpp.
References lambda, and n.
| const Array< double > & CMA::getLambda |
( |
|
) |
const |
get eigenvalues of covariance matrix
Definition at line 279 of file CMA.cpp.
References lambda.
| double CMA::getSigma |
( |
|
) |
const |
get global setp size
Definition at line 244 of file CMA.cpp.
References sigma.
| void CMA::init |
( |
unsigned |
dimension, |
|
|
std::vector< double > |
var, |
|
|
double |
_sigma, |
|
|
Population & |
p, |
|
|
RecombType |
recomb = superlinear, |
|
|
UpdateType |
cupdate = rankmu | |
|
) |
| | |
Definition at line 70 of file CMA.cpp.
References B, C, cc, ccov, ccu, chi_n, cog(), cs, csu, d, equal, lambda, linear, meanz, mucov, mueff, n, pc, ps, rankone, ChromosomeT_base< T >::resize(), sigma, Population::size(), superlinear, theVector, w, x, xPrime, Z, and z.
Referenced by CMASearch::init(), and init().
| void CMA::setChi_n |
( |
double |
x |
) |
|
set different approximation for expectation of
distribution
Definition at line 258 of file CMA.cpp.
References chi_n.
| void CMA::setSigma |
( |
double |
x |
) |
|
set global setp size
Definition at line 251 of file CMA.cpp.
References sigma.
| unsigned CMA::suggestLambda |
( |
unsigned |
dimension |
) |
[static] |
| unsigned CMA::suggestMu |
( |
unsigned |
lambda, |
|
|
RecombType |
recomb = superlinear | |
|
) |
| | [static] |
| void CMA::updateStrategyParameters |
( |
Population & |
p, |
|
|
double |
lowerBound = .0 | |
|
) |
| | |
do the update of the covariance matrix and the global step size
Definition at line 194 of file CMA.cpp.
References B, C, cc, ccov, ccu, chi_n, cog(), cs, csu, d, lambda, meanz, mucov, mueff, n, pc, ps, sigma, Population::size(), theVector, w, x, xPrime, and Z.
Referenced by CMASearch::run().
Member Data Documentation
Array<double> CMA::B [protected] |
Array<double> CMA::C [protected] |
Array<double> CMA::w [protected] |
Array<double> CMA::Z [protected] |
Array<double> CMA::z [protected] |
The documentation for this class was generated from the following files: