Optimal Energy Management System for Grid-Tied Microgrid: An Improved Adaptive Genetic Algorithm | Synapse