1. Introduction
Global warming, rapid population growth (the population is forecast to reach 9.7 billion people by the 2050 [
1]), and, more recently, the global COVID-19 pandemic are critical societal, economic, and engineering challenges. During the recent COP 26 in Glasgow, the most recent international agreement concerning global warming, a limit to the rise in global average temperature to 1.5 Celsius degrees has been fixed, and for the first time, individual countries have been forced to phase down unabated coal power and inefficient subsidies for fossil fuels [
2]. Furthermore, besides greenhouse gas (GHG) reduction, waste management and virgin raw material utilization are also very relevant challenges. A move to a “Circular Economy” development model—namely, a significant reduction of wastes and virgin raw materials utilization—cannot be postponed in order to satisfy the worldwide growing demand for energy and goods with an effective management of the available resources and almost waste-free utilization processes.
Moreover, the current pandemic situation due to the SARS-CoV-2 virus has introduced structural changes in energy demand and consumption, posing several challenges to the system operators, with particular reference to towards an increased resilience of the energy system [
3]. As a matter of fact, the long-term strategic vision for a prosperous, modern, competitive, and climate-neutral economy [
4] requires a severe change of paradigm in power generation, energy sources management, efficiency, and resiliency of the whole energy supply chain.
In this context, the waste management hierarchy guidelines [
5] address the transition from a “Linear economy” model toward the “Circular Economy” one, requiring a systematic reduction of the amount of waste and a maximization of its value by an increase in the use of the secondary raw materials. In this context, the concept of Biorefining emerges. It is defined by IEA as: “
The sustainable processing of biomass into a spectrum of marketable biobased products and bioenergy/biofuels, is an innovative and efficient approach to use available biomass resources for the synergistic coproduction of power, heat, and biofuels alongside food and feed ingredients, pharmaceuticals, chemicals, materials, minerals and short-cyclic CO2” [
6]. This definition underlines how the effectiveness of biorefinery processes strongly depends on the biomass input.
In recent years, there has been great interest in the biorefinery of spent coffee grounds (SCG): i.e., the residual coffee powder from making the beverage. Nowadays, SCG are beginning to be considered not as waste but as a resource. Several papers consider SCG as feedstock for biofuel production: in [
7], the use of the SCG collected in the Technical University of Denmark was analyzed for the production of bioethanol to partially cover the campus energy demands; in [
8], an assessment of pellets made from pepper stem and SCG was evaluated, obtaining an ideal ratio of 8:2 with an optimal torrefaction temperature of 230 °C; in [
9], the addition of SCG in wood-based feedstocks (sawdust, shavings) is discussed, where the authors show advantages from the energy point of view, increasing the heating value, and at the same time suggesting a low ratio to ensure keeping good mechanical resistance properties.
The interest in SCG comes not only from the scientific sector but also from private companies. For example, in the UK “Bio-Bean” has collected SCG across the country over the last few years and converted them into a solid biofuel for domestic heat and secondary raw materials [
10]. This interest arises from the intrinsic characteristics of SCG that makes it an ideal resource for the bioeconomy. Indeed, coffee is one of the most consumed beverages in the world [
11,
12,
13,
14]; it is also one of the commodities traded most [
13,
14,
15] and its consumption is constantly rising year by year [
11,
12,
15,
16]. Moreover, SCG are among the major parts of coffee powder. In fact, while only around 30% of the total mass is solubilized in the beverage [
11], the remainder becomes SCG. This aspect, coupled with the high waste intensity of the coffee powder processing, makes the coffee industry a huge producer of waste [
11,
13,
14]. Therefore, SCG is not only a resource, but it is also an ideal input for a biorefinery. Its composition and characteristics have given rise to several studies showing several possibilities to valorize SCG for energy purposes. In the literature, several papers are available regarding the value chain of SCG for energy applications [
11,
15,
17,
18,
19,
20]. Nevertheless, in these papers, the economic challenges related to the SCG collection and distribution are not detailed, although it is one of the more critical economic aspects of SCG valorization due to the low density of availability of this biomass.
Another crucial aspect of the energy transition towards a more sustainable energy system are conversion and final use efficiencies [
21]. Financial incentives for Combined Heat and Power (CHP) generation are still used in the EU [
22] to support the widespread diffusion of such a technology. CHP can significantly reduce the primary energy usage and increase the local power production, consequently decreasing the transportation losses. Many scientific articles highlight its role in the energy transition, either for urban or industrial contexts [
23].
To properly take advantage of the CHP plant potential, advanced and smart design strategies are key: non-optimal operation of the plant can, in fact, lead to performance below the predicted level and a consequent loss of energy efficiency, as well as economic revenue [
24]. In detail, in the standard design methodologies of CHP plants, the dynamics of heat and power demand are quite often not properly taken into account and average values are taken as reference. As described in [
25], a dynamic design procedure can solve these limits, but it requires previous knowledge of representative loads for the application that should further not be influenced by singularities related to the specific observation period. In [
25], clustering the load starting from the historical data in order to obtain a typical load profile not affected by singularities [
25] is a solution introduced to address this problem.
Besides the development of smart design strategies, the problem of the optimization scheduling of Multi Energy Systems (MESs) based on the CHP system, RES, and ES is also crucial and is well studied in the literature [
26,
27,
28,
29,
30]. There are several approaches to deal with this problem, among them the improved differential evolutionary algorithm [
27,
31] and Particle Swarm Optimization, and other types of evolutionary algorithm in a bi-level optimization framework, which combines Mixed Integer Linear Programming (MILP) and Evolutionary Algorithm [
28,
32,
33,
34,
35,
36], have been extensively investigated in the recent literature.
The work presented in this paper is based on the latter approach that has been effectively tested in previous work by the authors for different applications, ranging from university buildings [
33] to Net Zero Energy Factories [
32]. In the context previously defined, the main contribution of the present study is the application of the proposed methodology to simultaneously optimize the economic and environmental targets considering of a CHP civil application integrating Anaerobic Digestion (AD) of the SCG and its value chain, as well as Energy Storage (ES) technologies. Referring to the specific case of a large hospital building, the study allows us to understand the limits of the proposed approach with respect to traditional solutions; therefore, it provides a unique reference benchmark for the energy performance of this type of application. The major novelties of the study can be summarized in the following points:
Proposes a bi-level optimal design for the integration of Biogas from Anaerobic Digestion (AD) and Energy Storage (ES) technologies (Thermal Energy Storage—TES and Battery Energy Storage System (BESS) for CHP applications;
Uses the developed design and control algorithm on a real case study (the energy system of a hospital facility located in Rome) to evaluate the potential benefits arising from the innovative approach. Hospitals have in fact often used CHP power systems due to the relevant electric and thermal power consumed and the demands’ contemporaneity;
Provides energy and environmental KPIs as a benchmark for a real case study for a hospital building.
3. Results
In the following section, the results of the optimal design process are shown for three different scenarios.
Each scenario increases the complexity of the hospital Energy System with the aim of highlighting the role of each technology in maximizing the advantage from the CHP in terms of cost and emissions.
First of all, in “SCENARIO 1”, the sizing of only the CHP unit is performed. This analysis aims to show the advantages of the CHP dynamic sizing.
In “SCENARIO 2”, the AD is added to the energy system. The presence of the AD increases the complexity of the sizing phase; in fact, its effects are dual. On the one hand, costs and emissions of SCG delivery to the hospital represent a new source of expenditure and environmental impact of the energy system. On the other hand, the biogas produced reduces the purchase of natural gas from the national grid, and consequently its cost and related emissions. Therefore, SCENARIO 2 allows us to analyze these aspects, seeking for an optimal configuration.
Finally, in “SCENARIO 3” the integration of ESs is analyzed to show how they can further improve the overall performance of the system. In particular, it is expected that TES would give advantages using the heat surplus of CHP units, whereas the BESS would help stabilize its electrical power production. The performance of the TES could be further enhanced using an advanced system such as TES with nano-incorporated phase change materials, which increase its performance in terms of velocity of charging/discharging and thermal behavior [
40].
The three simulated scenario are summarized in the following:
SCENARIO 1—Optimal design of the CHP plant;
SCENARIO 2—Optimal design of the CHP plant integrated with the AD reactor;
SCENARIO 3—Optimal design of the CHP plant and the AD reactor, integrating TES and BESS.
All the results have been presented as relative variation with respect to the reference case where no CHP plant is installed, i.e., electric power provided by the grid, whereas thermal demand is supplied by the traditional boiler.
3.1. Scenario 1—CHP Optimal Design
In
Figure 4, the Pareto fronts for all the simulated scenarios are reported in order to analyze the trade-off between the two objective variables reported as relative values with respect to the static design solution. In particular, the one referred to in Scenario 1 is reported in green stars. It can be noticed that, regardless of the CHP size, the advantages with respect to the reference case vary in a limited range. CO
2 emissions are reduced between 8 to 10% at maximum, and cost benefits range from 37 to 40%. As a matter of fact, positive effects are observed both on the environmental and economic objectives in the optimal design range; however, limits are encountered due to the intrinsic characteristics of the thermal and electric demands.
Observing
Figure 4, it can be noticed that potential benefits can be achieved also with respect to the static design solution both for the economic and environmental targets. Indeed, the dynamic optimization tends to increase the CHP size (
Table 2) which is, however, limited by two main factors:
Further considerations can be made by looking directly at the results of the best design choice based on the minimization of the distance from the ideal target (
Table 2).
The CHP demonstrates its economic convenience up to a size of 5 MW, after which the positive effects saturate due to the reduction in the total efficiency and incentives. However, this configuration—obtaining the maximization of the weight of the economic objective—reduces the environmental benefits through PES, thus avoiding CO2 emissions. Increasing the weight of the environmental objective, the optimal CHP size progressively decreases, saturating at a size of 3.5 MW. Indeed, a CHP plant with a smaller size would lead to a reduction in PES as well.
3.2. Scenario 2—CHP and AD Optimal Design
The addition of AD in the energy system has a complex impact on the system performance. On one side, it increases its resilience to external disturbance; on the other side, it increases costs and partially favors the reduction in CO
2 emissions. Considerations about the two latter aspects can be made looking at the results of the Pareto front and the sizing results as a function of the weighting factor (
Figure 4—blue stars, and
Table 3).
First of all, it can be noticed that the integration of biogas into the energy system allows for extending the limit of the maximum achievable benefits in terms of the environmental target. Savings up to 20% in CO
2 emissions can be obtained by increasing the weight of the environmental factor in the objective function. It is worth recalling that the analysis also accounts for CO
2 emissions related to feedstock transportation. However, due to the high cost of the SCG transportation system, the economic target results are negatively affected by this design solution, although savings up to 20% are achieved with respect to the reference case. In fact, if the weight of the economic target is increased, the optimization algorithm leads back to a design solution without the AD integration (
Table 3).
3.3. Scenario 3—CHP, TES, BESS and AD Optimal Design
In CHP applications, ES technologies can help to increase the flexibility of the energy system, allowing for a greater match between electric and thermal demands. As a result, the integration of TES and a BESS positively affects the performance under several perspectives (
Figure 4). In particular, it allows:
The extension of the maximum benefits achievable (up to 42% and 22%, respectively, for costs and emissions reductions);
The reduction in the carbon emissions at a given economic target.
Table 4 reports on the optimal design solution for different weighting factors. It can be observed that TES favors the most economically convenient solutions, extending the limits of the maximum size of the CHP plant. BESS instead plays a crucial role towards the reduction in the CO
2 emissions since it allows for achieving high PES values also at a smaller CHP size.
4. Discussion of the Results
Further analysis has been carried out on the balanced design solutions (αeco = αenv = 0.5) to thoroughly understand the differences among the performances of the scenarios.
First, the hospital energy system performances obtained using the clustered and the real data are compared in order to assess the robustness of the proposed approach.
Figure 6 and
Figure 7 show the total annual costs and the CO
2 emissions per bed for all the simulated scenarios evaluated using either the real or the clustered load data. Results are always close each other (max deviation of about 2%), confirming that the synthesized load is representative of the dynamic behavior of the hospital electric and thermal demands. Moreover, the analysis offers significant benchmark parameters. In particular, it can be observed that the energy cost per bed in a standard configuration (CASE 0) is slightly below kEUR 12, and that the CHP unit can allow, if properly designed, to reduce this value up to a minimum of about 7 kEUR. The introduction of the AD and ESs leads to a slight increase in the total energy cost per bed (5.07% and 8.94%, respectively, for Scenario 2 and 3). However, the cost increase is counterbalanced by the reduction in the CO
2 emissions that decrease by about 7.62% and 10.82% with respect to Scenario 1, respectively, for Scenarios 2 and 3.
A further discussion can be made observing the fraction of fossil primary energy consumption (FPEC) required to supply the energy consuming technologies (
Figure 8). It can be, in fact, observed that moving towards more complex systems, the fraction of energy consumed at the boiler is significantly reduced (from 38 to about 15%). On the other hand, due to the increased CHP size, the percentage of FPEC is increased. The AD integration, as well as the integration of the ES technologies, leads to a general reduction in the overall FPEC (from 99 GWh to 91 and 88 GWh). The influence of the CHP on the FPEC is slightly decreased and it is compensated by a soft increase in either the boiler or the grid fractions. It is worth noting that for this calculation an efficiency of 47.6% for the grid is used as reported in [
41].
Recent energy crises have made the resilience to energy sources market fluctuations crucial while evaluating the performance of an energy system. For this reason, a sensitivity analysis to the electricity and methane prices is performed.
As reported in
Figure 9, all the configurations of the CHP powerplant perform better if compared with the reference case in response to changes in electricity price. Moreover, due the high size of the CHP plant, the energy system presents high sensitivity to the natural gas price (
Figure 10). Due to the high cost of transportation of SCG, the natural gas savings by the AD has a marginal effect from the economic point of view. However, in
Figure 10 it can be appreciated how the increase in the complexity of the energy system also increases its resilience to natural gas price fluctuations.