Cooperative Control And Advanced Management Of Distributed Generators In A Smart Grid