Let $f: V\to \mathbb{R}$ be a linear function defined on some real vector space $V$.
It is known that, if $U$ is a convex and compact subset of $V$, then $f$ attains its maximum at some extreme point of $U$.
Suppose $U$ is a convex subset of $V$, but not necessarily compact. In this case, it is possible that $f$ does not attain its maximum in $V$. What can be said about the maximum point of $f$ in this case? Is it true that $f$ attains its maximum in a boundary point of $V$?