I am trying to use Gurobi’s MVar
class.
import gurobipy as gp m = gp.Model() v = m.addMVar((10,)) v.lb # raises GurobiError, index out of range...
Advertisement
Answer
Call
m.update()
before accessing lb
.
I am trying to use Gurobi’s MVar
class.
import gurobipy as gp m = gp.Model() v = m.addMVar((10,)) v.lb # raises GurobiError, index out of range...
Call
m.update()
before accessing lb
.