In convex optimization,
$$ g=\underset{y\in C}{\mathop{\sup }}\,f(x,y) $$
where $f$ is convex in $x$ for each $y$, $y$ is belong to $C$.
we know that $g(x)$ is convex in $x$
I have two questions which are associated each other
what should $C$(set of $y$) satisfy condition for $g$ is convex of $x$
In case of $g=\underset{y\in \{y\left| y\le h(x)\} \right.}{\mathop{\sup }}\,\,\,f(x,y)$ , this $g$ is also convex????