This paper presents a comprehensive survey of optimization developments in various aspects of electric vehicles (EVs). The survey covers optimization of the battery, including thermal, electrical, and mechanical aspects. The use of advanced techniques such as generative design or origami-inspired topological design enables by additive manufacturing is discussed, along with sensitivity studies of battery performance with alternate materials and incorporating sustainability considerations. Strategies for battery charging/discharging and battery swapping are reviewed, taking into consideration factors such as operation, cost, battery performance, and range anxiety. Future research is suggested to address uncertainties in charging ecosystem design and incorporate both forward and inverse prediction capabilities, leveraging benefits for both the grid and individual vehicles. The optimization techniques for other EV components, such as motors, powertrains, tires, and chassis, are also discussed. Finally, this paper presents a review of the EV management, specifically the optimization of charging station, grid, and fleet management, including research on charging station construction, charging station operation strategies, and power system operation strategies. The need for further research on robustness, reliability, and sustainability is emphasized to justify the use of EVs in the future.