1 from pygmo import *
2 udp = dtlz(prob_id = 1)
3 pop = population(prob = udp, size = 105)
4 algo = algorithm(moead(gen = 100))
5 for i in range(10):
6 pop = algo.evolve(pop)
7 print(udp.p_distance(pop))
I find that line 6 cannot work normally. when I debug to line 6, the procedure finished immediately without any error and evolution process. The nsga2 cannot run normally as well. How can I fix this problem?
I failed to run moead by using the code from the tutorial (website: https://esa.github.io/pygmo2/tutorials/moo_moead.html, showing below).
1 from pygmo import * 2 udp = dtlz(prob_id = 1) 3 pop = population(prob = udp, size = 105) 4 algo = algorithm(moead(gen = 100)) 5 for i in range(10): 6 pop = algo.evolve(pop) 7 print(udp.p_distance(pop))
I find that line 6 cannot work normally. when I debug to line 6, the procedure finished immediately without any error and evolution process. The nsga2 cannot run normally as well. How can I fix this problem?