Learning To Solve Differential Equation Constrained Optimization Problems