EasyLocalAPI reference iolab-uniud/easylocal

easylocal::search_run::commit_improvement

Applies move, evaluated as candidate, as commit() does, for an algorithm whose current solution is its best one and that knows the move improves it: the new best cost is reported as incumbent_updated() does.

Synopsis

Declared in <easylocal/runners/search_run.hpp>

void
commit_improvement(
    solution_type& solution,
    evaluation_type& current,
    candidate_type&& candidate,
    move_type const& move);