This paper shows the relationship between switching/sampling frequency, samples number and sine wave fundamental frequency with the intention of giving a basis to understand how the algorithm was designed. It also punctuates mathematical and implementation constraints considered in the optimization algorithm design. Similarly it explains the numerical methods and procedures used in the algorithm to solve the numerical obstacles into achieving accurate frequency sine wave PWM generation.