Optimal coordination of Battery Energy Storages and Demand Response Programs with application to wind integration | Synapse