Minimizing the energy cost for microgrids integrated with renewable energy resources and conventional generation using controlled battery energy storage. (November 2016)