This paper is focused on researching the behaviour of heating companies in connection with current developments in the electricity market and flexibility in the context of market behaviour. The work assesses the increase in profitability through the creation of a technical–economic model using an objective function with profit maximization. The objective of the paper is to present the procedure and methodology for creating a model using the basic scheme of production processes integrated into the system platform. The result of the work is a comparative analysis of modelled cases of implemented operation deployment according to a defined period and modelling modes on selected time series. The description of individual outputs demonstrates the economic advantage of using combinations of modes of combined electricity and heat production, and non-combined electricity and heat production, including the use of heat-suppression mode because of overproduction of electricity.