Qiru MA
- Total activity 8
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 2
- Subscriptions 2
Activity overview
Latest activity by Qiru MA-
Qiru MA created a post,
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...
-
Qiru MA commented,
Hi Simranjit, Problem solved. As a novice for Gurobi, I appreciate your help. Best, Qiru
-
Qiru MA commented,
Hi Simranjit, Thanks for your reply. I consider this transformation brilliant. However, when I modify the code and rerun it, the following error occurs: MODEL.addConstr(b[2]*e1 + b[4]*e2 + b[7]*e3 ...
-
Qiru MA created a post,
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...