# How to update JuMP?

**URL:** <https://discourse.julialang.org/t/how-to-update-jump/20153>\
**Category:** Optimization (Mathematical)\
**Created:** [January 27, 2019, 5:30pm UTC](https://discourse.julialang.org/t/how-to-update-jump/20153 "2019-01-27T17:30:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mpal/32/6903_2.png) [@mpal](https://discourse.julialang.org/u/mpal)\
**Post date:** [January 27, 2019, 5:30pm UTC](https://discourse.julialang.org/t/how-to-update-jump/20153/1 "2019-01-27T17:30:09Z")

</div>

I am using JuMP v"0.18.5+". But in this version,  
`const MOI = JuMP.MathOptInterface`  
results,

```julia
UndefVarError: MathOptInterface not defined

Stacktrace:
 [1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13
 [2] top-level scope at In[80]:1

```

I have gone through the git repo of JuMP and got to know that it is available in v0.19.0.  
So I have tried to update the package by,

```julia
julia> Pkg.update("JuMP")
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Updating git-repo `https://github.com/JuliaOpt/JuMP.jl.git`
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
 [no changes]
  Updating `~/.julia/environments/v1.0/Manifest.toml`

```

but still it is not getting updated.

```julia
 "JuMP" => v"0.18.5+"

```

Please Help!  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![leethargo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leethargo/32/6004_2.png) [@leethargo](https://discourse.julialang.org/u/leethargo)\
**Post date:** [January 27, 2019, 9:43pm UTC](https://discourse.julialang.org/t/how-to-update-jump/20153/2 "2019-01-27T21:43:22Z")

</div>

I think that these are just beta releases of JuMP v0.19 in GitHub, but a new version has not been _tagged_ at `METADATA.jl` yet, so the package manager does not know about it.

If you want to work with the cutting edge in JuMP, you could try `Pkg.develop("JuMP")` which will check out the `master` branch by default. You can then change the branch/tag later, if needed.

Maybe it also helps to just `Pkg.add("MathOptInterface")`, but that should be handled automatically, as a dependency (for JuMP). Of course, if you want to use `MOI` in your own code, you have to add it explicitly.

---

<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:** [January 27, 2019, 11:23pm UTC](https://discourse.julialang.org/t/how-to-update-jump/20153/3 "2019-01-27T23:23:00Z")

</div>

You can find installation instructions here:

> [@JuMP 0.19-beta released (JuMP/MathOptInterface)](https://discourse.julialang.org/t/jump-0-19-beta-released-jump-mathoptinterface/18850):
>
> Just in time for the holidays, we’re happy to announce that JuMP 0.19-beta is now released. We’re wrapping up the big [transition](https://discourse.julialang.org/t/mathoptinterface-and-upcoming-breaking-changes-in-jump-0-19/4874) to MathOptInterface (MOI) from MathProgBase. There are no more breaking changes planned for the 0.19 release and a few [blockers](https://github.com/JuliaOpt/JuMP.jl/milestone/18) remain. See [NEWS.md](https://github.com/JuliaOpt/JuMP.jl/blob/master/NEWS.md) for a list of breaking changes and new features since JuMP 0.18. See the [docs](http://www.juliaopt.org/JuMP.jl/latest/installation/) for a list of solvers that are compatible and not yet compatible with JuMP/MathOptInterface. JuMP 0.19-beta runs on Julia 0.7 or later. To ins…

tl;dr: To get the latest beta, run

```julia
] free JuMP
] add JuMP#v0.19-beta2

```

To get the bleeding-edge

```julia
] free JuMP
] add JuMP#master

```

---

<div class="post-metadata">

**Author:** ![mpal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mpal/32/6903_2.png) [@mpal](https://discourse.julialang.org/u/mpal)\
**Post date:** [January 28, 2019, 2:07am UTC](https://discourse.julialang.org/t/how-to-update-jump/20153/4 "2019-01-28T02:07:02Z")

</div>

Thanks a lot!
