Silke Horn
-
Gurobi Staff
- Total activity 369
- Last activity
- Member since
- Following 0 users
- Followed by 1 user
- Votes 7
- Subscriptions 183
Comments
Recent activity by Silke Horn-
Hi, There are a few issues in your code: I assume that the lines that add the constraints "constraint1" and "constraint2" should read "for TT in set_T" and the closing parantheses should be put aft...
-
Hi, I can see multiple issues with your code, none related to getVars. Model takes no "sense" argument. It looks as though you there is some copy&paste issue in your loop. (Did you paste your loop...
-
Hi and welcome to Gurobi! You can only use one callback function, but this function can do multiple things. (So this should not be any limitation.) Could you elaborate what you would want to do in ...
-
This log says that your model is infeasible (not unbounded). Does your variable x take the value 0 in the solution of the model where the lower bound for x is 0? This would then probably mean that ...
-
Could you please show a complete code sample?
-
You can call getValue on the A[s]. E.g. for s in range(2): print(A[s].getValue()) Note though that you first need a solution for this. I.e., you should first call optimize on your model.
-
Which are the expressions for which you want to get the values? Please note that you are using the variable name s twice (in the outer loop and in the loop inside quicksum) while i will be undefine...
-
Could you give us some more information about what exactly you are trying to do and what you need help with? Do you need help getting the values? (Both LinExpr and QuadExpr have a getValue method.)...
-
I assume you have multiple versions of Gurobi (and hence grbgetkey) installed. Either remove the old version or make sure the latest one comes first in your PATH. The command "which grbgetkey" shou...
-
We do not recommend modifying the presolved model (since, as you noticed yourself, you cannot access the mapping back to the original model). Why can't you fix the variables in the original model?