This is adaptor on Commit which allows to record solution basing on condition It is particularly useful in tabu search and simulated annealing in which we'd like to store the best found solution. More...
#include <custom_components.hpp>
Public Member Functions | |
record_solution_commit_adapter (Solution &solution, Commit commit=Commit{}, Comparator comparator=Comparator{}) | |
constructor More... | |
template<typename Move > | |
bool | operator() (Solution &sol, const Move &move) |
operator More... | |
const Solution & | get_solution () const |
Access to the stored solution (const version) More... | |
Solution & | get_solution () |
Access to the stored solution (non-const version) More... | |
This is adaptor on Commit which allows to record solution basing on condition It is particularly useful in tabu search and simulated annealing in which we'd like to store the best found solution.
Commit | |
Solution | |
Comparator |
Definition at line 339 of file custom_components.hpp.
|
inline |
constructor
solution | |
commit | |
comparator |
Definition at line 348 of file custom_components.hpp.
|
inline |
Access to the stored solution (const version)
Definition at line 373 of file custom_components.hpp.
|
inline |
Access to the stored solution (non-const version)
Definition at line 380 of file custom_components.hpp.
|
inline |
operator
Move |
sol | |
move |
Definition at line 360 of file custom_components.hpp.