METSlib 0.5
Public Member Functions | Protected Attributes | List of all members
mets::threshold_termination_criteria Class Reference

Termination criteria based on cost value. More...

#include <termination-criteria.hh>

Inheritance diagram for mets::threshold_termination_criteria:
Inheritance graph
Collaboration diagram for mets::threshold_termination_criteria:
Collaboration graph

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.
 
- Public Member Functions inherited from mets::termination_criteria_chain
 termination_criteria_chain (termination_criteria_chain *next=0)
 Constructor.
 
 termination_criteria_chain (const termination_criteria_chain &)
 purposely not implemented (see Effective C++)
 
termination_criteria_chainoperator= (const termination_criteria_chain &)
 
virtual ~termination_criteria_chain ()
 Virtual destructor.
 

Protected Attributes

gol_type level_m
 
gol_type epsilon_m
 
- Protected Attributes inherited from mets::termination_criteria_chain
termination_criteria_chainnext_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

◆ operator()()

bool mets::threshold_termination_criteria::operator() ( const feasible_solution & fs)
inlinevirtual

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

(chain of responsibility)

Parameters
fsThe current working solution.
Returns
True if we shoud terminate

Reimplemented from mets::termination_criteria_chain.

◆ reset()

void mets::threshold_termination_criteria::reset ( )
inlinevirtual

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