Getting notified when algorithm is terminated #398
-
Hello everyone! To my optimization problem:
To my question:
So, is that possible? Is there something like a flag in the Termination object, that indicates "final generation reached" or something? Best regards and have a nice day, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The callback is called after the termination object has been updated. So, in your notify method, you can check if |
Beta Was this translation helpful? Give feedback.
-
I have nothing to add. I would have suggested exactly the same. @cyrilpic Thank you very much for helping out here :) |
Beta Was this translation helpful? Give feedback.
The callback is called after the termination object has been updated. So, in your notify method, you can check if
algorithm.termination.has_terminated()
is True.