In this paper, an minimum-energy point-to-point (PTP) trajectory is designed for a mechatronic system, which is a toggle mechanism driven by a permanent magnet synchronous motor (PMSM). To generate the PTP trajectory, we employ the real-coded genetic algorithm (RGA) to search for the minimum-absolute-energy trajectory for the mechatronic system. In this paper, a high-degree polynomial is used and the initial and final conditions (position, velocity, acceleration and jerk) are considered as the constraints for the trajectory. In the RGA method, the coefficients of the polynomial are determined by satisfying the desired fitness function of input absolute electric energy. The numerical simulations are compared between several degrees polynomials during motion operation time for the toggle mechanism.