 Research
 Open access
 Published:
Realistic modeling of a combined heat and power plant in the context of mixed integer linear programming
Energy Informatics volume 1, Article number: 27 (2018)
Abstract
In addition to renewable energy sources, the transition of the German energy system will increasingly involve the use of decentralized combined heat and power plants (CHP). In order to use this promising technology costoptimally, modeling approaches must be developed that enable optimization of the systems. Mixed integer linear programming (MILP) is a powerful tool for solving mathematical optimization problems. However, to reduce the computing time the model formulation requires compelling simplifications in relation to reality. The aim of this paper is to present a modeling approach for a combined heat and power plant that depicts dynamic power changes more accurately than existing approaches. Power gradients are mapped by differentiating between the control signal of the CHP unit and the actually generated power output for thermal and electrical power. Finally, the accuracy of the modeling approach is examined in a field test and evaluated according to the accuracy achieved.
Introduction
Energy supply in Germany is increasingly changing from a centralized to a decentralized generation structure (Strasser et al. 2015; Goldthau 2014). Especially the use of decentralized combined heat and power plants (CHP) is increasing, as it allows high fuel utilization rates to be achieved. However, since in addition to electricity generation, heat generation must be considered, the forwardlooking operation of the plants is more complex than in case of separate generation of electricity and heat. The mixed integer linear programming is to be emphasized in the so called unit commitment problem and also used in this work (Poler et al. 2014). Existing modeling approaches of CHP units in the context of mathematical optimization show great cost saving potential. However, due to model simplifications and assumptions, the resulting plant schedules are not directly applicable in many cases. Within the scope of this work, existing approaches for the mathematical modeling of CHP are presented and further developed regarding their applicability. Therefore, the presented approach is validated by a field test with a real CHP system.
Literature review
There are already many approaches in the literature to solve the socalled economic dispatch problem (Boji_C and Stojanovi_C 1996; Silvente and Papageorgiou 2017; Wang et al. 2015; Christidis et al. 2012; Costa and Fichera 2014; Spieker 2013; Steck 2012; Steen et al. 2015; Fubara et al. 2014; Arroyo and Conejo 2000; Carrion and Arroyo 2006; Mitra et al. 2013; Bosman et al. n.d.; Bosman 2012). In many cases these have already been applied to cogeneration plants (Boji_C and Stojanovi_C 1996; Silvente and Papageorgiou 2017; Wang et al. 2015; Christidis et al. 2012; Costa and Fichera 2014; Spieker 2013; Steck 2012; Mitra et al. 2013; Bosman et al. n.d.; Bosman 2012). Power gradient restrictions in the context of economic dispatch are usually implemented by limiting the change in the set power between two time steps P_{t = 2} − P_{t = 1} ≤ ∆P^{max} (Wang et al. 2015; Steck 2012; Arroyo and Conejo 2000; Carrion and Arroyo 2006; Mitra et al. 2013). The forecasted generated and thus marketed power P^{available} is equated with the set power P^{set}, although due to the inertia of the systems there are sometimes significant differences between these two. For example, if the operating point of a plant is increased from 80% (time step 1) to 100% (time step 2) in a system with a maximum power gradient of 20%, a marketable output of 100% is assumed in previous work for time step 2. However, assuming a linear power increase, the actual average power output in time step 2 will be only 90%. Only Bosman et al. take the changed power output into account (Bosman et al. n.d.; Bosman 2012), however, operation of the CHP unit in partial load is excluded, which is an enormous limitation of the approach. This work presents an approach to consider the effect of power gradients on the actual power output also in partial load operation for both electrical and thermal. The approach is then validated with the work of Steck et al. (Steck 2012) with regard to realism, since the some of the here presented model structure is close to Stecks‘work.
Model
The optimization model provides a costoptimized operating strategy for a CHP in combination with a thermal storage. Due to external influences (e.g. electricity price, heat load), different power states are optimal at different times. Therefore, a time step width ∆t is selected, with which the observation time frame is divided into \( \frac{t^{total}}{\Delta t}=T \) in total. The decision variables used in the model are listed in Table 1. The main task of the CHP is to cover the required heat load. In addition to providing heat, the CHP unit can sell the electricity generated on the power exchange at an electricity price that changes every 15 min. In advance, heat load \( {\dot{Q}}_t^{demand} \) and electricity price \( {c}_t^{elec} \) are assumed to be known.
Objective function
The objective function in eq. 1 is based on the PhD thesis of Steck.
Parameters
By parameterizing the constraints, the model can be applied to any CHP unit. Here is a list of the parameters used.

Electricity prices [Euro = kWh]: \( {c}_t^{elec} \)

Fuel cost [Euro = kWh]: c^{fuel}

Costs caused by increased machine wear during switching operations [Euro]: c^{start − up}

Electrical: Max/min electrical power [kW]: P^{max}/P^{min}

Overall efficiency of the CHP: η^{total}

Electrical efficiency while \( {P}_t^{set, elec}={P}^{max}/{P}^{min}:{\upeta}^{elec,\mathit{\max}}/{\upeta}^{elec,\mathit{\min}} \)

Maximum power gradient for power increase/ reduction in operating mode: ∆P^{max}/∆P^{min}

Maximum power gradient when switching between off and on: ∆P^{max, start − up}

Energy shortage during startup because of the inertia of the CHP: P^{start − up}

Thermal: Heat demand [kW]: \( {\dot{Q}}_t^{demand} \)

Thermal inertia of the CHP: g

Maximum state of charge of the thermal storage [kWh]: E^{max}

Thermal losses of the thermal storage [kWh] between two periods, when idle: Q^{Loss1}

Percentage of the state of charge, that will be lost between two periods: \( {\dot{q}}^{Loss2} \)

Max charging/discharging power [kW]: \( {\dot{Q}}^{charge,\mathit{\max}} \)/ \( {\dot{Q}}^{discharge,\mathit{\max}} \)

Efficiency during charge/discharge: η^{charge}/ η^{discharge}
Operating state
Equation 2 limits the permissible electrical output power of the CHP.
The electrical output power can only be either at zero or between P^{min} and P^{max}. (Steck 2012)
Powerdependent efficiency
Steck proposes to define the fuel consumption as a function of the operating state and the current electrical output (eq. 3). Factors c and k are defined via efficiency η^{elec, min} and η^{elec, max} in minimum load point P^{min} and maximum load point P^{max} (See (Steck 2012) page 34).
In contrast to the assumption of constant efficiency, this approach provides incentives for operation with more favourable efficiency. (Steck 2012)
Cogeneration
In eq. 4, a relation between electrical power and heat generation is established. Steck assumes that the overall efficiency η^{total} is constant, while the electrical efficiency is variable over the load range. This results in a relatively high heat generation with relatively low electrical power generation at the minimum load point. (For f^{1} and f^{2} see (Steck 2012) page 35.)
Startup
A startup of the CHP is indicated by the variable \( {\delta}_t^{start up} \). Equation 5 forces \( {\delta}_t^{start up} \) to one if the CHP switches on at the beginning of time step t. (Steck 2012)
Power gradient constraints
An extension to the state of the art CHP model is offered by the following system of constraints to consider the inertia of the system with its power gradients. State of the art approaches (Wang et al. 2015; Steck 2012; Arroyo and Conejo 2000; Carrion and Arroyo 2006; Mitra et al. 2013) limit the power change between two time steps by equation 6. In addition to the positive power gradient constraint in 6, our model introduces a negative power gradient constraint in equation 7. But even with these two constraints, jumps or leaps in power are not prevented.
Here, in addition to the set power \( {P}_t^{set, elec} \), a new continuous variable \( {P}_t^{available} \) is introduced that determines the actual available electrical power output of the CHP unit. Equation 8 shows the relationship between \( {P}_t^{set, elec} \)and \( {P}_t^{available} \) .
Term A in equation 8 approximates the inertia of the electric power change while the CHP unit is on. The value for A is calculated with the assumption of a linear rise/decline in power. The error caused can be graphically displayed using an error triangle, illustrated in Fig. 1. To meet the linearity condition, an edge of the error triangle is assumed to be constant. With taking \( \frac{1}{2}\left({\Delta P}^{max}+{\Delta P}^{min}\right) \) as a length for the constant edge, a good approximation can be achieved. B, on the other hand, describes the energy shortage that occurs because of the inertia when the system starts up, including reaction and startup time. The energy shortage P^{start − up} associated with starting up the CHP plant is determined from historical data. Although the average available power \( {P}_t^{available} \) is calculated, \( {P}_t^{set, elec} \) informs the user directly about the set values for the CHP unit.
Thermal balance
The heat generated is either stored or passed directly to the consumer. Accordingly, the heat demand can be met both directly by the CHP unit and by the thermal storage unit. As in (Steck 2012; Steen et al. 2015) our approach models a thermal grid with a thermal storage. In our approach though, the inertia of the CHP can be modelled with the factor g. In the thermal balance (equation 9), a proportion of the thermal power is shifted into the next time step.
In addition the separate balance for the heat storage in equation 10 is required to model the charging and discharging process.
As in (Steen et al. 2015) the following losses can be modelled: For sensitive thermal storages chargedependent losses are modelled by \( {\dot{q}}^{Loss2} \). Continuous chargeindependent losses can be modelled by Q^{Loss1}. Losses which occur during charge and discharge can be modelled by η^{charge} or η^{discharge}. As in (Steck 2012), the amount of energy stored in the thermal storage is limited by zero and the maximum storage capacity (equation 11). Furthermore, a limitation of the charging and discharging power can be optionally implemented in the model (equations 12 and 13).
Experimental setup of the field test
To validate the applicability of the presented CHP model, the calculated optimum load profiles (P^{available}) were traced with a real plant. The system used is a gaspowered cogeneration unit, type “Viessmann  Vitobloc EM 5/16”. The technical data of the CHP unit, which is known from a preliminary measurement, is summarized in Table 2 and is used for model parameterization. Since this paper was intended to examine the accuracy of the models regarding the mapping of dynamic power changes, the minimum permitted switching frequency was set to 2 min. This time unit represents a compromise between a high number of possible switching operations and a sufficiently long time span for evaluating the model quality during startup and shutdown operations. In addition to the technical parameters of the CHP, the predicted heat demand and the electricity and natural gas price forecasts are relevant values for optimization. Therefore, data from one example historic day was used to show the functionality of the optimization approach. The available thermal storage capacity, which is a prerequisite for a flexible operation of the system, is assumed to be 2 kWh. The field test was carried out according to the following scheme:

1.
Calculation of the optimal load curves for one hour of operation using the presented mathematical model (See Fig. 2) ➔ P^{available}

2.
Transfer of the calculated set points to the combined heat and power plant ➔ P^{set}

3.
Operation of the cogeneration plant for one hour to achieve the specified load profiles

4.
Measurement of the actually achieved load profiles ➔ P^{real}

5.
Repeating these steps by using the reference model [10] (See Fig. 2).
Validation and results
This chapter discusses the results of the field test in which the operational strategies of the presented model and the reference model are executed on a real CHP unit. The presented approach differentiates between a set point of the CHP’s power output (P^{set, elec}) and the forecasted actual output of electric (P^{available}) as well as thermal power. Thus, in the field test, the CHP is operated due to the set points given by the model. Nevertheless, the actual power output of the real CHP must be compared to the forecasted actual output of the mathematical model. In the reference model, the set point is equal to the forecasted actual output. The results operated due to the optimization of both models are displayed in Fig. 2. The forecasted actual power output and fuel consumption (“Model”) is compared to the actual output of the real CHP unit as a 30saverage (“Real”) over the time horizon. The error is the mean deviation between “Model” and “Real” for each two minute time step. Both models show inaccuracies between the operational strategies given by the mathematical models and the real CHP unit. High inaccuracies occur especially during startup processes. Nevertheless, the curves suggest that the model presented in this paper provides better operational strategies and output forecasts than the reference model, due to the extension of the power gradients constraints. Moreover, the time delay of the thermal power in the presented model reduces the error in the thermal power curve. Comparing both models by mean deviation errors, the presented model performs significantly better than the reference model (Fig. 3). Overall, the evaluation of the field test shows that both mathematical models can only approximately represent reality. The presented model shows a significant improvement in comparison to the reference model, but further works must be done.
Conclusion
In this work, a mathematical modelling approach for CHP units was presented considering real operating behaviours of CHP units in combination with a heat storage. The differentiation between set points and forecasted outputs in combination with a time delay in the thermal power output enable the better modelling of realty. Thus, the relative error of the thermal output could be reduced in a field test with a real CHP unit from over 50% to 22% compared to the reference model. The error left is caused primarily by suboptimal parameterization. Moreover, power gradient constraints were tightened to a better fitting of real behaviour. Nevertheless, further researches require methods for more precise parameterization of the model via measurement data.
Abbreviations
 CHP:

combined heat and power plant
 MILP:

mixed integer linear programming
References
Arroyo JM, Conejo AJ (2000) Optimal response of a thermal unit to an electricity spot market. IEEE Trans Power Syst 15(3):1098–1104
Boji_C, M., Stojanovi_C, B.: MILP optimization of a CHP energy System (1996)
Bosman, M.G.C.: Planning in smart grids. PhD thesis, S.l. (2012)
Bosman, M.G.C., Bakker, V., Molderink, A., Hurink, J.L., Smit, G.J.M.: On the microCHP scheduling problem (2009)
Carrion M, Arroyo JM (2006) A computationally efficient mixedinteger linear formulation for the thermal unit commitment problem. IEEE Trans Power Syst 21(3):1371–1378
Christidis A, Koch C, Pottel L, Tsatsaronis G (2012) The contribution of heat storage to the profitable operation of combined heat and power plants in liberalized electricity markets. Energy 41:75–82
Costa A, Fichera A (2014) A mixedinteger linear programming (MILP) model for the evaluation of CHP system in the context of hospital structures. Appl Therm Eng 71:921–929
Fubara TC, Cecelja F, Yang A (2014) Modelling and selection of microCHP systems for domestic energy supply: the dimension of networkwide primary energy consumption. Appl Energy 114:327–334
Goldthau A (2014) Rethinking the governance of energy infrastructure: scale, decentralization and polycentrism. Energy Research & Social Science 1:134–140
Mitra S, Sun L, Grossmann IE (2013) Optimal scheduling of industrial combined heat and power plants under timesensitive electricity prices. Energy 54:194–211
Poler R, Mula J, DiazMadronero M (2014) Operations research problems: statements and solutions. Springer, London
Silvente J, Papageorgiou LG (2017) An MILP formulation for the optimal management of microgrids with task interruptions. Appl Energy 206:1131–1146
Spieker, S.: Einsatz von BHKW mit Wärmespeicher im virtuellen Regelenergiekraftwerk (2013)
Steck, M.H.E.: Entwicklung und Bewertung von Algorithmen zur Einsatzplanerstellung virtueller Kraftwerke (2012)
Steen D, Stadler M, Cardoso G, Groissböck M, DeForest N, Marnay C (2015) Modeling of thermal storage systems in MILP distributed energy resource models. Appl Energy 137:782–792
Strasser T, Andren F, Kathan J, Cecati C, Buccella C, Siano P, Leitao P, Zhabelova G, Vyatkin V, Vrba P, Marik V (2015) A review of architectures and concepts for intelligence in future electric energy systems. IEEE Trans Ind Electron 62(4):2424–2438
Wang H, Yin W, Abdollahi E, Lahdelma R, Jiao W (2015) Modelling and optimization of CHP based district heating system with renewable energy production and energy storage. Appl Energy 159:401–421
Acknowledgements
The authors gratefully acknowledge the financial support of the KopernikusProject “SynErgie” by the Federal Ministry of Education and Research (BMBF) and the project supervision by the project management organization Projektträger Jülich (PtJ).
Funding
Publication costs for this article were sponsored by the Smart Energy Showcases  Digital Agenda for the Energy Transition (SINTEG) programme.
Availability of data and materials
The datasets generated during and/or analysed during the current study are available from the corresponding author on reasonable request.
About this supplement
This article has been published as part of Energy Informatics Volume 1 Supplement 1, 2018: Proceedings of the 7th DACH+ Conference on Energy Informatics. The full contents of the supplement are available online at https://energyinformatics.springeropen.com/articles/supplements/volume1supplement1.
Author information
Authors and Affiliations
Contributions
TW with the support of the remaining authors conceived of the presented idea. TW developed the modelling approach and JW supported the implementation of the model. NS and TK verified the analytical methods. Both carried out the field test and validation under notes and suggestions of TW. All authors discussed the results and contributed to the final manuscript. EA supervised the work. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Weber, T., Strobel, N., Kohne, T. et al. Realistic modeling of a combined heat and power plant in the context of mixed integer linear programming. Energy Inform 1 (Suppl 1), 27 (2018). https://doi.org/10.1186/s421620180037z
Published:
DOI: https://doi.org/10.1186/s421620180037z