This article describes the problem of automatic regulation of reactive power using electronic devices FACTS (Flexible AC Transmission Systems): static synchronous compensator (STATCOM) and unified power flow controller (UPFC). With the help of a complex writing form, the following are determined: voltages at the installation nodes of the FACTS device and loads, currents of loads, power sources and electronic compensators in case of voltage instability at the load node of the electrical network. Voltages and currents are determined using the node-voltage method. The task of STATCOM is partial or full compensation of reactive power. During the reduction of the voltage at the load node, the reactive power generated by the power source decrease...