In the very near future, the North American power grid will be populated by a bewildering array of distributed energy resources ranging from building-integrated solar photovoltaics and micro-cogen to intelligentcontrol systems and mesh network lighting.