Jonasz Staszek
-
Community Moderator
- Total activity 302
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 13
- Subscriptions 124
Comments
Recent activity by Jonasz Staszek-
Hi Bikram, the documentation suggests that it is possible. In particular, the section titled "General constraint named components" should be of interest to you. Best regardsJonasz
-
I'm not sure I understood your challenge. If M1 and M2 were corresponding to various nodes, you could instead have them as on dict with a 3-tuples as keys, for example, the following way # for illu...
-
You're right, I just corrected the error. Best regardsJonasz
-
Hi Ce, re 1 and 2, this article should shed some light. You should switch to using .sol files, which also keep the value for continuous variables. Re 3, the following can be found in the documentat...
-
Hi Tiril, you would need two indices per variable for that - one for the commodity and the other one for the route. You implement it just like any other variable: import gurobipy as gpm = gp.Model(...
-
Hi Jingyue, could you please share a minimal reproducible example of the code which produces such an outcome?No need to attach any data, some hard-coded inputs will do. Best regardsJonasz
-
Hi Chao, if your model doesn't solve after this much time, it is most likely a very difficult one. To remedy this, you might want to reformulate it or seek other ways to strengthen its formulation....
-
Hi Yu, it is difficult to help you based on the information you provided. What kind of difficulty are you dealing with? Also, a minimal reproducible example would be helpful. Best regardsJonasz
-
Hi Jonas, The update method for C++ is documented here. You can certainly add multiple new variables and only update the model every now and then. You should actually avoid calling the update metho...
-
You could try expressing each of the affected t variables as \(t = 7*a + b\), with \(a, b\) being integers and \(b \in [0,6]\) Then, \(b\) is your reminder and you can use it in the constraint you ...