A novel technique is presented for developing a near-optimal online re
al time pulse width modulated specific harmonic elimination (PWM-SHE)
switching pattern in which the piecewise linearisation of a fully opti
mal PWM-SHE switching strategy is applied.