The connection of distributed generators in an electric power system should be evaluated carefully to ensure that they effectively assist in improving the performance of electrical networks, reducing or eliminating any situations that cause degradation of the power quality of the consumers, and other issues. In this context, there are several studies that analyze the influence of generators connected to distribution systems and how they affect the frequency, cause variations in voltage magnitude, voltage unbalance and harmonic distortion. However, there are a few studies analyzing the effects that the disconnection of distributed generators induces to the power quality of consumers. Once operating in parallel with the distribution network, these generators have an effect on voltage variations and voltage regulator devices. As a result, disconnection can cause severe voltage variations causing damage or malfunction to the loads. The disconnection may be sudden or due to the action of anti-islanding protection, followed by the procedure to reconnect the substation, if it is possible. In order to study this problem, which tends to become a new power quality concern for electric utilities, and in order to minimize and / or eliminate the possible side effects of the voltage variations, this research proposes the development of a control method of voltage regulators' taps. In this method, the control of taps was modeled as an optimization problem which aimed to minimize these voltage variations aforementioned and also the amount of voltage regulator operations over a typical day. The optimization was solved by a Genetic Algorithm and the results obtained demonstrate that it is possible to minimize the voltage variation by using the system load curve to plan the operation of voltage regulators.