Please follow
http://energy.gov/articles/how-microgrids-work
.