Modeling And Optimization Of The Energy Consumption Of Chemical Batch Plants