Maliheh Aramon
Gurobi Staff Total activity 323
 Last activity
 Member since
 Following 0 users
 Followed by 0 users
 Votes 0
 Subscriptions 135
Comments
Recent activity by Maliheh Aramon
Hi Thalles, I think you are mapping the blocks and the years to the items and knapsacks, respectively. In the solution you shared, we have x[1, 2] = 1 and x[5, 2] = 1 meaning that both items 1 and ...

Hi Pavithra, Let values be the list of the elements, (5, 10, 15, 20, 21) in your example. You can just write: d = tupledict([(("Type A", "Time period 1", index), value) for ...

Hi Maik, Copying your snippet in Python gives me a different error message: gurobipy.GurobiError: Variable has not yet been added to the model The reason is that the sum is over \(\texttt{di...

Hi ChengLung, The user cuts are expressed with respect to the decision variables of the original model. Setting the PreCrush parameter to 1 shuts off a few reductions to allow the presolve to re...

Hello Thalles, You would need to rewrite the constraint to ensure that if item 1 is assigned, items 4 and 5 must be assigned to a knapsack with a higher index value. Continuing with your notatio...

Hi Thalles, I do not see in your code snippet how you are defining \(\texttt{items}\) and \(\texttt{knapsacks}\) variables. I am assuming that they are lists of item and knapsack strings.We need to...

Hi Yudi, As long as you do not call the model.reset() method before adding the new variables and constraints, the next call to the model.optimize() method will have access to all the information t...

Hi Kazi, Changing the variable type to integer results into the exact same solution. It means that even you allow for opening of more than one depot at each location, the solution with the optimal...

Hi Bahareh, To better answer your question, let us make things a bit simpler. The gist of the question is how to model terms such as \(yx\) in the objective function where both \(y\) and \(x\) are...

Hi Sophie, Yes, you are correct. There are different mechanisms embedded in Gurobi to find incumbent solutions and there is no guarantee that these heuristic solutions are LPoptimal given the fixe...