Assume that $x$ and $y$ are $n \times 1$ and $m \times 1$ vectors and we have a set of affine functions $f_i(x)$, $i=1,\ldots,N$, and $g_j(y)$, $j=1,\ldots,M$. We want to solve the following optimization problem:
\begin{align} \min_{x,y} &\Big(\max_{i=1,\ldots,N} f_i(x) + \max_{j=1,\ldots,M} \big(a_j^T \max\{0,1-x\}+ g_j(y)\big) \Big) \\ & Cx \leq d \\ & x \in [0,1]^n \\ & y \in [0,1]^m \\ \end{align} where $C$ and $d$ are a matrix and a vector with appropriate dimensions and $a_j$'s are positive. How can we solve this? Is there any way to write this problem as an LP?
Note that it can be shown that the objective is convex function of $x,y$. If we cannot convert it to an LP, we can try to solve it as a convex optimization problem, but taking derivate of the objective function is not easy. Any idea?
If I follow the idea mentioned in this post, the above problem can be written as: \begin{align} \min_{x,y,z,v}\quad &z +v \\ & Cx \leq d \\ & x \in [0,1]^n \\ & y \in [0,1]^m \\ &z\geq f_i(x),\quad i=1,\dots,N\\ &v\geq a_j^T \max\{0,1-x\}+ g_j(y), \quad j=1,\dots,M. \end{align} It is almost in LP form except for the last set of constraints. Can we use define $w= \max\{0,1-x\}$ and write the last set of constraints as $v\geq a_j^T w+ g_j(y)$, $w \geq 0$, $w \geq 1-x$?