I have an integer program with binary variables $x_{i,j,k}\in \{ 0,1 \}$.
For all $k$, I have that $\sum_i \sum_j =2$. I want to add a constraint that says if $x_{i_0,j,k}$ is equal to $1$ for some $i_0$ and a fixed $j$ and $k$, then $x_{i_1,j,k}$ must also equal to $1$ for some $i_1\neq i_0$ for the same fixed $j$ and $k$.
I'm unsure how to write this constraint, none of my ideas seem to get it right. Any ideas are welcomed and appreciated.