I am interested in studying the following problem: \begin{align} \sup_{\mu \in \mathcal{D} } \int_{\mathbb{R}} f(x) d\mu(x) \end{align} where $\mu$ is a probability measure. Assume that $\mathcal{D}$ is closed, covex and compact (in weak^{*} topology).
We know that if $f(x)$ is continuous and bounded then $\mu \to \sup_{\mu \in \mathcal{D} } \int_{\mathbb{R}} f(x) d\mu(x)$ is a continous functional and \begin{align} \sup_{\mu \in \mathcal{D} } \int_{\mathbb{R}} f(x) d\mu(x)&=\max_{\mu \in \mathcal{D} } \int_{\mathbb{R}} f(x) d\mu(x), \text{ this steps is due to contintinuity,}\\ &=\max_{\mu \in \text{Extrem Points of} \mathcal{D} } \int_{\mathbb{R}} f(x) d\mu(x), \text{ this step is due to linearity of the functional,}\\ \end{align}
My question: Now, assumes that $f(x)$ is continuous and positive but not bounded from above. So, we can not claim that $\mu \to \sup_{\mu \in \mathcal{D} } \int_{\mathbb{R}} f(x) d\mu(x)$ is a continous functional.
However, can we still say that
\begin{align} \sup_{\mu \in \mathcal{D} } \int_{\mathbb{R}} f(x) d\mu(x)=\sup_{\mu \in \text{Extrem Points of} \mathcal{D} } \int_{\mathbb{R}} f(x) d\mu(x), \end{align}
from the linearity?
The example I have in mind is $f(x)=x^2$.