Optimal control of the future via prospective learning with control