Fei Wang
- Total activity 26
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 9
- Subscriptions 5
Comments
Recent activity by Fei Wang-
Thank you for the answer. But I don't really understand, in my model all variables are continuous, even I added some norm constraints, they are still continuous (no integer variables in my model). ...
-
Hello Simranjit, Yes, my model is convex and continuous. In fact it is a second order cone optimization problem. I am solving this problem in a branch and bound algorithm, and I can always solve th...
-
Hello, It seems c = m.addConstr(lhs, sense, rhs, name) is no longer supported in the newest version of gurobi. What should I do to add back a constraint in this case?
-
Thanks Simran, It works. However in my code self.r is only 2. So this changes won't save a lot of time, in fact, the majority of the time is spent in adding those SOCP constraints. Constraints as ...
-
Hi Simran, Here is part of the code that’s very expensive. Most of the time is spent on adding the constraints especially the first and second for loops model = gp.Model()model.Params.LogToConsole...
-
I have another question: I found that adding the constraints to the model is the most expensive part of the codeSo it is this command model.addConstr() that is costing 90% of the time Since I am...
-
Thanks! That's the method I am looking for
-
Hi Simran, Thank you very much! It solved my problem. I didn't know the default lower bound is zero,
-
Hi Mario, Thanks for the answer, but I want to generalise it to define a vector which represent a point in r dimensional space, If I use this approach, I would have to modify the code to define z ...