|
void | SetFitness (float _fitness) |
|
float | GetFitness () const |
|
std::unique_ptr< EvoScript > | SystemClone () const |
|
virtual std::unique_ptr< EvoScript > | UserClone () const =0 |
|
void | Randomize (std::mt19937_64 &randomGenerator) |
|
std::vector< std::unique_ptr< EvoScript > > | GetRandomRealizations (std::mt19937_64 &randomGenerator, size_t count) const |
|
std::vector< std::reference_wrapper< IEvoParam > > & | GetEvoParams () |
|
size_t | EvoParamsCount () const |
|
const IEvoParam & | GetEvoParamAt (size_t index) const |
|
void | ExchangeParams (EvoScript &other, size_t inclusiveFrom, size_t exclusiveTo) |
|
float | CalculateSimilarity (const EvoScript &other) const |
|
void | CopyEvoParamValuesFrom (const EvoScript &other) |
|
virtual std::string | ToString () const |
|
|
void | RegisterParam (IEvoParam ¶meter) |
|
void | RegisterParamsFromOther (const EvoScript &other) |
|
|
std::vector< std::reference_wrapper< IEvoParam > > | evoParams {} |
|
◆ Randomize()
void grail::evolution::EvoScript::Randomize |
( |
std::mt19937_64 & |
randomGenerator | ) |
|
Sets all parameters (EvoParams) of the script to random possible values.
◆ SystemClone()
std::unique_ptr< EvoScript > grail::evolution::EvoScript::SystemClone |
( |
| ) |
const |
This method calls userClone() and then synchronizes values of EvoParams from the original object.
◆ UserClone()
virtual std::unique_ptr<EvoScript> grail::evolution::EvoScript::UserClone |
( |
| ) |
const |
|
pure virtual |
Create your final object that represents the complete player that is being optimized. You do not need to set concrete values of EvoParams, because they will be synchronized automatically.
The documentation for this class was generated from the following files: