snapshot of solution every few iterations
Posted: Wed Sep 27, 2023 1:58 am
Hi all,
I am running Moco simulations, and sometimes the server crashes, or the IPOPT optimizer does not converge, etc. Regardless of the reasons, then Python is exited and I lose all variables, in particular my intermediate solution.
Is there any way to take a snapshot of my solution every few iterations and dump it in a sto file, like it is done with checkpoints in machine learning?
I am running Moco simulations, and sometimes the server crashes, or the IPOPT optimizer does not converge, etc. Regardless of the reasons, then Python is exited and I lose all variables, in particular my intermediate solution.
Is there any way to take a snapshot of my solution every few iterations and dump it in a sto file, like it is done with checkpoints in machine learning?