DEAP / deap

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

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

Closed fengyangsun closed 11 months 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?