|
OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
#include <SampleIndividual.h>
Public Types | |
| typedef std::vector< double > | genes_t |
| representation of genes More... | |
| typedef std::vector< std::string > | names_t |
| gene names More... | |
| typedef std::vector< double > | objectives_t |
| objectives array More... | |
Public Member Functions | |
| SampleIndividual () | |
| SampleIndividual (names_t names) | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
| serialization of structure More... | |
| int | getIndex (std::string name) |
| std::string | getName (size_t i) |
| void | print (std::ostream &out) const |
Public Attributes | |
| genes_t | genes |
| genes of an individual More... | |
| objectives_t | objectives |
| values of objectives of an individual More... | |
| unsigned int | id = 0 |
| id More... | |
Private Attributes | |
| names_t | names_m |
| gene names More... | |
Structure for an individual in the population holding genes values.
Definition at line 23 of file SampleIndividual.h.
| typedef std::vector<double> SampleIndividual::genes_t |
representation of genes
Definition at line 28 of file SampleIndividual.h.
| typedef std::vector<std::string> SampleIndividual::names_t |
gene names
Definition at line 30 of file SampleIndividual.h.
| typedef std::vector<double> SampleIndividual::objectives_t |
objectives array
Definition at line 32 of file SampleIndividual.h.
|
inline |
Definition at line 34 of file SampleIndividual.h.
|
inline |
Definition at line 37 of file SampleIndividual.h.
References genes.
|
inline |
Definition at line 58 of file SampleIndividual.h.
References Expressions::find(), and names_m.
Referenced by Sampler::dumpIndividualsToJSON().

|
inline |
Definition at line 69 of file SampleIndividual.h.
References names_m.
|
inline |
Definition at line 73 of file SampleIndividual.h.
References endl(), genes, and names_m.
Referenced by operator<<().

|
inline |
serialization of structure
Definition at line 45 of file SampleIndividual.h.
References genes, id, and objectives.
| genes_t SampleIndividual::genes |
genes of an individual
Definition at line 52 of file SampleIndividual.h.
Referenced by Sampler::dumpIndividualsToJSON(), print(), SampleIndividual(), and serialize().
| unsigned int SampleIndividual::id = 0 |
id
Definition at line 56 of file SampleIndividual.h.
Referenced by Sampler::dumpIndividualsToJSON(), and serialize().
|
private |
gene names
Definition at line 81 of file SampleIndividual.h.
Referenced by getIndex(), getName(), and print().
| objectives_t SampleIndividual::objectives |
values of objectives of an individual
Definition at line 54 of file SampleIndividual.h.
Referenced by Sampler::dumpIndividualsToJSON(), and serialize().
1.8.5