The high current ripple and torque ripple are the main drawbacks of the switched reluctance motor (SRM) since the nonlinearity and double saliency, which limits its applications. In order to eliminate the current variation and torque ripple, an optimized pulse width modulation (PWM) control is presented in this paper. The voltage ratio duty is able to be predicted precisely according to the information of the motor running parameter. Based on torque sharing functions (TSFs), the current profile is pre-computed and four regions are defined according to the reference current profiles. The three modes, excitation, demagnetization and freewheeling, are flexibly chosen according to the characteristic of the current profile. It is indicated that it is better than that of conventional PWM modulation in terms of current ripple and the current tracing performance is improved without increasing the switching frequency or changing the hysteresis band. The current ripple is defined as the peak-to-peak value dividing the average value and it is reduced by 40%. A comparison in terms of the torque ripple and copper loss is also carried out: the torque ripple is significantly reduced via the proposed scheme under both magnetic linear and saturation conditions. The torque ripple and copper loss are reduced by about 70% and 12%, respectively. The validity and effectiveness of the proposed control strategy is verified by simulation and experimental results.