1 #if !defined(_FIRST_DESCENT_HH_)
2 #define _FIRST_DESCENT_HH_
17 template <
class Input,
class State,
class Move,
typename CFtype =
int>
42 template <
class Input,
class State,
class Move,
typename CFtype>
46 :
LocalSearch<Input, State, Move, CFtype>(in, e_sm, e_ne, name,
"First Improvement Engine")
52 template <
class Input,
class State,
class Move,
typename CFtype>
59 this->current_move = em;
60 this->evaluations += explored;
66 template <
class Input,
class State,
class Move,
typename CFtype>
69 return this->iteration > 0 && !this->current_move.is_valid;
74 #endif // _FIRST_DESCENT_HH_
FirstImprovement(const Input &in, StateManager< Input, State, CFtype > &e_sm, NeighborhoodExplorer< Input, State, Move, CFtype > &e_ne, std::string name)
This component is responsible for all operations on the state which are independent of the neighborho...