Class markov::HillClimbingWalker
A Hill climbing walker
accepts every move reducing the cost and keeps moving if cost is same. NOTE: computing cost_difference is typically not superfluous as it will be needed within Walker::make_step()
to update the cached cost_
.
Inherited Members
Methods
accept()
Implementations of the walker interface must provide a method to decide which steps to accept/reject. Currently this is only based on cost_difference
, but the state or transition could be added.
Declaration
bool markov::HillClimbingWalker<Model>::accept(const typename Model::Cost_T&cost_diff) override