Error in running a tutor model

I’m trying to run the “urban planning problem” at

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

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. You could try the latter example, or to update JuMP.


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

1 Like