The invention discloses a digital
voltage compensation method, which relates to the technical field of power systems, and comprises the following steps: monitoring output
voltage signals and load current signals of each point of a
power grid in real time, establishing an output
voltage digital sequence and a load current digital sequence, and extracting dynamic characteristic variables of
current load current representing the change trend of a future time period; judging the working mode of the current running state; based on the voltage digital sequence, comparing with the reference voltage, calculating a real-time-reference voltage feedback compensation amount, taking the dynamic characteristic variable as input, establishing a load-
voltage response prediction model, generating a voltage deviation prediction value in a future
control period, and obtaining a voltage feed-forward compensation amount; and the current working mode is identified according to the working mode, a dynamic
weight coefficient is given to the real-time-reference voltage feedback compensation amount and the voltage feed-forward compensation amount, the final compensation control amount of the voltage of each point of the
power grid is calculated, and a driving
signal is generated to dynamically adjust the voltage of each point of the
power grid in real time and accurately. The
power quality of the power grid is improved.