Jonasz Staszek
Community Moderator- Total activity 309
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 16
- Subscriptions 126
Comments
Votes on activity by Jonasz Staszek-
Hi Jose! Gurobi staff will be better positioned to answer whether the target path can be changed inside of model.write() method, but - as a workaround - you can use Python's standard shutil package...
-
Hi Yonghyun, this will depend on the Gurobi API you choose. I assume that A, B, C, D are Gurobi integer variables. Now, to retrieve their values, you must have successfully optimized first, as othe...
-
Hi Yunfan, I assume you use Python API. Based on your inputs, I would imagine the following code to work: import gurobipy as gpmodel = gp.Model()# define K, C, I and xfor k in K: for c in C: ...
-
Hi Renata, based on your inputs it is difficult to tell what could be going wrong. Could you show us at least a minimum working example of your code? Best regardsJonasz
-
This question is better suited to Gurobi staff. From my own experience, the variables which may only assume one value are removed in the presolve and hence reduce the search space. The more variabl...
-
Hi! This can be efficiently done in two ways: 1. Add a constraint and set a variable to zero: model.addLConstr(x[n,m] == 0) By the way, you can sum all the variables you want to be fixed to zero o...
-
Hi Donovan, to my judgment, you used many of the available parameters which could improve the performance. You could also play with the Cuts parameter to let Gurobi add them more aggressively (e.g....
-
Hi Pratim, based on this article in the Gurobi Support portal, it would appear to me that the callback is run every time a new integer feasible solution is found. Perhaps someone from Gurobi Suppor...
-
Hi Ye, 1. MIN, MAX Constraints: you are looking for a min_ constraint, as described here. There are also max_ constraints, described here, which generally work similarly. Assuming that you have def...
-
It seems to me that you would need to reformulate your model somehow. Perhaps this other thread will be of help.