mahf-opt / mahf

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

Should we add a generic `P: Problem` to `State`? #122

Closed Saethox closed 1 year ago

Saethox commented 1 year ago

This is only a small change, and pretty much only concerns the convenience methods, but writing state.population_state() feels more natural than to add the problem type every time, and is also more consistent with Population<P> and Individual<P>. I also can't think of a use case where we would use the same State for different problems.