BI LEVEL PLANNING OF GRID FORMING ENERGY X2026