Formation of a mechanism to ensure the stability of the electric power complex