Stochastic optimization for distributed energy resources in smart grids. ([2017])