Title: A thesis on the optimal control of a batch process