Title: A thesis on the on-line calculation of optimal control strategies