I am looking for a constraint to express the following:
IF W1 = 0 AND W2 = 0 THEN Y = 1
IF W1 = 0 AND W2 = 1 THEN Y = 1
IF W1 = 1 AND W2 = 0 THEN Y = 0
IF W1 = 1 AND W2 = 1 THEN Y <= 1
Variables W1, W2, Y are binaries. Y is determined by the aforementioned relations. So, I am looking for an expression Y(W1,W2) = ???