You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tested the pygad library version 2.17.0 for solving the knapsack problem and I observed that even if I set allow_duplicate_genes=False, I still have duplicated genes in the solution.
As shown in the following solution, It can be seen that gene -5 is duplicated, -25 also.
Hi, I tested the pygad library version 2.17.0 for solving the knapsack problem and I observed that even if I set allow_duplicate_genes=False, I still have duplicated genes in the solution.
As shown in the following solution, It can be seen that gene -5 is duplicated, -25 also.
I instantiate pygad as following
and the fitness function is defined as:
The text was updated successfully, but these errors were encountered: