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...

Hi, is there any particular reason you load Gurobi by from .gurobipy import * ? Normally one would expect to load it like this: from gurobipy import * If this doesn't help, please let us know, addi...

Hi Sanket, I am not sure I got your question right. Let's start from the easier part: if you want to query the value of any variable during the optimization process, you should use a callback. Coul...

Hi Sanket, Generally speaking, Porta and Polymake can guide you towards finding strong, potentially facetdefining inequalities for your problem. The best way you could benefit from using Porta or ...

Dear Sanket, you should turn to some other software package, e.g. Porta or Polymake to perform polyhedral analysis (i.e. to get a description of the convex hull you look for) As far as I know the t...