The increasing integration of renewable energy sources into urban systems necessitates the development of intelligent resource management strategies to ensure optimal and reliable power distribution. Swarm Intelligence (SI) algorithms have emerged as a promising solution for addressing the complex energy management challenges inherent in smart cities, such as generation variability, distributed loads, and the need for real-time decision-making. This paper conducts a rigorous comparative analysis of three prominent SI algorithms—Particle Swarm Optimization (PSO), Ant Colony Optimization (ACO), and Artificial Bee Colony (ABC)—within a simulated, renewable-powered smart city environment. Our model incorporates edge computing nodes, solar and wind generation systems, and heterogeneous urban load profiles, including residential, municipal, and electric vehicle charging demands. The study evaluates each algorithm against key performance metrics, including energy efficiency, task latency, convergence behavior, load balancing, and system fault tolerance. The results unequivocally demonstrate that PSO outperforms both ACO and ABC across most performance dimensions, exhibiting faster convergence, superior energy utilization, more effective latency management, and enhanced fault recovery capabilities. While ABC demonstrates competitive performance in flexibility and fairness, ACO shows significant limitations in time-sensitive and failure-prone scenarios. This research contributes a modular simulation framework suitable for real-time edge computing applications and offers practical guidance for deploying adaptive optimization strategies in urban energy systems. Ultimately, our findings underscore the critical importance of algorithm selection in smart city energy infrastructure and highlight the potential of swarm-based intelligence to enable scalable, resilient, and efficient resource management in the sustainable cities of the future.