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

If the number of input is change, how to slove it? #615

Closed ltfx closed 2 years ago

ltfx commented 2 years ago

Hello everyone, I use deap to write a GP code ,but in my question, the number of input in gp is dynamic change,example: sometimes f = fun(a,b) sometimes f = fun(a1,a2,b1,b2) someone have idea to solve this question? thanks very much!

Edanflame commented 2 years ago

you can use a list or variable length parameter in python