Stability Analysis, Flexible Control and Optimal Operation of Microgrid e-bokEngelsk, 2023