Non‐linear loads, electrical vehicles (EVs) and power electronics are the sources of harmonic generation in the power system. Harmonics are the reason for the disturbance in the technical constraints and quality of the power system. These disadvantages are formed in the current and the voltage of the system branches and buses. To reduce these harmonics, active and passive power filters are used. Since active power filters (APFs) include electronic power switching devices, they are used to eliminate or reduce current or voltage harmonics. To properly reduce these harmonics and supply consumer demand, private investors (PIs) are considered to enhance the power quality, by investing in the APF units and the distribution network operator (DNO) coordinating and feeding the EVs, by equipping the network with smart parking lots. Total harmonic distortion, bus voltage profile, active power loss and energy not supplied (ENS) are considered problem attributes. Using techniques for order of preference by similarity to the ideal solution (TOPSIS), it is determined how the addition of photovoltaic (PV), energy storage system, and batteries affects the ranking of attributes from the perspectives of both DNO and PI. The best solutions are obtained in the first stage using a genetic algorithm (GA), and the attributes have been prioritized from a utility perspective in the second stage by TOPSIS. To verify the performance of GA and TOPSIS, all of the obtained results are compared with the other algorithms. As seen clearly, active, reactive power loss and ENS in scenarios with the participation PV are reduced. Furthermore, comparing the results of different algorithms confirms the efficiency of GA and TOPSIS.