A variational problem determined by probability measures. (2nd January 2019)