Right now, we are using a nested solve command to sequentially solve the optimal control problem. It would be nice to use the integrator interface for this instead.