0
$\begingroup$

This question already has an answer here:

I have a binary variable $y\ \epsilon\ \{0,1\} $ and a real $x$ which has the following boundaries $-100\leq\ x \leq\ 100$. How can I reformulate the following statement: $$ y = \begin{cases} 0 & \text{if $ x< 0 $ }\\ 1 & \text{if $x \geq0$}\\ \end{cases} $$

Your help would be much appreciated.

$\endgroup$

marked as duplicate by D.W. Apr 3 '18 at 21:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.