
Xin Zhi
- 合計アクティビティ 8
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 1
- サブスクリプション 1
アクティビティの概要
Xin Zhiさんの最近のアクティビティ-
Xin Zhiさんがコメントを作成しました:
import pandas as pd data = { "Column3": [2, 56, 3, 3, 2, 6, 8, 8, 43, 32, 2, 3, 6, 34, 2, 6], "Y1": [1, -1, 1, 1, 1, -1, 1, -1, 1, 1, -1, -1, 1, 1, 1, -1], "Column4_Vars": [1, 1, 1, 1,...
-
Xin Zhiさんがコメントを作成しました:
Hi, Yes your understanding is correct, but I didn't design the numerical example such that it adds up. but it is what you described
-
Xin Zhiさんがコメントを作成しました:
so in the end I need to find X and Column4_Vars at the same time
-
Xin Zhiさんがコメントを作成しました:
Hi Ronald, Thanks a lot for your reply. My problem becomes more complicated than this. Since, Column4_Vars can take values in 1,2,3,4, in the end I have four subsets based on this problem. for exa...
-
Xin Zhiさんがコメントを作成しました:
-
Xin Zhiさんが投稿を作成しました:
Gurobi add an if condition
進行中The following is my code, what I wanted to add is that: indices named 'idx' such that column4 == 1, add constraint such that the sum([df.loc[i, "Column3"] * Y_actual[i] for i in idx]) == 6. The fo...