Alvaro Torres
- Total activity 5
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 1
Comments
Recent activity by Alvaro Torres-
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 ...
-
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))
-
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...