OPTIMIZATION AND CONTROL OF SEMI-BATCH REACTORS