Development of a Predictive Optimal Controller for Thermal Energy Storage Systems | Synapse