Jonasz Staszek
Community Moderator- Total activity 309
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 16
- Subscriptions 126
Comments
Recent activity by Jonasz Staszek-
Hi Krzysztof, I would suggest that you proceed in the way suggested by Juan. Perhaps the following code snippet will be an inspiration for you: for loc_a in locations: for loc_b in locations...
-
I would also add, to what Jaromił wrote, that your model is extremely large. I would suggest you reconsider the formulation of your model. Judging by the other questions you asked, I believe you a...
-
Hi Krzysztof, it would be much easier to help you, if you could also include a mathematical formulation of your problem. Also, two examples of input data, for which you get satisfactory and unsatis...
-
You can do that by looping over both your lists: x = gp.tupledict()for l in L: for r in R: x[l,r] = m.addVar(vtype="B", name=f"x_{l}{r}") The reasons why your code doesn't work can be fou...
-
Hi Zahra, as I wrote earlier, you cannot use Sympy objects as arguments to your objective function. Perhaps this: m.setObjective(r1 + r2, gp.GRB.MINIMIZE) is what you are looking for? Best regards...
-
Hi Zahra, first of all, I would suggest you post a minimal, reproducible example of the problem you are struggling with. Further, take a look at those two links (here and here). Perhaps they will g...