# \[JuMP\] Get variable name from a model to use on another

**URL:** <https://discourse.julialang.org/t/jump-get-variable-name-from-a-model-to-use-on-another/10692>\
**Category:** Optimization (Mathematical)\
**Created:** [May 3, 2018, 10:00pm UTC](https://discourse.julialang.org/t/jump-get-variable-name-from-a-model-to-use-on-another/10692 "2018-05-03T22:00:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![abelsiqueira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abelsiqueira/32/47269_2.png) [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Post date:** [May 4, 2018, 4:18pm UTC](https://discourse.julialang.org/t/jump-get-variable-name-from-a-model-to-use-on-another/10692/3 "2018-05-04T16:18:04Z")

</div>

Thanks @odow, but I must clarify. I don’t know which variables the model has, that is, instead of defining `x`, an user could define only `y`.

This is related to another problem and the context is clearer [there](https://discourse.julialang.org/t/jump-creating-a-nonlinear-least-squares-model/10706).

---

_[View the full topic](https://discourse.julialang.org/t/jump-get-variable-name-from-a-model-to-use-on-another/10692)._
