mets::threshold_termination_criteria Class Reference

Termination criteria based on cost value. More...

#include <mets.h>

Inherits mets::termination_criteria_chain.

Inheritance diagram for mets::threshold_termination_criteria:

Inheritance graph
[legend]
Collaboration diagram for mets::threshold_termination_criteria:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 threshold_termination_criteria (gol_type level)
 threshold_termination_criteria (termination_criteria_chain *next, gol_type level)
bool operator() (feasible_solution &fs, abstract_search &ts)
 The function that decides if we shoud terminate the search process.

Protected Attributes

gol_type level_m

Detailed Description

Termination criteria based on cost value.

This termination criteria terminates the tabu-search when a certain threshold is reached

Definition at line 1090 of file mets.h.


Member Function Documentation

bool mets::threshold_termination_criteria::operator() ( feasible_solution fs,
abstract_search ts 
) [inline, virtual]

The function that decides if we shoud terminate the search process.

Parameters:
fs The current working solution.
as The search instance.
Returns:
True if we shoud terminate

Reimplemented from mets::termination_criteria_chain.

Definition at line 1106 of file mets.h.

References mets::abstract_search::best_cost(), level_m, and mets::termination_criteria_chain::operator()().


The documentation for this class was generated from the following file:
Generated on Tue Nov 21 00:58:42 2006 for METSlib by  doxygen 1.5.1