Development of algorithms and software for studying the stability of complex power systems (Carpathian Mathematical Publications, 2025)