Let $f \colon \mathbb{R}^n \to \mathbb{R}$ be a function that is convex in each coordinate:
$$ \forall i \in \{1, \dots, n\}. \forall x_1. \dots \forall x_{i-1}, \forall x_{i+1}\dots \forall x_n. f(x_1,\dots,x_{i-1},\cdot,x_{i+1},\dots, x_n) \text{ is convex} $$
Can $f$ have a local optimum that is not also a global optimum?
I already know that $f$ is not necessarily convex (consider, e.g., $f(x,y)=x \cdot y$). Therefore, I suspect that in general, $f$ may have local optimas. However, I could not find a counterexample so far ($x \cdot y$ has no optimum).