![]() |
Ultra 0.9.4
|
#include <evolution_status.h>
Public Types | |
| using | global_update_f = std::function<void (scored_individual<I, F>)> |
Public Member Functions | |
| evolution_status (const unsigned *, const global_update_f &={}) | |
| scored_individual< I, F > | best () const |
| unsigned | generation () const |
| bool | update_if_better (const scored_individual< I, F > &) |
| bool | load (std::istream &, const problem &) |
| bool | save (std::ostream &) const |
A collection of information about the ongoing search.
|
nodiscard |
|
nodiscard |
Loads the object from a stream.
| [in] | in | input stream |
| [in] | p | active problem |
|
nodiscard |
Saves the object into a stream.
| [out] | out | output stream |
| bool evolution_status::update_if_better | ( | const scored_individual< I, F > & | si | ) |
Update, when appropriate, the best known individual.
| [in] | si | a scored individual |