per-element vector multiplication with gurobipy
per-element vector multiplication with gurobipy Question: The last line of this code fails: A = np.random.rand(d, d)*5.0 b = np.random.rand(d)*10.0 m = gp.Model() x = m.addMVar(d, name=’x’) y = m.addMVar(d, name=’y’, vtype=gp.GRB.BINARY) m.addConstr(A@x <= b) m.addConstr(A@x >= y*b) // error occurs here on y*b It gives this error for gurobipy version 9.5.1: File "src/gurobipy/mvar.pxi", line …