Alvaro Torres
- 合計アクティビティ 5
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 0
- サブスクリプション 1
コメント
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...