distributed smart grid network and algorithms