This paper deals with the application of Iterative Learning Control (ILC) to further improve the performance of teleoperation systems based on Smith predictor. The goal is to achieve robust stability and optimal transparency for these systems. The proposed control structure make the slave manipulator follow the master in spite of uncertainties in time delay in communication channel and model parameters of master-slave robots, called model mismatch. The time delays in communication channel are assumed to be large, unknown and asymmetric, but the upper bound of the delay is assumed to be known. The main aspect of the proposed controller is that a designer can use the classical controller like Proportional-Integrator-Derivative (PID). However, one of its main difficulties is how to assign appropriate parameter values for the controller. In the other words, the parameters of the controller are not unique and are chosen only to satisfy the stability condition. To solve this problem, in this paper, the local controller is optimized by Backtracking Search optimization Algorithm (BSA), which is a novel heuristic algorithm with a simple construction. Simulation results illustrate the appropriate performance of the proposed controller.