We review recent results on three families of minimization problems, defined on subsets of nonnegative functions with fixed integral. The competition between attractive and repulsive forces leads to transitions between parameter regimes, where minimizers exist and where they do not. The problems considered are generalized liquid drop models, swarming models and generalized Keller-Segel models.