Xinyi Xie
- Total activity 9
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 2
- Subscriptions 2
Posts
Recent activity by Xinyi Xie-
Adding conditions to quicksum
AnsweredHello, I'm trying to build this equation using "quicksum", but it never works. How should I fix it? I=[1,2,3,4,5] model.addConstrs((gp.quicksum(N[i] for i in range(1,i0+1))<=10 for i0 in I),name="C...
-
how to formulate a "if- then" with Non-binary variable as condition
Answeredsince addGenConstrIndicator works if its condition is a binary variable. how can we formulate "if x1+2*x2-x3>=2 then z=1" in this case?