# Suppress license output from solver in JuMP.Model

**URL:** <https://discourse.julialang.org/t/suppress-license-output-from-solver-in-jump-model/20828>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [February 15, 2019, 5:19pm UTC](https://discourse.julialang.org/t/suppress-license-output-from-solver-in-jump-model/20828 "2019-02-15T17:19:48Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![evanfields](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evanfields/32/1744_2.png) [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Post date:** [February 16, 2019, 3:42am UTC](https://discourse.julialang.org/t/suppress-license-output-from-solver-in-jump-model/20828/4 "2019-02-16T03:42:24Z")

</div>

As others have mentioned, the message comes from Gurobi when getting the Gurobi environment. The solution is to get the environment just once, and then re-use that environment:

```julia
julia> gurobi_env = Gurobi.Env()
Academic license - for non-commercial use only
Gurobi.Env(Ptr{Nothing} @0x000000002cd049f0)

julia> m = Model(with_optimizer(Gurobi.Optimizer, gurobi_env))
A JuMP Model
Feasibility problem with:
Variables: 0
Model mode: AUTOMATIC
CachingOptimizer state: EMPTY_OPTIMIZER
Solver name: Gurobi

julia> m = Model(with_optimizer(Gurobi.Optimizer, gurobi_env))
A JuMP Model
Feasibility problem with:
Variables: 0
Model mode: AUTOMATIC
CachingOptimizer state: EMPTY_OPTIMIZER
Solver name: Gurobi

```

Notice that each model creation doesn’t trigger a printed warning about the academic license.

---

_[View the full topic](https://discourse.julialang.org/t/suppress-license-output-from-solver-in-jump-model/20828)._
