I am having trouble linearizing the following logical constraints.
$x,y,z$ are non negative continuous variables such that $x=y+z$, and $A$ is a positive parameter. I would like to linearize $$ y= \left\{ \begin{array}{ll} x & \mbox{if } x \le A \\ A & \mbox{otherwise} \end{array} \right. $$ and $$ z= \left\{ \begin{array}{ll} 0 & \mbox{if } x \le A \\ x-A & \mbox{otherwise} \end{array} \right. $$