#include <mets.h>
Public Member Functions | |
aspiration_criteria_chain (aspiration_criteria_chain *next=0) | |
Constructor. | |
aspiration_criteria_chain (const aspiration_criteria_chain &other) | |
purposely not implemented (see Effective C++) | |
aspiration_criteria_chain & | operator= (const aspiration_criteria_chain &other) |
virtual | ~aspiration_criteria_chain () |
Virtual destructor. | |
virtual bool | operator() (feasible_solution &fs, abstract_search &as) |
The function that decides if we shoud accept a tabu move. | |
Protected Attributes | |
aspiration_criteria_chain * | next_m |
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
mets::aspiration_criteria_chain::aspiration_criteria_chain | ( | aspiration_criteria_chain * | next = 0 |
) | [inline, explicit] |
Constructor.
next | Optional next criteria in the chain. |
virtual bool mets::aspiration_criteria_chain::operator() | ( | feasible_solution & | fs, | |
abstract_search & | as | |||
) | [virtual] |
The function that decides if we shoud accept a tabu move.
fs | The current working solution. | |
as | The search instance. |
Reimplemented in mets::best_ever_criteria.
Return to METSlib home page