How to ensure that the solution to an optimisation problem is a probability distribution?
For example, assume we minimise over a distribution $p$. We must ensure that $\int p(x) \,dx=1 $.
But why don't we also have to ensure (e.g. in the Lagrangian) that $p(x) \geq 0$?