The article substantiates the relevance of optimization algorithms research for solving various applied problems and for the science of artificial intelligence. The need to solve problems of optimizing the thermal-hydraulic modes of buildings (as part of the project "Smart City") is explained. The paper presents a mathematical formulation of the problem of optimizing the temperature mode of rooms using adjustable devices. Existing work provides two methods for solving the posed problem. They are the coordinates search
method and the genetic algorithm. The article contains the description of the above mentioned algorithms (including the mathematical apparatus used). The results of the
computational experiment (for the considered optimization methods) are presented. These
experimental results show that the genetic algorithm provides better optimization results
than the coordinates search method, but it has a large computational cost. The hypothesis
was confirmed that in order to increase the efficiency of solving the considered class of
problems it is necessary to combine the genetic algorithm and the coordinates search
method.