AI-Driven Adaptive Energy Optimization and Management in Smart Microgrids Using Generative Adversarial Networks (Gans) | Synapse