I've been stuck on formulating this logical constraint for a while. What I'm trying to translate into an integer constraint is:
if x1i + x2i + x3i is equal to 3, then yi is equal to 1, else yi is equal to 0.
I found out this kind of works:
x1i + x2i + x3i >= 3*yi, but in the case where x1i + x2i + x3i is equal to 3, then yi can take on values 0 or 1. I just want it to be strictly one in this case.
Any insights would be greatly appreciated.