Hussein Sharadga
- Total activity 54
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 15
- Subscriptions 16
Posts
Recent activity by Hussein Sharadga-
Optimality proof when limited computation time
AnsweredHi Gurobi Community! Suppose I have a limited time to solve a big MILP problem. Gurobi Consume 510 seconds to prove the optimality and then 200 seconds to find the solution using branch and bound a...
-
Does Gurobi take advantage of the problem structure?
AnsweredDoes Guroib take advantage of the problem structure? I am working on a large optimization problem with more than 40,000 binary variables and huge number of constraints. below is only one of the con...
-
How to use computeIIS to find the constraint or the bound that is the source of the infeasibility?
AnsweredAfter I use the following command: m.computeIIS()m.write("m.ilp") how to figure out which constraint was the source of the problem? Please see the lip file below: I have a big model and I even do n...
-
What is the difference between quadratic expression and quadratic constraint for gurobi?
AnsweredHi Gurobi Community. What is the difference between quadratic expression and quadratic constraint for gurobi? For quadratic constraint, I need to set the nonconvex parameter to 2 for gurobi to solv...
-
GurobiError "Constraint has no bool value" is fixed by flipping the constraint.
AnsweredIn the following code: x is constant, and B is the optimization variable. I have the following constraint.\[x<=sum(B)\]This constraint is the source of the problem.If I flip it as follows, the prob...
-
Quadratic equality constraints are non-convex: x^2 destroys the convexity
OngoingHi! I tried to solve a problem with the following objective function: \[\min\ x^2-0.6x+M|x^2-x|\] \[0<=x<=1\] M=10import gurobipy as gpm=gp.Model()x=m.addVar(vtype='C',lb=0,ub=1)aux=m.addVar(vtype...
-
Maximizing convex function
AnsweredHi! I believe convex optimization means to find the minimum of a convex function or the maximum of a concave function ( maximum of a concave function == minimum of -concave function, -concave funct...
-
A huge number of Equality constraints
AnsweredHello! What is the best way to Handel a huge number of equality constraints like the two constraints given here? The model is infeasible. The model will solve if I replace the equality sign by "<="...
-
Max Function
AnsweredI have an issue using max function in Gurobi. I know that np.max (np is for numpy) will not work fine. I learned that I should use the max_ function of gurobi and add some auxiliary variables but I...
-
The solution returned by GUROBI is not optimal
AnsweredI try to solve my Optimization problem using Gurobi in Python but the answer does not make sense. I solve the problem using MATLAB CVX library with MSOEK solver to get an answer (solution should be...