from mewpy.optimization import EA
import warnings
warnings.filterwarnings("ignore")
ea = EA(problem, max_generations= 20)
final_pop = ea.run()
I optimized the model using the above codes and found that it doesn't stop after the maximum number of iterations. The result of the 20th iteration has already been printed.
from mewpy.optimization import EA
import warnings
warnings.filterwarnings("ignore")
ea = EA(problem, max_generations= 20)
final_pop = ea.run()
I optimized the model using the above codes and found that it doesn't stop after the maximum number of iterations. The result of the 20th iteration has already been printed.