Originally posted by: Hans Kirchner
Hi, I'm currently trying out Python+Docplex and when I'm executing the following code it's gives me "status = integer infeasible".
But I think c must be 0 and this is clearly feasible, right?
from docplex.mp.model import Model
m = Model("test")
a = m.binary_var(name="a")
b = m.binary_var(name="b")
c = m.binary_var(name="c")
m.add_constraint(m.logical_and(a, b) == c)
m.add_constraint(a == 1)
m.add_constraint(b == 0)
if m.solve():
m.print_solution(print_zeros=True)
else:
print(m.solve_details)
Version Info:
- Python 3.6.8
- docplex 2.10.154
- CPLEX Studio 12.9 (academic)
#CPLEXOptimizers#DecisionOptimization