Qiru MA
- Total activity 8
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 2
- Subscriptions 2
Posts
Recent activity by Qiru MA-
Adding conditional constraints to the model
AnsweredI have trouble with implementing the conditional constraint: # when E_i[i] == m, we want to let G_i_m[i, m] == 1# when E_i[i] != m, we want to let G_i_m[i, m] == 0 I got this error: gurobipy.Gurobi...
-
Got error when using the variable as the index for accessing another new variable
AnsweredIt seems that I use the variable as the index for accessing another new variable. But I don't know how to solve it. Thanks for your help. import gurobipy as gbMODEL = gb.Model()e1 = MODEL.addVar(vt...