Hi,
I'm trying to get more familiar with the Gurobi interface in Python. I'm at a total loss why I get an error.
I have tried running some of the example files which are given in the <installation_path>/examples/python/ folder, without any problems, which leads me to think my installation was succesful.
However, as I try the following Python script:
from gurobipy import *
m = Model("Feasible schedule")
x = m.addVars(2,3)
I get the following error message:
AttributeError: 'gurobipy.Model' object has no attribute 'addVars'.
However, changing the code to:
from gurobipy import *
m = Model("Feasible schedule")
x = m.addVar(1)
gives me no issues whatsoever. What's happening?