Eli Towle
Gurobi Staff- Total activity 1339
- Last activity
- Member since
- Following 0 users
- Followed by 4 users
- Votes 3
- Subscriptions 524
Comments
Votes on activity by Eli Towle-
You can find examples of how to set parameters for each API in the Parameter Examples section of our documentation. E.g., in Python: import gurobipy as gpm = gp.Model()m.Params.LogToConsole = 0 To ...
-
As the error suggests, Gurobi doesn't support dividing by variables. For more information, see What types of models can Gurobi solve?. You could model this problem by introducing a few auxiliary va...
-
The syntax \( \texttt{model.params.NonConvex = 2} \) is correct if you are directly using Gurobi's Python API. In this case, \( \texttt{model} \) would be a Model object. Pyomo is a third-party API...
-
Hi Ouafa, The value of the root relaxation is completely dependent on the formulation given to the solver. It's nice to have a root relaxation value that is as close as possible to the true optimal...
-
In the mathematical formulation of constraint \((4)\), constraints are added for all \( \ell = 2, \ldots, d_k \). However, your implementation adds constraints for all \( \ell = 1, \ldots, d_k \). ...
-
Still, it would be interesting to know how this can lead to a lazy constraint not being considered? Could you provide any additional information to get a deeper understanding of what's going on? ...
-
Gurobi supports indicator constraints, which allow you to add constraints of the form $$(\textrm{binary variable} = 0 \textrm{ or } 1) \implies (\textrm{some linear constraint}).$$ So, we only need...
-
These are the only nine feasible solutions that Gurobi found. The final solution found by Gurobi is an optimal solution (subject to your optimality tolerance of 0.5%), but there are no guarantees o...
-
While searching for an optimal solution, Gurobi often finds other (suboptimal) solutions along the way. These could be obtained via branching or heuristics. In your case, Gurobi found not only the ...
-
Assuming \( x \) is an integer variable, we can model \( y = x \bmod 4 \) as follows: $$\begin{align*}x &= 4u + y \\ 0 &\leq y \leq 3 \\ u, x, y &\in \mathbb{Z}.\end{align*}$$ Because \( y \in \{0,...