The article develops a mathematical model of the heat supply system of the greenhouse complex, taking into account the free heat flow in the animals, solar energy, heat energy stored in heat accumulators and developed through the program MATLAB / Simulink. In the development of a mathematical model of the heat supply system of the greenhouse complex, a block diagram of the equation in the program MATLAB / Simulink was developed, without taking into account the change in air density and specific heat capacity with temperature. According to the graphic results obtained for the daily value of solar radiation 500 W/m2, outside air temperature, -6 °C in Karshi, the air temperature inside the greenhouse rises to 22 °C, water tank battery temperature to 13 °C, underground heat accumulator temperature to 17 °C. can be seen. while the amount of total solar radiation was 300 W/m2, this figure was found to be 14 °C, 9 °C, and 12 °C.