# Error in running a tutor model

**URL:** <https://discourse.julialang.org/t/error-in-running-a-tutor-model/76405>\
**Category:** Optimization (Mathematical)\
**Created:** [February 14, 2022, 10:14am UTC](https://discourse.julialang.org/t/error-in-running-a-tutor-model/76405 "2022-02-14T10:14:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonyhur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tonyhur/32/22732_2.png) [@tonyhur](https://discourse.julialang.org/u/tonyhur)\
**Post date:** [February 14, 2022, 10:14am UTC](https://discourse.julialang.org/t/error-in-running-a-tutor-model/76405/1 "2022-02-14T10:14:14Z")

</div>

I’m trying to run the “urban planning problem” at  
[https://jump.dev/JuMP.jl/stable/tutorials/linear/urban\_plan/](https://jump.dev/JuMP.jl/stable/tutorials/linear/urban_plan/).

I installed Julia 1.5.3, JuMP v0.21.10, Test, and GLPK v0.14.14.

When running I get an error:  
Test threw exception  
Expression: termination\_status(model) == OPTIMAL  
UndefVarError: OPTIMAL not defined

Thanks for help  
Tony

---

<div class="post-metadata">

**Author:** ![mike\_k](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mike_k/32/211864_2.png) [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Post date:** [February 14, 2022, 1:21pm UTC](https://discourse.julialang.org/t/error-in-running-a-tutor-model/76405/2 "2022-02-14T13:21:43Z")

</div>

I think this is because you used the example of the current stable JuMP v0.22.3, which does not match your installed version. The same example for v0.21.10 is [here](https://jump.dev/JuMP.jl/v0.21/tutorials/Mixed-integer%20linear%20programs/urban_plan/). You could try the latter example, or to update JuMP.

---

<div class="post-metadata">

**Author:** ![tonyhur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tonyhur/32/22732_2.png) [@tonyhur](https://discourse.julialang.org/u/tonyhur)\
**Post date:** [February 14, 2022, 5:33pm UTC](https://discourse.julialang.org/t/error-in-running-a-tutor-model/76405/3 "2022-02-14T17:33:20Z")

</div>

Thank you Mike. That was the case. I wasn’t aware that for the v.021 there is also a version of the tutor.
