The run of EA don't stop
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.
After the optimization, MEWpy tries to simplify the final solutions by removing modifications that do not contribute to the solution performance. If you want to skip the simplification step add the option:
final_pop = ea.run(simplify=False)
Vítor Pereira
On Mon, Dec 9, 2024 at 8:50 AM WILLIAMWEITHU @.***> wrote:
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.
— Reply to this email directly, view it on GitHub https://github.com/BioSystemsUM/MEWpy/issues/50, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBG5EHQIIN54H2IQ3GJMRL2EVKU5AVCNFSM6AAAAABTIJ5IUSVHI2DSMVQWIX3LMV43ASLTON2WKOZSG4ZDMMZZGI4DCNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>