SAFETY CONSTRAINED OPTIMAL PLANNING OF DISTRIBUTED ENERGY X2026