# JuMP: Catch error if solver stops early due to network error or running out of memory ?

**URL:** https://discourse.julialang.org/t/jump-catch-error-if-solver-stops-early-due-to-network-error-or-running-out-of-memory/20962
**Category:** Optimization (Mathematical)
**Created:** [February 19, 2019, 1:28am UTC](https://discourse.julialang.org/t/jump-catch-error-if-solver-stops-early-due-to-network-error-or-running-out-of-memory/20962 "2019-02-19T01:28:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Stuart\_Rogers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stuart_rogers/32/10694_2.png) [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)
#### Post date: [February 19, 2019, 1:28am UTC](https://discourse.julialang.org/t/jump-catch-error-if-solver-stops-early-due-to-network-error-or-running-out-of-memory/20962/1 "2019-02-19T01:28:56Z")

</div>

I am solving a large MILP by calling Gurobi through JuMP v0.18. Gurobi issues an error, which I believe is due to it running out of RAM. Is it possible for JuMP to catch the error and collect the best known solution?

---

<div class="post-metadata">

### Author: ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)
#### Post date: [February 19, 2019, 1:32am UTC](https://discourse.julialang.org/t/jump-catch-error-if-solver-stops-early-due-to-network-error-or-running-out-of-memory/20962/2 "2019-02-19T01:32:55Z")

</div>

No, not in 0.18.

This might be possible in the [new version of JuMP](https://discourse.julialang.org/t/jump-v0-19-has-been-released/20878) which has better support for this sort of thing.

It would depend on the exact error returned by Gurobi though, and whether Gurobi has a solution internally.
