Consider the following optimization problem: $$ \min_x \quad x^3 \quad \text{s.t.} \quad x\geq0 $$
We know that the objective function $x^3$ is not a convex function for $x\in\Re$. But we know that it is convex for $x\in\Re^+$
So my question is:
Can we define the above problem, a convex optimization problem?
To make it general:
Is it necessary for the objective function to be convex over its domain? or is it sufficient for the objective function to be convex only over the feasible set, in order to classify the problem as a convex optimization problem?
I have searched a lot for this question and everywhere,both on the textbooks and internet, the answer is that the objective function "MUST" be convex. But I think that we can consider these problems as convex.