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. http://www.juliaopt.org/MathOptInterface.jl/release-0.5/apimanual.html#A-complete-example:-solving-a-knapsack-problem-1
  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
[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: https://www.juliaopt.org/JuMP.jl/stable/quickstart/ (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!