File "/scratch/cjrodriguezf/enviroments/cycles/lib/python3.9/site-packages/cobra/core/model.py", line 1017, in variables
return self.solver.variables
File "/scratch/cjrodriguezf/enviroments/cycles/lib/python3.9/site-packages/optlang/interface.py", line 1239, in variables
self.update()
File "/scratch/cjrodriguezf/enviroments/cycles/lib/python3.9/site-packages/optlang/gurobi_interface.py", line 666, in update
super(Model, self).update(callback=self.problem.update)
File "/scratch/cjrodriguezf/enviroments/cycles/lib/python3.9/site-packages/optlang/interface.py", line 1464, in update
self._add_constraints(add_constr)
File "/scratch/cjrodriguezf/enviroments/cycles/lib/python3.9/site-packages/optlang/gurobi_interface.py", line 723, in _add_constraints
self.problem.addConstr(lhs, sense, rhs, name=constraint.name)
File "src/gurobipy/_model.pyx", line 3894, in gurobipy._model.Model.addConstr
TypeError: addConstr() takes at most 3 positional arguments (4 given)
Is there an existing issue for this?
Problem description
File "/scratch/cjrodriguezf/enviroments/cycles/lib/python3.9/site-packages/cobra/core/model.py", line 1017, in variables return self.solver.variables File "/scratch/cjrodriguezf/enviroments/cycles/lib/python3.9/site-packages/optlang/interface.py", line 1239, in variables self.update() File "/scratch/cjrodriguezf/enviroments/cycles/lib/python3.9/site-packages/optlang/gurobi_interface.py", line 666, in update super(Model, self).update(callback=self.problem.update) File "/scratch/cjrodriguezf/enviroments/cycles/lib/python3.9/site-packages/optlang/interface.py", line 1464, in update self._add_constraints(add_constr) File "/scratch/cjrodriguezf/enviroments/cycles/lib/python3.9/site-packages/optlang/gurobi_interface.py", line 723, in _add_constraints self.problem.addConstr(lhs, sense, rhs, name=constraint.name) File "src/gurobipy/_model.pyx", line 3894, in gurobipy._model.Model.addConstr TypeError: addConstr() takes at most 3 positional arguments (4 given)
Code sample
Code run:
Traceback:
Environment
Anything else?
No response