Various examples are provided for power quality of service optimization for microgrids. In one example, among others, a microgrid includes a smart meter configured to control supply of electric power to loads based at least in part upon energy consumption scheduling of the loads, which is based at least in part upon an effective electric generation capacity associated with the microgrid. The energy consumption scheduling can be based at least in part upon estimated power output of a sustainable energy resource of the microgrid and a load demand characterization of the loads. In another example, a system comprises a plurality of microgrids and an advanced metering infrastructure (AMI) configured to monitor operations of the microgrids and to control supply of electric power from sustainable energy resources and energy storage systems to loads of the microgrids via smart meters based at least in part upon energy consumption scheduling of the loads.
STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT
 This invention was made with government support under agreement RE-AG1-2010 awarded by the Department of Energy. The Government has certain rights in the invention.