I am using julia, so my question might be more appropriate for the Gurobi.jl folks, but I was hoping to check here first to see if something is possible.
I have an optimization `model` that is currently getting optimized with `GRBoptimize(model)`. Partway through, an exception occurs (in my case, I interrupt the optimizer with ctrl-c). Similar to this post and this post, I would like to free the Gurobi memory with `GRBfreemodel(model)`. I have a try-catch block that should free the model if any exception occurs:
try err=GRBoptimize(model); catch
but the code runs, I receive an error message coded 10017: OPTIMIZATION_IN_PROGRESS.
My question is: is there any way to halt the optimization and free the model for an "in-progress" optimization model?
Please sign in to leave a comment.