mealpy
mealpy copied to clipboard
termination - TB
term_dict = { "max_epoch": 15, "max_time": 60, "max_fe": 1000, } model.solve(xxxxxxxxxxxxx,,termination=term_dict) 2024/10/08 04:34:00 PM, INFO, mealpy.swarm_based.PSO.P_PSO [line: 162]: Solving single objective optimization problem. 2024/10/08 04:34:13 PM, INFO, mealpy.swarm_based.PSO.P_PSO [line: 270]: >>>Problem: P, Epoch: 1, Current best: 0.052123457433011944, Global best: 0.052123457433011944, Runtime: 6.29122 seconds 2024/10/08 04:34:13 PM, WARNING, mealpy.swarm_based.PSO.P_PSO [line: 199]: Stopping criterion with maximum running time/time bound (TB) (seconds) occurred. End program!
As shown above, when “max_time”: 60, according to ’https://mealpy.readthedocs.io/en/latest/pages/general/advance_guide.html#stopping-condition-termination‘, the program should stop at 600s (or epoch=15). program should stop at 60s (or epoch=15). But in fact, it only runs for 6.92s, and the stop condition output stops because of 'TB'. To add to this, the same result is achieved with “max_time”: 600. I'm wondering if it's a usage error or if you have an error in this area.
Translated with DeepL.com (free version)