Termination criteria based on the number of iterations without an improvement. More...
#include <termination-criteria.hh>
Public Member Functions | |
int | iteration () |
noimprove_termination_criteria (int max, gol_type epsilon=1e-7) | |
noimprove_termination_criteria (termination_criteria_chain *next, int max, gol_type epsilon=1e-7) | |
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. | |
int | resets () |
int | second_guess () |
Protected Attributes | |
gol_type | best_cost_m |
gol_type | epsilon_m |
int | iterations_left_m |
int | max_noimprove_m |
int | resets_m |
int | second_guess_m |
int | total_iterations_m |
Termination criteria based on the number of iterations without an improvement.
This termination criteria terminates the tabu-search after "max" number of itarations without a single global improvement.
Definition at line 130 of file termination-criteria.hh.
mets::noimprove_termination_criteria::noimprove_termination_criteria | ( | int | max, |
gol_type | epsilon = 1e-7 |
||
) | [inline] |
Definition at line 134 of file termination-criteria.hh.
mets::noimprove_termination_criteria::noimprove_termination_criteria | ( | termination_criteria_chain * | next, |
int | max, | ||
gol_type | epsilon = 1e-7 |
||
) | [inline] |
Definition at line 146 of file termination-criteria.hh.
int mets::noimprove_termination_criteria::iteration | ( | ) | [inline] |
Definition at line 167 of file termination-criteria.hh.
bool mets::noimprove_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 264 of file termination-criteria.hh.
void mets::noimprove_termination_criteria::reset | ( | ) | [inline, virtual] |
Reset the criterion to its initial state.
(chain of responsibility)
Reimplemented from mets::termination_criteria_chain.
Definition at line 159 of file termination-criteria.hh.
int mets::noimprove_termination_criteria::resets | ( | ) | [inline] |
Definition at line 168 of file termination-criteria.hh.
int mets::noimprove_termination_criteria::second_guess | ( | ) | [inline] |
Definition at line 166 of file termination-criteria.hh.
Definition at line 171 of file termination-criteria.hh.
Definition at line 177 of file termination-criteria.hh.
int mets::noimprove_termination_criteria::iterations_left_m [protected] |
Definition at line 173 of file termination-criteria.hh.
int mets::noimprove_termination_criteria::max_noimprove_m [protected] |
Definition at line 172 of file termination-criteria.hh.
int mets::noimprove_termination_criteria::resets_m [protected] |
Definition at line 175 of file termination-criteria.hh.
int mets::noimprove_termination_criteria::second_guess_m [protected] |
Definition at line 176 of file termination-criteria.hh.
int mets::noimprove_termination_criteria::total_iterations_m [protected] |
Definition at line 174 of file termination-criteria.hh.