Linear Control Systems and Invariant Variational Problems