Search code examples
juliajupyterjulia-jumpijulia-notebook

UndefVarError: Model not defined


How should I fix the following error?

Pkg.add("JuMP")
Pkg.add("Clp")
m = Model()

and I get the following error:

LoadError: UndefVarError: Model not defined
while loading In[4], in expression starting on line 1

Solution

  • You should use using JuMP before calling m=Model()