Public Member Functions | Protected Attributes

mets::threshold_termination_criteria Class Reference
[Common components]

Termination criteria based on cost value. More...

#include <termination-criteria.hh>

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, gol_type epsilon=1e-7)
 threshold_termination_criteria (termination_criteria_chain *next, gol_type level, 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.

Protected Attributes

gol_type level_m
gol_type epsilon_m

Detailed Description

Termination criteria based on cost value.

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


Member Function Documentation

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

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

(chain of responsibility)

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

Reimplemented from mets::termination_criteria_chain.

void mets::threshold_termination_criteria::reset (  )  [inline, virtual]

Reset the criterion to its initial state.

(chain of responsibility)

Reimplemented from mets::termination_criteria_chain.


The documentation for this class was generated from the following file:

Return to METSlib home page