I'm solving pretty huge problems with CVXPY and SCS using the GPU (1-2M variables and about 2-3 days calculation on a GTX 970), i want to know if there exist any possibility to save the state after each iteration to resume the optimization in case of shutdown. Thank you in advance.
Right now there isn't really a good way to automatically checkpoint the state of the algorithm. Your best bet is to do something along the following lines:
Call SCS from python directly with the standard form data with relatively small max_iters.
SCS will return the 'best guess' after that many iterations (hopefully it will be feasible, if not you have to increase the number of max_iters), at which point you can save everything to disk.
I'm solving pretty huge problems with CVXPY and SCS using the GPU (1-2M variables and about 2-3 days calculation on a GTX 970), i want to know if there exist any possibility to save the state after each iteration to resume the optimization in case of shutdown. Thank you in advance.