In this study, the optimization and analysis of exergy and thermoelectronics of a combined heat and power generation system, heat and cold with thermal storage for use in a residential complex with an area of 147,000 square meters, with the main driving motive of the internal combustion engine. The optimization of the system is based on the annual cost minimization and in two modes of using a...