![]() |
Ultra 0.9.4
|
#include <search.h>
Public Member Functions | |
| search (ultra::problem &, E) | |
| Public Member Functions inherited from ultra::basic_search< alps_es, E > | |
| basic_search< alps_es, E > & | validation_strategy (Args &&...args) |
| basic_search< alps_es, E > & | validation_strategy (Args &&...args) |
| basic_search< alps_es, E > & | validation_strategy (const ultra::validation_strategy &vs) |
| basic_search (problem &, E) | |
| search_stats< individual_t, fitness_t > | run (unsigned=1, const model_measurements< fitness_t > &={}) |
| basic_search & | after_generation (after_generation_callback_t) |
| basic_search & | logger (search_log &) noexcept |
| basic_search & | refinement (refinement_callback_t) |
| basic_search & | on_training_new_best (on_training_new_best_callback_t) |
| basic_search & | messages (bool) noexcept |
| basic_search & | tag (const std::string &) |
| basic_search & | stop_source (std::stop_source) |
| virtual bool | is_valid () const |
Protected Member Functions | |
| void | tune_parameters () override |
| Protected Member Functions inherited from ultra::basic_search< alps_es, E > | |
| virtual void | after_evolution (unsigned, const std::vector< model_measurements< fitness_t > > &) |
| virtual model_measurements< fitness_t > | calculate_metrics (const individual_t &) const |
Additional Inherited Members | |
| Public Types inherited from ultra::basic_search< alps_es, E > | |
| using | individual_t |
| using | fitness_t |
| using | after_generation_callback_t |
| using | refinement_callback_t |
| using | on_training_new_best_callback_t |
| Protected Attributes inherited from ultra::basic_search< alps_es, E > | |
| evaluator_proxy< E > | eva_ |
| std::unique_ptr< ultra::validation_strategy > | vs_ |
| problem & | prob_ |
| after_generation_callback_t | after_generation_callback_ |
| refinement_callback_t | refinement_callback_ |
| on_training_new_best_callback_t | on_training_new_best_callback_ |
Search driver for GAs.
This class implements ultra::search for GA optimization tasks.
| search::search | ( | ultra::problem & | prob, |
| E | eva ) |
Search class specialization for GA.
| [in] | prob | the problem we're working on. The lifetime of prob must exceed lifetime of this class |
| [in] | eva | evaluator used during evolution. Must be copyable and may be used to build a proxy evaluator. |
|
overrideprotectedvirtual |
Tries to tune search parameters for the current function.
Reimplemented from ultra::basic_search< alps_es, E >.