
Yutian He
- Total activity 25
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 2
- Subscriptions 7
Comments
Recent activity by Yutian He-
Hi Riley, That works! Thank you so much! Best regards, Yutian
-
Thank you so much Eli, that works!
-
Got it! Thank you so much.
-
Hi Eli, Here is the minimal example I have for the quadratic constraint: b= array([0. , 0.125 , 0.14285714, 0.25 , 0.28571429, 0.375 , 0.42857143, 0.5 , 0.57142857,...
-
Hi Eli, Thank you so much, this worked! And I have a general question about model.write(). I usually get this comment called: Warning: Q constraint 0 doesn't have a name I tried addQConstr, but st...
-
Hi! I also got the same error here, I'm going to set this constraint: \sum_{i from 1 to m-1} ((b_{i+1} - b_i)*eta_i^2) <= nu. Could you please help me to check this? var_new = list(range(m-1)) var...
-
Hi Riley, m1.addConstr(pi_a1@vector_a1 == 1) This code works very well with the previous definition of the pi_a1, thank you! Now I have two questions: When I changed pi to the new definition you w...
-
Yes, that works! Thank you. And now I have a new question, since I want the constraints \sum_{i \in ma_1} pi_{ij} = 1 for every j \in ma_1. I wrote the constraint like this: for k in var_a1: exp...
-
Thanks for the quick reply. Here is the result.
-
Hi Riley, Thank you for the two-line code! You are right, looks like it is not what I want, I will check it later and give you more feedback. Thank you again!