Public Member Functions | Protected Attributes
mets::aspiration_criteria_chain Class Reference

Function object expressing an aspiration criteria. More...

#include <tabu-search.hh>

Inheritance diagram for mets::aspiration_criteria_chain:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void accept (feasible_solution &fs, move &mov, gol_type evaluation)
 This is a callback function from the algorithm that tells us that a move was accepted.
 aspiration_criteria_chain (aspiration_criteria_chain *next=0)
 Constructor.
 aspiration_criteria_chain (const aspiration_criteria_chain &other)
 purposely not implemented (see Effective C++)
virtual bool operator() (feasible_solution &fs, move &mov, gol_type evaluation) const
 The function that decides if we shoud accept a tabu move.
aspiration_criteria_chainoperator= (const aspiration_criteria_chain &other)
 purposely not implemented (see Effective C++)
virtual void reset ()
 A method to reset this aspiration criteria chain to its original state.
virtual ~aspiration_criteria_chain ()
 Virtual destructor.

Protected Attributes

aspiration_criteria_chainnext_m

Detailed Description

Function object expressing an aspiration criteria.

An aspiration criteria is a criteria used to override the tabu list. When the aspiration criteria is met a move is made even if it's in the tabu-list

Aspiration critera can be chained so a criteria can decorate another criteria

Definition at line 52 of file tabu-search.hh.


Constructor & Destructor Documentation

Constructor.

Parameters:
nextOptional next criteria in the chain.

Definition at line 59 of file tabu-search.hh.

purposely not implemented (see Effective C++)

Virtual destructor.

Definition at line 71 of file tabu-search.hh.


Member Function Documentation

void mets::aspiration_criteria_chain::accept ( feasible_solution fs,
move mov,
gol_type  evaluation 
) [inline, virtual]

This is a callback function from the algorithm that tells us that a move was accepted.

You can use this function to update the aspiration criteria based on the current search status. (e.g. record the best cost for a best ever criteria)

Parameters:
fsThe current working solution (after applying move).
movThe accepted move (the move just made).
Returns:
True if the move is to be accepted.

Reimplemented in mets::best_ever_criteria.

Definition at line 581 of file tabu-search.hh.

bool mets::aspiration_criteria_chain::operator() ( feasible_solution fs,
move mov,
gol_type  evaluation 
) const [inline, virtual]

The function that decides if we shoud accept a tabu move.

Parameters:
fsThe current working solution (before applying move).
movThe move to be made (the move that is being evaluated).
Returns:
True if the move is to be accepted.

Reimplemented in mets::best_ever_criteria.

Definition at line 589 of file tabu-search.hh.

aspiration_criteria_chain& mets::aspiration_criteria_chain::operator= ( const aspiration_criteria_chain other)

purposely not implemented (see Effective C++)

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

A method to reset this aspiration criteria chain to its original state.

Reimplemented in mets::best_ever_criteria.

Definition at line 574 of file tabu-search.hh.


Member Data Documentation

Definition at line 101 of file tabu-search.hh.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:54