The article describes the computational complex designed for large-scale mathematical modeling and optimization of intra-quarter thermal regimes heating networks. Developed software allows to manage all users of thermal energy and carry out its accounting. On its basis, a strictly analytical system of targeted budget subsidies to individual consumers of thermal energy can be built, taking into account the social norms of housing, the estimated and actual power of heating devices, the location of the apartment in the house and the state of its enclosing structures. The article concludes about the effectiveness of the proposed mathematical modeling method in the organization and effective management of ensuring energy saving in the design of heating networks.