toulbar2
Public Member Functions | List of all members
Metaheuristic Class Reference
Inheritance diagram for Metaheuristic:
Inheritance graph
[legend]

Public Member Functions

virtual void executebeforemove (Move *move, Configuration *configuration, OpProblem *problem)
 
virtual void reinit (OpProblem *problem)
 
virtual int acceptance (Move *move, Configuration *config)
 

Detailed Description

Root class for Metaheuritics

Member Function Documentation

◆ acceptance()

int Metaheuristic::acceptance ( Move move,
Configuration config 
)
virtual

acceptance condition of a move : returns 1 if the move is accepted

Reimplemented in TabuAcceptingrate, SimulatedAnnealing, ThresholdAccepting, Metropolis, and TabuSearch.

References Configuration::valuation.

◆ executebeforemove()

void Metaheuristic::executebeforemove ( Move move,
Configuration configuration,
OpProblem problem 
)
virtual

update of the metaheuristic data just before a move is performed

Reimplemented in SimulatedAnnealing, ThresholdAccepting, and TabuSearch.

◆ reinit()

void Metaheuristic::reinit ( OpProblem problem)
virtual

initialization of the meteheuristic data at the beginning of a local search

Reimplemented in ThresholdAccepting, and TabuSearch.