OPTIMAL CONTROL OF SINGLE PHASE MICROGRID WITH X2026