The problems of catalyst deactivation and optimization of the mixed feedstock become more relevant when the residues are involved as a catalytic cracking feedstock. Through numerical and experimental studies of catalytic cracking, we optimized the composition of the mixed feedstock in order to minimize the catalyst deactivation by coke. A pure vacuum gasoil increases the yields of the wet gas and the gasoline (56.1 and 24.9 wt%). An increase in the ratio of residues up to 50% reduces the gasoline yield due to the catalyst deactivation by 19.9%. However, this provides a rise in the RON of gasoline and the light gasoil yield by 1.9 units and 1.7 wt% Moreover, the ratio of residue may be less than 50%, since the conversion is limited by the regenerator coke burning ability.