Problems involving functional differential equations with terminal conditions in function space are considered. Their application to mechanical and electrical systems is discussed. Investigations of controllability, existence of optimal controls, and necessary and sufficient conditions for optimality are reported