Optimal control of an enzyme reaction subject to enzyme deactivation. I. Batch process