A convex optimisation problem is of the form:
$$\begin{array}{ll} \text{minimize} & f(x)\\ \text{subject to} & g_i (x) \leq 0 \text{ for } i \in \{1,2,\dots,m\}\\ & h_i (x) = 0 \text{ for } i \in \{1,2,\dots,p\}\end{array}$$
where $f$ is a convex function, $g_i$ are convex functions, $h_i$ are affine functions and $x$ is optimisation variable. On page 8 of this paper by Zico Kolter (updated by Honglak Lee), it is written that:
Is it imporant to note the direction of these inequalities: a convex function $g_i$ must be less than zero. This is because the $0$-sublevel set of $g_i$ is a convex set, so the feasible region, which is the intersection of many convex sets, is also convex (recall that affine subspaces are convex sets as well). If we were to require that $g_i \geq 0$ for some convex $g_i$, the feasible region would no longer be a convex set, and the algorithms we apply for solving these problems would no longer be guaranteed to find the global optimum. Also notice that only affine functions are allowed to be equality constraints. Intuitively, you can think of this as being due to the fact that an equality constraint is equivalent to the two inequalities $h_i \leq 0$ and $h_i \geq 0$. However, these will both be valid constraints if and only if hi is both convex and concave, i.e., $h_i$ must be affine
Can somebody explain me this quote? My questions:
What is the feasible region?
Why would the feasible region not be convex if $g_i \geq 0$? Isn't a sublevel set of a convex function always convex?
What is being mentioned about the equality constraints of the affine set?