Dynamic programming model for a thermal energy storage-based heat recovery system in a process industry plant | Synapse