Title: An  optimal study of an exothermic reaction in a semi-batch system with internal and external heating