
Jonasz Staszek
-
Community Moderator
- Total activity 306
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 14
- Subscriptions 125
Comments
Votes on activity by Jonasz Staszek-
Hi Mustafa, could you please specify what is the difficulty you are dealing with? What is the model you are trying to implement? Which two outputs are you trying to extract from your objective func...
-
If you are interested in the time taken to find the optimal solution, you can use Python's built-in time module (if you are happy with clock time) - you store the time just before and after the mod...
-
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, 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...