This paper is concerned with the optimization of the cardiopulmonary resuscitation (CPR) procedure, which plays a critical rule in saving the life of patients suffering from cardiac arrest. In this paper, we define the performance index for optimization using the oxygen delivery. A model developed earlier is used to calculate the oxygen delivery through CPR. The free parameters of this model which depend on the rescuer performance are ventilation time, compression speed, tidal volume, and fraction of oxygen in the inspired air. Two different optimization problems are carried out. First, a global optimization is implemented to discover the best values of the free parameters which maximize the oxygen delivery. In addition to this, a sequential optimization scheme is explored which uses a two step optimization in each CPR sequence to maximize the oxygen delivery. Results show that the sequential optimization procedure will enhance the performance of the CPR significantly.