Xinyi Xie
- 合計アクティビティ 9
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 2
- サブスクリプション 2
投稿
Xinyi Xieによる最近のアクティビティ-
Adding conditions to quicksum
回答済みHello, 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
回答済みsince 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?