The aim of this document is to present the topic of modeling district heating systems in order to enable optimization of their operation, with special focus on thermal energy storage in the pipelines. Two mathematical models for simulation of transient behavior of district heating networks have been described, and their results have been compared in a case study. The operational optimization in a DH system, especially if this system is supplied from a combined heat and power plant, is a difficult and complicated task. Finding a global financial optimum requires considering long periods of time and including thermal energy storage possibilities into consideration. One of the most interesting options for thermal energy storage is utilization of thermal inertia of the network itself. This approach requires no additional investment, while providing significant possibilities for heat load shifting. It is not feasible to use full topological models of the networks, comprising thousands of substations and network sections, for the purpose of operational optimization with thermal energy storage, because such models require long calculation times. In order to optimize planned thermal energy storage actions, it is necessary to model the transient behavior of the network in a very simple way - allowing for fast and reliable calculations. Two approaches to building such models have been presented. Both have been tested by comparing the results of simulation of the behavior of the same network. The characteristic features, advantages and disadvantages of both kinds of models have been identified. The results can prove useful for district heating system operators in the near future.
 Viana A., Pedroso J.P.: A new MILP-based approach for Unit Commitment in power production planning. IEEE Trans in Power Systems, 2012.
 Badyda K: Mathematical model for digital simulation of steam turbine set dynamics and on-line turbine load distribution. Transactions Inst. Fluid-Flow Mach. 126(2014), 65-82.
 Szapajko G., Rusinowski H.: Mathematicalmodeling of steam-water cycle with auxiliary empirical functions application. Arch. Thermodyn. 31(2010), 3, 165-183.
 Rusinowski H., Szapajko G.: Energy evaluation of steam-water cycle operation with mathematicalmodeling application. Arch.Thermodyn. 32(2011), 4, 101-117.
 Fonseca J.G.S. Jr, Schneider P.S.: Simulation of a thermal power plant with district heating: Comparative results of 5 different codes. Energy 31(2006), 1955-1968.
 Ziębik A., Szegda D., Qvale B., Elmegaard B.: Thermodynamic simulation analysis of a multifuel CHP plant basing on the technological diagram of Avedore unit 2. Arch. Thermodyn. 31(2010), 1, 79-93.
 Bujalski W.: Optimization of the operation of a CHP plant equipped with a heat accumulator. Oficyna Wydawnicza Politechniki Warszawskiej, Warszawa 2013 (in Polish).
 Fazlollahi S., Beckera G., Maréchal F.: Multi-objectives, multi-period optimization of district energy systems: III. Distribution networks. Comput. Chem. Eng. 66(2014), 82-97.
 Ziębik A., Gładysz P.: Optimal coefficient of the share of cogeneration in the district heating system cooperating with thermal storage. Arch. Thermodyn. 32(2011), 3, 71-87.
 Milewski J., Wolowicz M., Bujalski W.: Seasonal thermal energy storage - a size selection. Appl. Mech. Mater. 467(2014), 270-276.
 Converse A.O.: Seasonal Energy Storage in a Renewable Energy System. In: Proc. of the IEEE 100(2012), 2, 401-409.
 Zucker G., Palensky P., Judex F., Hettfleisch C., Schmidt R., Basciotti D.: Energy aware building automation enables Smart Grid-friendly buildings. Elektrotechnik & Informationstechnik 129(2012), 4.
 Leśko M. Bujalski W.: Operational optimization in district heating systems using thermal inertia of buildings. Rynek Energii (125( 2016), 4.
 Stevanovic V.D., Prica S., Maslovaric B., Zivkovic B., Nikodijevic S.: Efficient numerical method for district heating system hydraulics. Energ. Convers. Manage. 48(2007), 5, 1536-1543.
 Oppelt T., Urbaneck T., Gross U., Platzer B.: Dynamic thermo-hydraulic model of district cooling networks. Appl. Therm. Eng. 102(2016), 336-345.
 Basciotti D., Judex F., Pol O., Schmidt R.: Sensible heat storage in district heating networks: a novel control strategy using the network as storage. Austrian Institute of Technology, Energy Department, Sustainable Building Technology. https://www.researchgate.net/publication/260384884_Sensible_heat_storage_in_district_heating_networks_a_novel_control_strategy_using_the_network_as_storage, (accessed 21.11.2017).
 Benonysson A. et al.: Operational optimization in a district heating system. Energy Convers. Mgmt 36(1995), 5, 297-314.
 Kamler W.: Heating Technology. PWN, Warszawa 1979 (in Polish).