Jump code errors

Hi, I am new to Julia and I am having problems in running simple examples of Jump.
I have given links to two examples below:

  1. Manual · MathOptInterface
  2. https://nbviewer.jupyter.org/github/JuliaOpt/juliaopt-notebooks/blob/master/notebooks/Shuvomoy%20-%20Benders%20decomposition.ipynb

After a bit of googling, I found out that I have to replace “optimizer = GLPK.GLPKOptimizerMIP()” with “optimizer = GLPK.Optimizer()” in the first example. However, despite this I get the following error message: “UndefVarError: addvariables! not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at .\Base.jl:13
[2] top-level scope at In[13]:15”

Are there any examples from Jump which run with the latest version of Julia and Jump, particularly linear programming examples? I have not been able to run a single example

Hi there!

It seems you’ve found some old versions of the documentation.

Here’s the latest: Quick Start Guide · JuMP (You can get there from the documentation tab at https://jump.dev.)

If you’re interested in tutorials, you should check out: https://github.com/JuliaOpt/JuMPTutorials.jl

There are also lots of examples in the JuMP Github repository: https://github.com/JuliaOpt/JuMP.jl/tree/release-0.20/examples

Good luck!

Thank you for links to the updated documentation. I can now run all examples!