Energy Management and Operational Planning of a Microgrid With a PV-Based Active Generator for Smart Grid Applications | Synapse