Attached herewith Research Article links that will help you to understand different constraints for energy storage in utility grid using mathematical approach.
Samir G. Pandya do you have the operational code for this control strategies for battery energy storage service system,,,?i checked it but its not working