Fei Wang
- Total activity 21
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 8
- Subscriptions 4
Activity overview
Latest activity by Fei Wang-
Fei Wang commented,
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?
-
Fei Wang commented,
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 ...
-
Fei Wang commented,
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...
-
Fei Wang commented,
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...
-
Fei Wang commented,
Thanks! That's the method I am looking for
-
Fei Wang commented,
Hi Simran, Thank you very much! It solved my problem. I didn't know the default lower bound is zero,
-
Fei Wang created a post,
Gurobi seems not able to solve an SOCP problem to optimal
AnsweredI have the following second order cone problem as following ()I used model.write("myfile_test.lp") to output the model as following: \ LP format - for model browsing. Use MPS format to capture...
-
Fei Wang commented,
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 ...
-
Fei Wang created a post,
How to define a list of n tuples, each tuple contains 2 variables
AnsweredI want to define a list of n tuples, each tuple represents a point in a plane, so each tuple contains two variables, what gurobi API should I use? I am using Python For example, if n = 5, then my ...