I need an example of a function that is continuous on some interval $I$, has a local minimum but doesn't have a global minimum. In other words, the problem of finding the global minimum of that function on an interval $I$ yields no solutions.
Does the function $Sinx^2, I=[-1;2)$ meet that condition?