mmc hee
- 合計アクティビティ 3
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 0
- サブスクリプション 1
アクティビティの概要
mmc heeさんの最近のアクティビティ-
mmc heeさんがコメントを作成しました:
oh, i've got a solution: create y as a binary MVars and x = bigM * y y.sum() >= 5
-
mmc heeさんが投稿を作成しました:
HELP: How to transform the continuous variable matrix x into binary variable x', and then create constraints about the summation of x' ?
回答済みsuch as I have a MVars x = [x1,x2, x3, x4] i want create a constraint like: np.where(x>0, 1, 0).sum() > 5 , actually, i hope the count of nonzero vars must >= 5 How can I linearize this constraint?