How to convert this one to a linear program:
if $x=1$ then $B=1$; otherwise, $B=0$.
If I use the Big M method: \begin{align}x&\ge1-M(1-B)\\x&\le1+M(1-B)\end{align}
A) with $B=1$: \begin{align}x&\ge1\\x&\le1\end{align} That is corresponding to $x=1$
B) with $B=0$: \begin{align}x&\ge1-M\\x&\le1+M\end{align} That is corresponding to any value of $x$ even $x=1$. How do I exclude $x=1$ when $B=0$?