Variational Problems in Topology