Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork495
Different Solutions Sizes Every Generation#321
-
Hello, I am using PyGAD for my University project, and I encountered a problem today that I did not find earlier. If anyone can help me figure out the problem, thanks in advance :) The problem I have is that the number of solutions, in each generation is different. When printing the solutions, I can see I am getting 18 solutions shown one generation, 17 in a different generation etc. Furthermore, it repeats the solutions within the generation. The parameters I have chosen are based on wanting a convergence for two design variables within a search space, where parents are kept for the next generation and selecting parents based on which ones have the best fitness evaluation results. The code that I have used to decide the parameters of PyGAD: num_generations = 100 def fitness_func(ga_instance, solution, solution_idx): def callback_generation(ga_instance): ga_instance = pygad.GA(num_generations=num_generations, |
BetaWas this translation helpful?Give feedback.