
Yutian He
- Total activity 25
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 2
- Subscriptions 7
Activity overview
Latest activity by Yutian He-
Yutian He created a post,
Gurobi solving SOCP problem
Awaiting user inputHi, I'm using Gurobi to solve an SOCP problem and have tried two different formulations. In the first approach, I define the constraint directly as follows: m.addConstrs(v[k,q,i,h]**2- (4*(1 + 1) *...
-
Yutian He commented,
Hi Riley, That works! Thank you so much! Best regards, Yutian
-
Yutian He created a post,
Gurobi Constraints - 'gurobipy.LinExpr' object has no attribute 'shape'
AnsweredHi, I'm working on an optimization problem in Gurobi where x and pi are the only variables. However, when defining the following constraints, I encountered the error: "'gurobipy.LinExpr' object has...
-
Yutian He commented,
Thank you so much Eli, that works!
-
Yutian He commented,
Got it! Thank you so much.
-
Yutian He created a post,
Model too large for size-limited license
AnsweredHi, Thank you so much for your continued help. I tried to solve a large model with Gurobi and I got the error said the model is too large. Then I applied for a WLS license and click the link https:...
-
Yutian He commented,
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,...
-
Yutian He commented,
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...
-
Yutian He commented,
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...
-
Yutian He commented,
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...