# UnDefVarError - Model not defined in Julia optimization problem

**URL:** <https://discourse.julialang.org/t/undefvarerror-model-not-defined-in-julia-optimization-problem/24451>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 21, 2019, 8:12pm UTC](https://discourse.julialang.org/t/undefvarerror-model-not-defined-in-julia-optimization-problem/24451 "2019-05-21T20:12:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [May 21, 2019, 9:36pm UTC](https://discourse.julialang.org/t/undefvarerror-model-not-defined-in-julia-optimization-problem/24451/2 "2019-05-21T21:36:34Z")

</div>

Could you please post the complete error output? You can follow the instructions here: [PSA: how to quote code with backticks](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530) to quote your code so that it will render properly as well.

---

_[View the full topic](https://discourse.julialang.org/t/undefvarerror-model-not-defined-in-julia-optimization-problem/24451)._
