An integrated approach to solving the problem of achieving the maximum effi ciency of the electrical gas cooling complex at the compressor stations of the main pipeline system is considered. It is shown that the method used in practice for discrete control of the operation modes of the cooling unit by switching on or off a certain number of fans does not always provide the required temperature conditions. The use of a cascade control system will improve effi ciency and signifi cantly reduce operating costs. The problem of creating a two-level control system is solved on the basis of structural modeling of the heat exchange process as an object with distributed parameters. With the help of decomposition of the control object into “fast” and “slow” components, the structure of a two-level control system for the linearized model of the object is developed. As a result of the application of the proposed system, a minimum of electricity consumption for gas cooling, an increase in the service life of electric drive units and an increase in the accuracy of gas temperature stabilization during the processing of external disturbances are achieved.