Email Record: Optimal control of random sequences in problems with constraints /