AI-Based Optimization Framework of Microgrid Energy Flows for Carbon Reduction | Synapse