
Jonasz Staszek
- Total activity 306
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 14
- Subscriptions 125
Comments
Recent activity by Jonasz Staszek-
Hi Alessandro, take a look at my post from 16.04 above. I suggest there how to write separate .sol file for each of your optimization runs. For your convenience, I will paste it again. The followi...
-
Hi Alessandro, I am uncertain as to how to help you further here. If you need to check all the combinations, you can use three for loops, for example in the following fashion: alfas1 = [0,5,10,15]a...
-
Hi Ashraf, you can perhaps solve this challenge the following way: 1. We need to add two binary indicator variables per case. One of them will denote the "less than or equal" case, while the other ...
-
Hi Alessandro, thanks for the clarification. Assuming your Gurobi model is properly defined as model, there are several approaches you could try: 1. If you need only optimal values for your sensiti...
-
Hi Alessandro, you would need to use some of Gurobi's APIs to encode the model which you pasted. Then, you could use a loop to change the values of alfa1, alfa2 and Beta in your objective function ...
-
Hi Heena, assuming that both lmd and lambd are properly defined as Gurobi variables you can set your first objective exactly the way Jaromił did in the previous post: lm.setObjective(1253.8051344 -...
-
Hi Heena, based on the code snippet you shared it is difficult to figure out what could be going wrong. Could you please share a minimal reproducible example? The error itself to me would suggest ...
-
Hi Jonas, after a brief look into the documentation, I believe that instead of adding variables per model.addMVar, you should add them per model.addVar or model.addVars and store them in a tupledic...
-
Hi Celine, Re 1: You can do that with help of a counter variable. You'd need to define it before your while loop, and then increase it by one every time you call mdl.optimize(). Re 2: This can be a...
-
Hi Jose, as far as I know, each gp.Model() is a separate object in Python, and hence, it will contain all the constraints and variables which were added to it. If your models are not too big, you c...