#include <termination-criteria.hh>


Public Member Functions | |
| bool | operator() (const feasible_solution &fs) |
| Alternate function that decides if we shoud terminate the search process. | |
| void | reset () |
| Reset the criterion to its initial state. | |
The mets::forever termination criterion will never terminate the search.
This can be used in the mets::simulated_annealing to stop only when the temperature reaches 0 or in the mets::tabu_search if we want to stop for another reason (e.g. some components or observer raises an exception).
The forever termination criterion cannot be chained. When chained behaviour is undetermined.
| bool mets::forever::operator() | ( | const feasible_solution & | fs | ) | [inline, virtual] |
Alternate function that decides if we shoud terminate the search process.
(chain of responsibility)
| fs | The current working solution. |
Reimplemented from mets::termination_criteria_chain.
| void mets::forever::reset | ( | ) | [inline, virtual] |
Reset the criterion to its initial state.
(chain of responsibility)
Reimplemented from mets::termination_criteria_chain.
Return to METSlib home page