Upgrade of the thermal power plant in a chemical factory