has a very important role in the profitability of refineries and reducing the environmental pollution. In this study, the combustion chamber’s performance of the CO boiler of the Oil Refinery was evaluated using computational fluid dynamics. The number of mesh points was determined using the network independence test. Comparison of numerical and experimental results proved that the simulation is 96% accurate for the variables examined in the validation. The velocity profile and the blend of inlet flows were analyzed. The thermal profile of the flame was drawn to show the temperature changes in different layers of the flame. Also, the temperature changes in the whole chamber were shown using virtual pages. The reaction rates of combustible compounds in fuels were compared. It was also found that the combustion reaction at the beginning of the combustion chamber completes the combustion hydrocarbons. NO reaction rate analysis shows that all these environmental pollutants are produced near the burner. Non-dominated sorting genetic algorithm II was used to determine the optimal operating conditions of the CO boiler and a Pareto diagram was drawn. Ultimately, the different fluid intensity of primary and secondary air and fuel gas streams on different parameters like temperature, enthalpy, gas compositions in the outlet, and the chamber’s wall temperature were presented.