
Maliheh Aramon
- Total activity 290
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 122
Comments
Votes on activity by Maliheh Aramon-
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 Wei, I just tested this by running the example problem \(\texttt{mip1.m}\) in MATLAB R2021b on macOS and I was able to save the log file. I explicitly set the \(\texttt{params.logfile}\). Do you...
-
Hi Kim, Your code is a bit complicated and I cannot read through it easily. As far as I understand, you are trying to implement the following mathematical model: Notation \(G = (V, E)\): A graph ...
-
Hi Jochem, One possible idea to debug this behaviour is to solve the first model with the optimal solution of the second model. Given your explanation, the first model should result in infeasibilit...
-
Hi Ilya, The parameters ImproveStartGap, ImproveStartNodes, and ImproveStartTime trigger solution improvement strategies where the Gurobi Optimizer only focuses on improving the incumbent to find ...
-
Hi Ahmad, After setting the parameter SolutionNumber to the \(i\)-th best solution, the value of each variable can be accessed by querying the attribute Xn and not X (this attribute always reports...
-
Hi Hadi, You can define a Gurobi quadratic expression object (GRBQuadExpr) and iterate through the terms in the GRBLinExpr object already defined and multiply each term by the binary variable \(...
-
Hi Taylor, Problem constraints define the feasible search space and the order by which you implement them does not matter. The two implementation above are the same. Can you please elaborat...
-
Hi Jose, No, you cannot. The Var.setAttr() method sets the value of a variable attribute. The GRB.Callback.MIPSOL_OBJBND is not an attribute of a Var object. It is a piece of information that can...
-
Hi WI, You need a few changes. Please see below. import gurobipy as gpfrom gurobipy import GRBfrom math import sqrtif __name__ == "__main__": model = gp.Model("name") Var = model.addV...