25 #include "eo_matrix.h"
26 #include "cmaparameters.h"
40 _fvalue(
std::numeric_limits<double>::quiet_NaN()) {}
70 inline void set_x(
const dVec &x) {
_x = x; }
95 inline std::vector<double>
get_x()
const
97 std::vector<double> x;
98 x.assign(
_x.data(),
_x.data()+
_x.size());
112 template<
class TGenoPheno>
dVec get_x_dvec() const
get parameter vector of this candidate in Eigen vector format.
Definition: candidate.h:76
unsigned int get_x_size() const
get x vector size
Definition: candidate.h:106
int _id
Definition: candidate.h:146
dVec _x
Definition: candidate.h:145
int get_rank() const
get candidate rank
Definition: candidate.h:141
int _r
Definition: candidate.h:147
dVec get_x_pheno_dvec(const CMAParameters< TGenoPheno > &p) const
get pheno transform of parameter vector of this candidate in Eigen vector format. ...
Definition: candidate.h:113
Candidate(const double &fvalue, const dVec &x)
constructor.
Definition: candidate.h:47
Definition: candidate.h:150
void set_x(const dVec &x)
sets parameter vector of this candidate.
Definition: candidate.h:70
linear scaling of the parameter space to achieve similar sensitivity across all components.
Definition: acovarianceupdate.cc:25
Parameters for various flavors of the CMA-ES algorithm.
Definition: cmaparameters.h:35
void set_rank(const int &r)
set candidate rank
Definition: candidate.h:135
double get_fvalue() const
get function value of this candidate.
Definition: candidate.h:64
std::vector< double > get_x() const
get parameter vector copy for this candidate.
Definition: candidate.h:95
double _fvalue
Definition: candidate.h:144
candidate solution point, in function parameter space.
Definition: candidate.h:33
const double * get_x_ptr() const
get parameter vector pointer of this candidate as array. DO NOT USE from temporary candidate object...
Definition: candidate.h:89
int get_id() const
get candidate id
Definition: candidate.h:129
TGenoPheno get_gp() const
returns the current genotype/phenotype transform object.
Definition: parameters.h:395
void set_fvalue(const double &fval)
set candidate's function value.
Definition: candidate.h:58
dVec & get_x_dvec_ref()
get reference parameter vector of this candidate in Eigen vector format.
Definition: candidate.h:82
Candidate()
empty constructor.
Definition: candidate.h:39
void set_id(const int &id)
set candidate id
Definition: candidate.h:123