The increasing adoption of EVs and the integration of RES present both opportunities and challenges for modern power systems. To schedule EV charging and discharging in conjunction with renewable energy sources like solar and wind, this article suggests a hybrid optimization-based method. The objective is to enhance energy efficiency, minimize dependency on fossil fuels, and ensure grid stability. Furthermore, the rising demand for electric vehicles (EVs) necessitates more innovative strategies to balance charging loads with fluctuating renewable energy availability. Various system configurations, including PV systems, fuel cells, and battery energy storage, are reviewed and analyzed for their technical and economic viability. A comprehensive assessment of the integration of EVs with renewable energy also addresses the potential for demand-side management techniques to optimize grid operations. The proposed scheduling method, AO-GW, optimizes the energy management efficiently under dynamic conditions, accounts for the intermittent nature of RES and the dynamic charging demands of EVs, optimizing energy flows between vehicles, storage units, and the grid. Simulation results demonstrate that hybrid optimization strategies improve system reliability, reduce energy costs, and support the effective integration of renewable energy into EV infrastructure, contributing to sustainable and resilient energy ecosystems. These advancements further pave the way for enhancing the overall sustainability of the transportation and energy sectors.