Battery energy storage system load shifting control based on real time load forecast and dynamic programming | Synapse