The document discusses the optimization and analysis of three-generation power plants utilizing high-temperature solid oxide fuel cells (SOFCs) for complex buildings, emphasizing their high efficiency in producing electricity and thermal energy. It introduces a software package for optimizing these plants, validated against existing power plants, and provides economic and ecological evaluations. The findings indicate a significant potential for energy savings and highlight the importance of cost reduction in fuel cells to enhance profitability.