Xinyi Xie
- 合計アクティビティ 9
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 2
- サブスクリプション 2
アクティビティの概要
Xinyi Xieさんの最近のアクティビティ-
Xinyi Xieさんがコメントを作成しました:
I seem to have solved this problem for example: I_1 = [1,2,3,4,5]I = [2,3,4,5]N = model.addVars(I, vtype=GRB.BINARY, name="N")F = model.addVars(I_1, vtype=GRB.BINARY, name="F")model.addConstrs(N[i...
-
Xinyi Xieさんがコメントを作成しました:
another question, because I previously attempted to write this way by: model.addConstrs((N[k]>=F[k]-F[k-1] for i in range(k-1,k) for k in I),name="Constr2") and error is name 'k' is not defined A...
-
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...
-
Xinyi Xieさんがコメントを作成しました:
thank you
-
Xinyi Xieさんが投稿を作成しました:
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?