This document discusses dual mode control of a grid-connected photovoltaic system using maximum power point tracking (MPPT) and constant power generation (CPG) control. It first introduces distributed generation and photovoltaic systems, and describes how MPPT algorithms like perturb and observe are used to extract maximum power from PV panels. For high PV penetration scenarios where PV generation exceeds load demand, CPG control modifies the MPPT algorithm to limit power output to a set point. Simulation results show the system operating in MPPT mode and CPG mode under varying irradiance conditions, and successfully regulating power fed into the grid.