The optimal trajectory profile also depends on the number of terms N of the polynomial function in Eq. (6). First of all, we investigate the effects of the number of terms on the residual vibration suppression and operating energy. Fig. 2 shows the simulation results obtained from the proposed method under the driving condition (uE =p/6 rad, TE = 0.8 s),