# Suppress error for infeasible problem in Jump

**URL:** <https://discourse.julialang.org/t/suppress-error-for-infeasible-problem-in-jump/96758>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [March 29, 2023, 8:40am UTC](https://discourse.julialang.org/t/suppress-error-for-infeasible-problem-in-jump/96758 "2023-03-29T08:40:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Yuri\_Mizusawa](https://avatars.discourse-cdn.com/v4/letter/y/e480ec/32.png) [@Yuri\_Mizusawa](https://discourse.julialang.org/u/Yuri_Mizusawa)\
**Post date:** [March 29, 2023, 2:00pm UTC](https://discourse.julialang.org/t/suppress-error-for-infeasible-problem-in-jump/96758/4 "2023-03-29T14:00:55Z")

</div>

Hi,  
If I’m not mistaken you get this error from trying to acess the variable/objective value with an infeaseble problem.  
I use a “try-catch” when accesing those values, but there might be better options for that.  
Other than that you can set an environment for Gurobi, that will supress licence print and set the model to silence. But those only affect the text output while optimizing.  
Gurobi env:

> [@Suppress license output from solver in JuMP.Model](https://discourse.julialang.org/t/suppress-license-output-from-solver-in-jump-model/20828):
>
> using JuMP, Gurobi m = Model(solver=GurobiSolver(OutputFlag=0)) I have a program where the second line gets called frequently. Every time it does, this gets printed to stdout: Academic license - for non-commercial use only How can I suppress this notice? In an old version of the JuMP FAQ it is suggested to use TT = stdout redirect\_stdout() m = Model(solver=GurobiSolver(OutputFlag = 0)) redirect\_stdout(TT) But I didn’t find this to work – perhaps it is outdated?

Set silent:

```julia
set_silent(model)

```

I don’t know if this is you problem, but I hope it helps.

---

_[View the full topic](https://discourse.julialang.org/t/suppress-error-for-infeasible-problem-in-jump/96758)._
