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.
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 withPopulation<P>
andIndividual<P>
. I also can't think of a use case where we would use the sameState
for different problems.