<span lang="EN-US">This paper describes a new strategy for optimizing the switching angles of a three-phase inverter in a photovoltaic system. It presents non-traditional solutions to the problem of selective harmonic elimination (SHE) in three-phase inverter (VSI)-fed induction motor drives. The aforementioned problem was solved independently by using hybrid genetic algorithms (HGAs) and a modified Newton–Raphson method. GAs can obtain the correct solution even if the first generation is arbitrary. The solution then converges rapidly. The modified Newton–Raphson method is used to solve transcendental equations of the SHE pulses width modulation (SHEPWM) technique, which is a unique method that produces all possible solutions without assuming the initial angles. This modified technique is not complex and ensures rapid convergence to the solution. A real-time experimental verification of the SHEPWM technique was performed in the OP5600 RT-Lab simulator. The results obtained show that the proposed SHEPWM algorithm controls the fundamental voltage and effectively eliminates the desired harmonics, and that the evolution of the signal quality increases according to the modulation index. For M=1.1 the SHE-PWM gives the best result: a current THD of 5% for a switching frequency of 1150 Hz.</span>