Closed hdbeukel closed 7 years ago
Suggested change is not possible because ParallelTempering
does not have access to the protected method updateCurrentAndBestSolution(sol, eval, val)
from MetropolisSearch
(inherited from LocalSearch
).
Added new public method setCurrentSolution(sol, eval, val)
to Search
to allow the suggested enhancement.
Currently, solutions are swapped between replicas using the method
setCurrentSolution(sol)
. This involves full re-evaluation and -validation of this solution, although its evaluation and validation are in fact already known. Use the protected methodupdateCurrentAndBestSolution(sol, eval, val)
instead to gain efficiency.