How to use DEAP to maximize 2 variable function

30 views
Skip to first unread message

Thorsen Menine

unread,
Jun 20, 2022, 4:33:59 PM6/20/22
to deap-users
Im trying to maximize this function: Z =  -(100*(x^2 - y)^2 + (1 - x)^2)
but i cant figure out how i can set the function to fitness function. I need to pass the X and Y chromosome of my individual in order to get his fitness.
How can i do that? where can i set the function and where can i pass de X and Y value that im generating to the function
Reply all
Reply to author
Forward
0 new messages