How can I formulate the following conditional constraint to a linear constraint using indicator variables? Please note that all variables are continuous and $c \ge 0$
$\text{1: if} \ c=0 \ \& \ w \geq 0 \quad \text{then} \; u=w; d=0\\ \text{2: if} \ c=0 \ \& \ w < 0 \quad \text{then} \; u=0; d=0\\ \text{3: if} \ c > 0 \ \& \ w \geq c \quad \text{then} \ u=w-c; d=0 \\ \text{4: if} \ c>0 \ \& \ w<c \quad \text{then} \ d=0, d=c-w\\$
The decision variables d and u are directly appeared with a negative and positive coefficients in the objective function. Also, the abs of coefficient d is greater than the coefficient of u $(e.g. -40 d + 30 u)$. Therefore, the following constraint satisfies conditions 1,3 and 4.
$c-w - d + u = 0;\\ c, d, u \geq 0;\\$
Nevertheless, I am still wonder how to include condition 2 as a linear constraint in my model.