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 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 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 Burcu, this article should be of help. I would also recommend that you do add some meaningful names to your constraints. This way, it will be easier to analyze the IIS. You should also try gener...
-
Hi Qiru, as discussed here, indicator constraints require binary variables as indicator variables. You may need to add an auxiliary binary variable to represent the relationship between \( E_i \) a...
-
We then need more information. There could be many sources of the difficulties you see. What is the mathematical model you are trying to optimize? Which parameters did you already specify? Best reg...