# JuMP Multiple Models Design Question

**URL:** <https://discourse.julialang.org/t/jump-multiple-models-design-question/36230>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [March 19, 2020, 9:40pm UTC](https://discourse.julialang.org/t/jump-multiple-models-design-question/36230 "2020-03-19T21:40:26Z")\
**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:** [March 19, 2020, 10:57pm UTC](https://discourse.julialang.org/t/jump-multiple-models-design-question/36230/2 "2020-03-19T22:57:16Z")

</div>

Here is the documentation which explains the difference: [Variables · JuMP](https://www.juliaopt.org/JuMP.jl/stable/variables/).

Essentially,

```nohighlight
using JuMP

m1 = Model()
@variable(m1, x >= 0) # Makes a Julia variable "x" which points to the JuMP variable "x" in m1.

m2 = Model()
@variable(m2, x >= 0) # Changes the Julia variable "x" to point to the JuMP variable "x" in m2.

m1[:x] # The JuMP variable "x" in m1
m2[:x] # The JuMP variable "x" in m2

m1[:x] == x # false
m2[:x] == x # true

```

---

_[View the full topic](https://discourse.julialang.org/t/jump-multiple-models-design-question/36230)._
