Control strategies for uncertainties or nonlinear effects need to be developed for control systems. Optimization algorithms developed with the rapid development of computer technology are frequently used to improve the steady-state response with the help of the ambiguous mathematical characteristics or nonlinearity of control systems. In this study, an optimum proportional–integral–derivative (PID) controller was designed using the wound healing algorithm based on the clonal selection principle. The proposed algorithm is applied in self-tuning a PID controller in the ball and hoop system which represents a system of complex industrial processes. In order to adjust the PID parameters with the aid of the developed algorithm, an integral absolute error (IAE) has been chosen as the objective function. Thus, the system reached the optimum solution quickly and time was saved. The advantages of the proposed algorithm have been proved by comparing the obtained results with other algorithms. To succeed this, a programme was written in the MATLAB GUI environment.