Smart grid power system control in distributed generation environment