Alvaro Torres
- Total activity 5
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 1
Activity overview
Latest activity by Alvaro Torres-
Alvaro Torres commented,
ok im so sorry for the dumb question, found out all i had to do is take out the 3 in the second constraint and substitute by a 2 since both statements were triggered with a x[2] == 3, thank you so ...
-
Alvaro Torres commented,
this is how i applyed it: eps = 0.0001M = 5 + epsxb = m.addVar(vtype=gp.GRB.BINARY)m.addConstr(x[2] >= 3 + eps - M * (1 - xb))m.addConstr(x[2] <= 3 + M * xb)m.addConstr((xb == 1) >> (x[1] >= 4))
-
Alvaro Torres commented,
Thanks for the suggestion! I did read that one previously, and all the documentation i could find in gurobi, but it showed a result which differs with the one i need in the sense that: 1- it is con...
-
Alvaro Torres created a post,
conditionally apply constraints in optimization problems
AnsweredIm working on a problem and chose guroby as a tool for it, however i am going through an issue. I want to apply a constraint if and only if one of the variables exceeds a certain threshold. Variabl...