# Getting JuMP model variables and containers in order of creation

**URL:** <https://discourse.julialang.org/t/getting-jump-model-variables-and-containers-in-order-of-creation/127245>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [March 21, 2025, 10:58pm UTC](https://discourse.julialang.org/t/getting-jump-model-variables-and-containers-in-order-of-creation/127245 "2025-03-21T22:58:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![brunompacheco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brunompacheco/32/209375_2.png) [@brunompacheco](https://discourse.julialang.org/u/brunompacheco)\
**Post date:** [March 23, 2025, 12:01am UTC](https://discourse.julialang.org/t/getting-jump-model-variables-and-containers-in-order-of-creation/127245/3 "2025-03-23T00:01:36Z")

</div>

So, this is related somewhat to an [older Post of mine](https://discourse.julialang.org/t/forwarding-a-macro-that-returns-a-variable/125508).

The input of my algorithm is a list of players (in a Nash game), each with a jump model (feasible space) and a function (payoff). Each payoff is a function of the player’s variables and is parameterized by the other players’ variables. Up to now, I was requiring the function to be defined over `all_variables`, but that gets really inconvenient if the variables are defined as containers. By using `object_dictionary`, the function could be defined over a more familiar structure, if the order was known.

Writing this made me realize maybe I should reconsider extending the Model.

---

_[View the full topic](https://discourse.julialang.org/t/getting-jump-model-variables-and-containers-in-order-of-creation/127245)._
