I have an optimization problem and I want to convert the following if conditions to linear constraints:
If $(y_1 > U_1)$ and $(m_1)$ and $(E_1)$ then $x_1=1$
If $(y_2 > U_2)$ and $(m_2)$ and $(E_2)$ then $x_2=1$
If $(y_1-U_1) \geq (y_2-U_2)$ and $(x_1)$ then $X_1=1$ elseif $(x_2)$ then $X_2=1$
Where $x_1, x_2, X_1, X_2 \in \{0,1\}$ are binary variables, $y_1,y_2$ are positive real decision variables, $m_1,m_2,E_1,E_2 \in \{0,1\}$ are binary parameters and $U_1, U_2$ are parameters.
Can anybody help me to convert these conditions to linear constraints?