The electrical power system realization idle work optimization control is guaranteed the system voltage quality, reducing the important measure which the net damages. This article makes the improvement to the genetic algorithm to enhance it in the solution idle work optimization question performance, had indicated through the IEEE6 node example this algorithm can obtain the overall situation to be most superior, damages the net reduces. Meanwhile in convergence rate, because uses has custom-made the initial population, dynamic punishes the function coefficient, dynamic overlapping rate and the variation rate and the improvement evolution termination criterion, enables its fast accurate definite transformer files position and the capacity of condenser, but has achieved the practical level,