Let $(g_i)_{i\in I}$ be a family of convex functions on a convex compact set $\Omega\subseteq \mathbb{R}^d$. We will show that the sup of this family is convex. We will use the standard definition of convexity.
Let $g:=\sup_{i\in I} g_i$.
Take $x,y\in\Omega$ and $t\in[0,1]$.
Fix $i\in I$.
Since $g_i$ is convex and bounded above by $g$, we have
$$
g_i(tx+(1-t)y)\leq tg_i(x)+(1-t)g_i(y)\leq tg(x)+(1-t)g(y).
$$
Since the latter holds for every $i\in I$, we can take the sup and find
$$
g(tx+(1-t)y)\leq tg(x)+(1-t)g(y).
$$
This holds for every $x,y\in \Omega$ and every $t\in[0,1]$.
So $g$ is convex.
Now every affine function $f_i$ is convex, so the result follows from the general case above.
Geometrically? A function is convex iff its epigraph is convex.
See here for a definition of the epigraph.
It is clear that the epigraph of $\sup g_i$ is the intersection of the epigraphs of all the $g_i$.
Now the intersection of convex sets is convex, which yields a more geometric proof of the statement above.
$$ g(x) = \sup {g_i(x) \mid i \in I, x\in \mathrm{dom}, g_i }
$$
So, for every $x^0$, I include only the $g_i(x^0)$ value when the function is defined at $x^0$, like to say that, if a function is not defined at point, then the function does not exist there and so no value is (can be) included in the set.
Another possibility is to assume the function is $+\infty$ when not defined. I don't know if there is some established convention ruling out these options.
– antonio May 26 '13 at 18:49I see often notations like $\sup\limits_{i\in I} f_i$ or $\sup\limits_{y\in A} f(x,y)$ without a definition. Can you address me to a formal definition?
– antonio May 26 '13 at 19:20