I need an approximation to maximum and minimum. Since the max and min are not differentiable I am looking for an differentiable approximation to it.
Does anybody know about it? for example I need to minimize the following:
[max (a - max_{x\in c}(x) )^2 + (a - max_{x\in d}(x) )^2]