The best ever solution recorder can be used as a simple solution recorder that just records the best copyable solution found during its lifetime. More...
#include <abstract-search.hh>
Public Member Functions | |
bool | accept (const feasible_solution &sol) |
Accept is called at the end of each iteration for an opportunity to record the best solution found during the search. | |
gol_type | best_cost () const |
Best cost seen. | |
best_ever_solution (evaluable_solution &best) | |
The mets::evaluable_solution will be stored as a reference: please provide an instance that is not modified/needed elsewhere. | |
best_ever_solution () | |
Unimplemented default ctor. | |
best_ever_solution (const best_ever_solution &) | |
Unimplemented copy ctor. | |
const evaluable_solution & | best_seen () const |
Returns the best solution found since the beginning. | |
best_ever_solution & | operator= (const best_ever_solution &) |
Unimplemented assignment operator. | |
Protected Attributes | |
evaluable_solution & | best_ever_m |
Records the best solution. |
The best ever solution recorder can be used as a simple solution recorder that just records the best copyable solution found during its lifetime.
Definition at line 200 of file abstract-search.hh.
mets::best_ever_solution::best_ever_solution | ( | evaluable_solution & | best | ) | [inline] |
The mets::evaluable_solution will be stored as a reference: please provide an instance that is not modified/needed elsewhere.
best | The instance used to store the best solution found (will be modified). |
Definition at line 209 of file abstract-search.hh.
Unimplemented default ctor.
Unimplemented copy ctor.
bool mets::best_ever_solution::accept | ( | const feasible_solution & | sol | ) | [inline, virtual] |
Accept is called at the end of each iteration for an opportunity to record the best solution found during the search.
Implements mets::solution_recorder.
Definition at line 343 of file abstract-search.hh.
gol_type mets::best_ever_solution::best_cost | ( | ) | const [inline, virtual] |
Best cost seen.
Implements mets::solution_recorder.
Definition at line 231 of file abstract-search.hh.
const evaluable_solution& mets::best_ever_solution::best_seen | ( | ) | const [inline] |
Returns the best solution found since the beginning.
Definition at line 227 of file abstract-search.hh.
best_ever_solution& mets::best_ever_solution::operator= | ( | const best_ever_solution & | ) |
Unimplemented assignment operator.
evaluable_solution& mets::best_ever_solution::best_ever_m [protected] |
Records the best solution.
Definition at line 235 of file abstract-search.hh.