# JuMP problem with all\_variables

**URL:** <https://discourse.julialang.org/t/jump-problem-with-all-variables/24006>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [May 8, 2019, 6:46pm UTC](https://discourse.julialang.org/t/jump-problem-with-all-variables/24006 "2019-05-08T18:46:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 8, 2019, 6:51pm UTC](https://discourse.julialang.org/t/jump-problem-with-all-variables/24006/2 "2019-05-08T18:51:33Z")

</div>

It looks like you might be on an (old) beta-release of JuMP. Run

```nohighlight
] rm JuMP
] add JuMP

```

Once you’ve done that, the following should work.

```nohighlight
using JuMP
model = Model()
@variable(model, x)

all_variables(model)

# output

1-element Array{VariableRef,1}:
 x

```

In future, please read [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757).

---

_[View the full topic](https://discourse.julialang.org/t/jump-problem-with-all-variables/24006)._
