optimal control project