Robustness of discrete-time inverse optimal control for trajectory tracking