A novel Flexible Power Point Tracking (FPPT) algorithm based on Genetic Algorithms (GAs) is presented in this study. The algorithm is designed to effectively handle fluctuating solar irradiation levels and partial shading scenarios. The main objective is to enhance power output and tracking accuracy under dynamic environmental conditions, based on extensive simulations. The results showed superior performance for power output, tracking accuracy, and convergence speed than traditional techniques. Its adaptability to changing environmental conditions renders it suitable for real-time implementation, thereby contributing to efficient power generation in PV systems. Simulations demonstrate the efficacy of the algorithm in maximizing power extraction and meeting grid-code requirements under dynamic conditions. The comparative analyses underscore the superiority of the GA-based FPPT algorithm, highlighting its potential to significantly improve power point tracking in photovoltaic systems. This shows significance of adaptive algorithms in modern PV systems, particularly for reducing the effects of partial shading on energy yield. More research is required on the refinement of the algorithm's performance for long-term reliability and scalability in larger PV installations fostering advancements in photovoltaic power point tracking toward sustainable energy systems.