#include <mets.h>
This termination criteria terminates the tabu-search after a fixed number of itarations.
Public Member Functions | |
iteration_termination_criteria (int max) | |
Ctor. Max is the number of iterations to do. | |
iteration_termination_criteria (termination_criteria_chain *next, int max) | |
bool | operator() (feasible_solution &fs, abstract_search &ts) |
The function that decides if we shoud terminate the search process. | |
void | reset () |
Protected Attributes | |
int | max_m |
int | iterations_m |
bool mets::iteration_termination_criteria::operator() | ( | feasible_solution & | fs, | |
abstract_search & | ts | |||
) | [inline, virtual] |
The function that decides if we shoud terminate the search process.
fs | The current working solution. | |
as | The search instance. |
Reimplemented from mets::termination_criteria_chain.
Return to METSlib home page