You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iv = intvar(1,2, shape=1)
bv = boolvar()
cons = [(Minimum([iv])!=1) == bv]
print(Model(cons).solveAll('ortools'))
print(Model(cons).solveAll('gurobi',solution_limit=3)) #more solutions according to gurobi
print(linearize_constraint(only_bv_implies(flatten_constraint(cons))))
cons = linearize_constraint(only_bv_implies(flatten_constraint(cons))) #its because of linearize (big m)
print(Model(cons).solveAll('ortools'))
Due to auxiliary variables being created on the rhs of an implication, the number of solutions can increase after linearize
The text was updated successfully, but these errors were encountered: