I have following convex optimization problem $$\text{min. }~~ x~\\ \text{s.t.}~~~\frac{y^2}{x}\leq z\\ y+z\leq c$$ where $\{x,y,z\}$ are the non-negative variables and $c$ is some positive constant. I think in the optimal solution both of the constraints should be active due to following reasoning.
1- Suppose that for the optimal solution we have $\{x^*,y^*,z^*\}$ and we consider the following possibilities
1a- First constraint is not active. Then we can decrease $x$ (hence reducing the objective function) to make the constraint active and hence $\{x^*,y^*,z^*\}$ is not the optimal solution.
1b- Second constraint is not active. In this case, we can increase $z$ to make the right hand side of first constraint bigger and subsequently we can reduce $x$ to reduce the objective function.
Based on above reasoning, I think, both of the constraints should be active. However, when I solve the above problem through cvx in MATLAB I see that the constraints are not active. Where am I wrong in my understanding. Thanks in advance.
Your reasoning is right. However, you have overseen that you can choose $y$ arbitrarily small when $x$ approaches 0. Therefore, the constraints will not be met with equality.
For example, you may choose $z=c/2, y = x/2$. Then assume $x$ goes towards 0.
Consequently, we have the solution $x^\star \rightarrow 0 $ of the optimization problem.