# Can I use JuMP 0.18 with Gurobi.jl 0.9.3?

**URL:** <https://discourse.julialang.org/t/can-i-use-jump-0-18-with-gurobi-jl-0-9-3/51220>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [December 3, 2020, 7:45pm UTC](https://discourse.julialang.org/t/can-i-use-jump-0-18-with-gurobi-jl-0-9-3/51220 "2020-12-03T19:45:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wei\_Wang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wei_wang/32/15032_2.png) [@Wei\_Wang](https://discourse.julialang.org/u/Wei_Wang)\
**Post date:** [December 3, 2020, 7:45pm UTC](https://discourse.julialang.org/t/can-i-use-jump-0-18-with-gurobi-jl-0-9-3/51220/1 "2020-12-03T19:45:19Z")

</div>

For some reasons, I currently still have to use JuMP 0.18. When I updated Gurobi to the latest version 9.1 and Gurobi.jl to 0.9.3, I got some problems building my model.

When I do it with

> model=Model(solver=GurobiSolver())

I receive the error

> UndefVarError: GurobiSolver not defined

So I want to know if I want to use Gurobi 9.1 with JuMP 0.18, how should I set my packages’ version?

Thank you so much.

---

<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:** [December 3, 2020, 7:58pm UTC](https://discourse.julialang.org/t/can-i-use-jump-0-18-with-gurobi-jl-0-9-3/51220/2 "2020-12-03T19:58:20Z")

</div>

You cannot use JuMP 0.18 with Gurobi 9.1.

You should update to JuMP 0.21.

---

<div class="post-metadata">

**Author:** ![Wei\_Wang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wei_wang/32/15032_2.png) [@Wei\_Wang](https://discourse.julialang.org/u/Wei_Wang)\
**Post date:** [December 3, 2020, 8:01pm UTC](https://discourse.julialang.org/t/can-i-use-jump-0-18-with-gurobi-jl-0-9-3/51220/3 "2020-12-03T20:01:42Z")

</div>

Thank you so much for your reply.
