Marika Karbstein
Gurobi Staff Total activity 419
 Last activity
 Member since
 Following 1 user
 Followed by 1 user
 Votes 1
 Subscriptions 208
Comments
Votes on activity by Marika Karbstein
I think there is no direct way. You can get the Indicator constraint via GRBModel.GetGenConstrIndicator Optimization then get the value of the linear expression (lhs) with GRBLinExpr.Value and comp...

One additional remark: 3. Also I don't know why there are 300 binary variables, because I already removed all binary vanribles I added to reduce calculation time Did you remove the variables comp...

Hi Yuri, To identify the RHS and the LHS of the constraint, you need to reformulate the constraint such that all variables are on the lefthand side and all constants are on the righthand side. Re...

The problem is that you want to add a multilinear term.Please have a look How do I model multilinear terms in Gurobi?

You defined an unbounded model that is detected to be unbounded in the root relaxation.During presolve a solution is checked in your callback for feasibility. That's why you see the output of lazy ...

Hi Kasoer, Your timeBigMconstraints are also defined if j is the depot, this makes the model infeasible. Cheers, Marika

You could also check the Model Attributes, for example, MaxRHS. The threshold for the warning is 1e+09 for rhs, bounds, and obj coefficients. It is 1e+08 for matrix coefficients.But we recommend t...

Hi Josh, Using gurobipy the default lower bounds for the variables are 0, see Model.addMVar().If you change the lower bound for the D variables to Infinity, the model becomes feasible. Cheers,Marika

Maybe you could start with rather lax bounds and then try to improve them similarly as it is done in this Python example gc_pwl_func.py

As already noted exponential and logarithmic functions are handled via piecewiselinear approximation. All pieces have equal width and this could lead to large approximation errors if, for example,...