I have an if else condition as follows: If $g \ge 0$ then $e=1$, else $e=b$.
I formulated MIP constraints using big-M as follows where I am setting $\delta=1$ if $g \ge 0$:
\begin{alignat}2g &\ge -M(1-\delta)\tag1\\g &\le M\delta\tag2\\1-M(1-\delta) &\le e \le 1+M(1-\delta)\tag3\\b-M\delta &\le e \le b+M\delta\tag4\end{alignat}
My question is if the formulation is correct, especially the first equation.