candidate solution point, in function parameter space.
More...
#include <candidate.h>
candidate solution point, in function parameter space.
libcmaes::Candidate::Candidate |
( |
const double & |
fvalue, |
|
|
const dVec & |
x |
|
) |
| |
|
inline |
constructor.
- Parameters
-
fvalue | function value |
x | function parameter vector |
double libcmaes::Candidate::get_fvalue |
( |
| ) |
const |
|
inline |
get function value of this candidate.
- Returns
- function value
int libcmaes::Candidate::get_id |
( |
| ) |
const |
|
inline |
get candidate id
- Returns
- candidate id
int libcmaes::Candidate::get_rank |
( |
| ) |
const |
|
inline |
get candidate rank
- Returns
- candidate rank
std::vector<double> libcmaes::Candidate::get_x |
( |
| ) |
const |
|
inline |
get parameter vector copy for this candidate.
- Returns
- parameter vector copy
dVec libcmaes::Candidate::get_x_dvec |
( |
| ) |
const |
|
inline |
get parameter vector of this candidate in Eigen vector format.
- Returns
- parameter vector in Eigen vector format
dVec& libcmaes::Candidate::get_x_dvec_ref |
( |
| ) |
|
|
inline |
get reference parameter vector of this candidate in Eigen vector format.
- Returns
- reference to parameter vector in Eigen vector format
template<class TGenoPheno >
dVec libcmaes::Candidate::get_x_pheno_dvec |
( |
const CMAParameters< TGenoPheno > & |
p | ) |
const |
|
inline |
get pheno transform of parameter vector of this candidate in Eigen vector format.
- Returns
- pheno transform of parameter vector in Eigen vector format
const double* libcmaes::Candidate::get_x_ptr |
( |
| ) |
const |
|
inline |
get parameter vector pointer of this candidate as array. DO NOT USE from temporary candidate object.
- Returns
- parameter vector pointer
unsigned int libcmaes::Candidate::get_x_size |
( |
| ) |
const |
|
inline |
get x vector size
- Returns
- x vector size
void libcmaes::Candidate::set_fvalue |
( |
const double & |
fval | ) |
|
|
inline |
set candidate's function value.
- Parameters
-
void libcmaes::Candidate::set_id |
( |
const int & |
id | ) |
|
|
inline |
set candidate id
- Parameters
-
void libcmaes::Candidate::set_rank |
( |
const int & |
r | ) |
|
|
inline |
set candidate rank
- Parameters
-
void libcmaes::Candidate::set_x |
( |
const dVec & |
x | ) |
|
|
inline |
sets parameter vector of this candidate.
- Parameters
-
double libcmaes::Candidate::_fvalue |
|
protected |
int libcmaes::Candidate::_id = -1 |
|
protected |
candidate id, used for identification after ranking, when needed.
int libcmaes::Candidate::_r = -1 |
|
protected |
dVec libcmaes::Candidate::_x |
|
protected |
function parameter vector.
The documentation for this class was generated from the following file: