mmc hee
- Total activity 3
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 1
Posts
Recent activity by mmc hee-
HELP: How to transform the continuous variable matrix x into binary variable x', and then create constraints about the summation of x' ?
Answeredsuch 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?