DEAP / deap

Distributed Evolutionary Algorithms in Python
http://deap.readthedocs.org/
GNU Lesser General Public License v3.0
5.87k stars 1.13k forks source link

function _violates_constraint(fitness) can be put into class ConstrainedFitness(Fitness)? #719

Closed fengyangsun closed 1 year ago

fengyangsun commented 1 year ago

It may not be literally an "issue", just wondering since _violates_constraint is only called by class ConstrainedFitness, can we just make it as a sub-member fuction of it (just to make better modularity)? Is there anything bad if we do so?