Termination criteria based on the number of iterations. More...
#include <termination-criteria.hh>
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() (const feasible_solution &fs) |
Alternate function that decides if we shoud terminate the search process. | |
void | reset () |
Reset the criterion to its initial state. | |
Protected Attributes | |
int | iterations_m |
int | max_m |
Termination criteria based on the number of iterations.
This termination criteria terminates the tabu-search after a fixed number of itarations.
Definition at line 88 of file termination-criteria.hh.
mets::iteration_termination_criteria::iteration_termination_criteria | ( | int | max | ) | [inline] |
Ctor. Max is the number of iterations to do.
Definition at line 93 of file termination-criteria.hh.
mets::iteration_termination_criteria::iteration_termination_criteria | ( | termination_criteria_chain * | next, |
int | max | ||
) | [inline, explicit] |
Definition at line 100 of file termination-criteria.hh.
bool mets::iteration_termination_criteria::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.
Definition at line 106 of file termination-criteria.hh.
void mets::iteration_termination_criteria::reset | ( | ) | [inline, virtual] |
Reset the criterion to its initial state.
(chain of responsibility)
Reimplemented from mets::termination_criteria_chain.
Definition at line 116 of file termination-criteria.hh.
int mets::iteration_termination_criteria::iterations_m [protected] |
Definition at line 121 of file termination-criteria.hh.
int mets::iteration_termination_criteria::max_m [protected] |
Definition at line 120 of file termination-criteria.hh.