jingwei xie
- Total activity 8
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 2
- Subscriptions 2
Posts
Recent activity by jingwei xie-
The index() function doesn't work well with gurobi variable
AnsweredI write a demo for the situation: import gurobipy as gpfrom gurobipy import GRBm = gp.Model()x = m.addVars(2, 3)m.update()L = [x[i, j] for i in range(2) for j in range(3)]print(L.index(x[0, 1])) ...