Learning Solution Manifolds for Control Problems via Energy Minimization