Simulation-Based Optimization Framework with Heat Integration