mahf-opt / mahf

A framework for modular construction and evaluation of metaheuristics.
GNU General Public License v3.0
10 stars 0 forks source link

`Individual::evaluate_with` does not take a mutable function. #177

Closed luleyleo closed 1 year ago

luleyleo commented 1 year ago

https://github.com/mahf-opt/mahf/blob/e7a520afd5b16d7b15ac13ddff463df791429080/src/problems/individual.rs#L79-L84

This function should take an FnMut. Otherwise, you can't use it to evaluate problems where the evaluation function mutates the evaluator.

Saethox commented 1 year ago

Resolved with #178.