The traditional unidirectional, passive distribution power grids are rapidly developing into bidirectional, interactive, multi-coordinated smart grids that cover distributed power generation along with advanced information communications and electronic power technologies. To better integrate the use of renewable energy resources into the grid, to improve the voltage stability of distribution grids, to improve the grid protection and to reduce harmonics, one needs to select and control devices with adjustable reactive power (capacitor batteries, transformers, and reactors) and provide certain solutions so that the photovoltaic (PV) converters maintain due to voltage. Conventional compensation methods are no longer appropriate, thus developing measures are necessary that would ensure local reactive and harmonic compensation in case an energy quality problem happens in the low voltage distribution grid. Compared to the centralized methods, artificial intelligence (heuristic) methods are able to distribute computing and communication tasks among control devices.