I'm trying to linearise these constraints, but I am not able to do correctly do it.
$$y_t = \max\{ y_{t-1} + a_t - z_t, 0 \} $$
My attempt was this:
\begin{align}y'_t &\geq a_t - z_t\\y'_t &\geq y^{'}_{t-1} + a_t - z_t \end{align}
Am I correct?
Additionally, I wanted to linearize this constraint: $$y_t = y_{t-1} + a_t - z_t + \min\{ y'_{t-1} + a_t - z_t,0 \}$$
This one I am clueless on. I will appreciate if anyone could please give any leads on this.