Variational problems on vector bundles