Text this: Optimization of Load Profiles and State-of-Charge of a Battery Energy Storage System in Energy Systems.