scieee AI-readable full text Open interactive document viewer

Strategic Resource Planning for Sustainable Biogas Integration in Hybrid Renewable Energy Systems

Montevakel, Pooriya

Full text

Academic Editor: Luca Fiori Received: 2 December 2024 Revised: 31 December 2024 Accepted: 7 January 2025 Published: 10 January 2025 Citation: Motevakel, P.; Roldán-Blay, C.; Roldán-Porta, C.; Escrivá-Escrivá, G.; Dasí-Crespo, D.. Strategic Resource Planning for Sustainable Biogas Integration in Hybrid Renewable Energy Systems. Appl. Sci. 2025,15, 642. https://doi.org/10.3390/ app15020642 Copyright: © 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/ licenses/by/4.0/). Article Strategic Resource Planning for Sustainable Biogas Integration in Hybrid Renewable Energy Systems Pooriya Motevakel * , Carlos Roldán-Blay , Carlos Roldán-Porta , Guillermo Escrivá-Escrivá and Daniel Dasí-Crespo Institute for Energy Engineering, Universitat Politècnica de València, Camino de Vera, s/n, 46022 Valencia, Spain; [email protected].es (C.R.-B.); [email protected].es (C.R.-P.); [email protected].es (G.E.-E.); [email protected] (D.D.-C.) *Correspondence: [email protected] Featured Application: Rural communities and energy planners can directly apply the methodology developed in this study to optimize biogas production from locally available biomass resources. By implementing optimization strategies for biomass input and reactor sizing, communities can enhance the efficiency of their hybrid renewable energy systems, ensuring a stable and reliable energy supply. Abstract: In response to the growing demand for sustainable energy and the environmental impacts of fossil fuels, renewable sources like biomass have become crucial, especially in regions rich in agricultural and animal waste. This study focuses on a real-life project in Aras de los Olmos, Spain, where solar, wind, and biogas from biomass serve as primary energy sources, supplemented by a hydro-based storage system to stabilize supply. Central to the research is optimizing biomass inflow to the biogas reactor—the primary controllable variable—to effectively manage the supply chain, maximize energy output, and minimize logistical costs. The study addresses practical challenges by utilizing real data on demand, truck capacities, and costs and employing robust optimization tools like Gurobi. It demonstrates how optimized biomass flow can secure energy needs during high demand or when other renewables are unavailable. Integrating technical and economic aspects, it offers a comprehensive and practical model for sustainable and economically viable energy production in rural communities. It provides a foundational framework for future renewable energy and optimized energy storage system studies. Keywords: hybrid energy systems; sustainable rural electrification; biomass energy; supply chain optimization 1. Introduction The transition to sustainable energy has spurred extensive research into renewable resources like biomass due to its environmental and economic advantages, especially in rural and off-grid areas. Studies have shown that integrating biogas production into renewable energy systems, particularly hybrid microgrids, can reduce reliance on diesel fuel, lower overall costs, and support sustainable rural electrification by effectively managing technical and economic factors [1–7]. For instance, ref. [ 1 ] investigated a hybrid microgrid for rural regions that integrates photovoltaic (PV), biogas, diesel generators, and battery storage. Their study analyzed technical and economic factors to optimize system configurations, demonstrating that higher biogas availability reduces reliance on diesel generators. This reduction reduces Appl. Sci. 2025,15, 642 https://doi.org/10.3390/app15020642 Appl. Sci. 2025,15, 642 2 of 24 overall costs and emissions, supporting sustainable rural electrification through renewable integration. Similarly, ref. [ 2 ] proposed a distributed energy management framework for multi-microgrid systems integrating biogas, solar, and wind energy. They introduced an energy hub model that optimizes energy exchange between microgrids to enhance system efficiency. The research emphasizes biogas’s flexible role in meeting variable demands, especially during low solar and wind output periods. Significant advancements in microgrid energy systems and biogas technology have been made in recent years, addressing technical and economic challenges highlighted in previous studies. For instance, ref. [ 8 ] introduced a method to optimize the size and location of renewable resources, including biogas, within electricity grids, emphasizing economic and environmental impacts and highlighting biogas’s role in balancing solar and wind fluctuations. Similarly, ref. [ 9 ] optimized a hybrid energy system combining biogas and photovoltaic plants for a rural Spanish community, achieving notable cost reductions and demonstrating the practical benefits of integrated systems. Moreover, by analyzing individual end uses and external factors, ref. [ 10 ] proposed a forecasting method that enhances microgrid energy management by aligning demand with generation. These studies collectively showcase the potential of biogas as a critical component in resilient and efficient energy systems while highlighting areas for further exploration. However, these studies often focus primarily on the outputs—specifically the generated energy from biogas and its role in hybrid energy systems—while overlooking the biogas production process. This oversight neglects crucial factors such as enhancing the efficiency of biomass conversion into biogas, which is essential for a comprehensive understanding of biogas integration into renewable energy systems. To address this gap, researchers have shifted toward optimizing biomass utilization, particularly animal manure and agricultural residues, as sustainable feedstocks for bioenergy production. Studies in this area [ 11 – 25 ] explore technological advancements like gasification and anaerobic digestion to efficiently convert biomass into renewable energy. They highlight the significant role of manure and crop residues in achieving environmental goals within a circular bioeconomy framework by reducing greenhouse gas emissions and supporting sustainable agricultural practices. For example, ref. [ 12 ] introduced a simplified model for optimizing biogas plants to supply energy based on demand, addressing challenges in renewable energy integration. Traditional biogas plants often operate at a constant full load, limiting their flexibility. They proposed a simplified model that uses only four parameters to address this, replacing the more complex standard anaerobic process model. This streamlined approach enables faster simulations and allows biogas plants to adapt more readily to fluctuations in energy demand. Experimental validation shows that this model maintains accuracy while significantly enhancing computational efficiency, making it suitable for real-time optimization in the renewable energy market. Similarly, ref. [ 13 ] reviewed the life cycle assessment of biogas production from manure, highlighting both environmental benefits and challenges. Despite manure’s low energy potential and limited biogas conversion efficiency compared to other biomass sources, it remains an environmentally viable feedstock, especially when co-digested with other organic materials. They examined stages such as feedstock management, anaerobic digestion, and combined heat and power integration, noting that regional factors significantly influence environmental impacts. The study emphasizes that while manure-based biogas production has global potential, regional adaptations are necessary to maximize sustainability outcomes. Furthermore, ref. [ 18 ] analyzed the technical challenges facing biogas plants in agriculture-heavy countries like Pakistan, noting that sector growth still needs improve- Appl. Sci. 2025,15, 642 3 of 24 ment despite the substantial organic waste available for biogas production. Key issues include inadequate infrastructure, gas leakages, digestate management, and corrosion, which affect the sustainability and efficiency of biogas operations. The authors recommend design improvements, such as leak-proof piping, optimized digestate removal, corrosionresistant materials, and government support, as essential for realizing biogas’s potential as a reliable renewable energy source in Pakistan and similar regions. Additionally, ref. [ 22 ] optimized biogas production through co-digestion of canola residues and cattle manure, using the response surface methodology to enhance methane yield. Key factors—temperature, total solids concentration, stirring time, and inoculum ratio—were identified as crucial for biogas productivity. In different lab experiments, thermophilic conditions produced the highest methane yield, generating 403.63 l/kg of organic material. The study highlights the response surface methodology as an effective tool for optimizing anaerobic digestion parameters. It demonstrates that co-digestion under controlled conditions significantly boosts methane production, making it advantageous for renewable energy applications. Despite these advancements, a common shortcoming remains the need for further integration of logistical challenges within a holistic system. While these studies advance the technological aspects of biogas production, they often need to fully address practical issues related to biomass sourcing, transportation, and storage. Handling perishable and bulky materials like manure presents significant difficulties that can affect the feasibility and sustainability of biogas projects. Many rely on simulations or controlled conditions without incorporating actual data, failing to account for the complexities of biomass logistics. Recognizing these gaps, some research has focused on biomass logistics and supply chain optimization [ 26 – 31 ]. These studies address crucial operations such as harvesting, storage, pre-processing, and transportation, highlighting that logistics can account for a significant portion of biomass supply costs. For instance, ref. [ 27 ] developed a multiobjective optimization model for designing a sustainable biomass supply chain network, focusing on poultry waste. Their model integrates geographic information systems and the analytic hierarchy process to identify suitable biogas facility locations. The model demonstrates significant cost-effectiveness and environmental benefits by balancing profit maximization with minimizing transportation distances. Similarly, ref. [ 28 ] developed a regional optimization model for biomass transportation, considering economic, social, and environmental costs. Using a mixed integer linear programming framework, they evaluated sustainable transportation costs for potential bioenergy plant locations, incorporating region-specific data on emissions, pavement damage, and traffic congestion. Their findings emphasize the importance of multimodal transport options (truck and rail) to reduce emissions and cost, highlighting the need for comprehensive cost evaluations to support sustainable biomass logistics. Moreover, ref. [ 30 ] comprehensively reviewed biomass transportation and logistics, emphasizing its critical role in the bioenergy supply chain. They categorized research findings across multiple criteria, including logistics cost, transport distance, plant capacity, and system efficiency. The review highlights research gaps, such as the need for sustainable cost models that incorporate economic, environmental, and social factors and better alignment of logistics frameworks with the specific challenges of biomass supply chains. However, existing efforts often operate in isolation from the technical optimization of energy system components, neglecting to comprehensively integrate biomass logistics and storage with biogas production’s economic and operational dimensions—especially under real-world constraints. Factors such as fluctuating biomass supply, transportation challenges, storage limitations, and variable demand profiles affect biogas-based systems’ Appl. Sci. 2025,15, 642 4 of 24 viability and sustainability. As a result, it remains unclear how best to synchronize biomass procurement, reactor operation, and energy generation in practice. To address this research gap, the present study develops a comprehensive model that tightly integrates biomass logistics—including transportation and storage management— with the technical and economic optimization of an existing hybrid energy system. Drawing on real-world data from a project in Aras de los Olmos (Valencia, Spain), this approach systematically accounts for transport distances, scheduling, and storage capacities along with their associated costs, captures real-life factors such as fluctuating biomass availability, generator downtimes, and infrastructural constraints, and balances biogas production with other renewables like solar, wind, and hydropower to mitigate intermittency. The model enhances logistical efficiency, reduces biogas release, and improves energy reliability by uniting these upstream (biomass supply chain) and downstream (energy generation) processes. This holistic approach brings the framework closer to operational applicability, making it more robust and adaptable to varied conditions. Ultimately, the study bridges previous shortcomings by providing a resilient and integrated hybrid energy system better equipped to meet demand under realistic constraints, thereby advancing renewable energy solutions. This paper is organized as follows. Section 2presents the materials and methods employed in the study. In Section 3, the results for various scenarios are discussed. Following this, Section 4discusses the impact of changes, variable sensitivity, and method limitations. Finally, Section 5concludes the paper with key findings and implications. 2. Materials and Methods In this section, the established renewable energy system designed to support the energy needs of a specific region is introduced. The system integrates sustainable resources such as biomass, solar, and wind energy. Biomass, sourced from local supplies, is the primary feedstock in biogas production for electricity generation, enhancing environmental sustainability. The mathematical framework governing biogas production is then delineated, including the fundamental equations and constraints that define the system’s operational limits. This encompasses modeling the biogas production process, reactor dynamics, and the conversion efficiency of biomass to biogas, along with constraints imposed by reactor capacity and operational conditions. Attention is subsequently focused on the biomass supply chain, highlighting strategies to ensure a consistent and cost-effective biomass flow to the reactor. This includes logistical considerations for transportation, storage, and feedstock management—all essential to maintaining system efficiency and sustainability through efficient supply chain management. Finally, the problem is formally defined to address optimizing biomass input and reactor capacity, ensuring that energy demands are met reliably. Various scenarios are presented to evaluate the system’s performance under different conditions, such as fluctuations in biomass availability and energy demand. These scenarios provide insights into the system’s resilience and effectiveness in diverse operational contexts, comprehensively analyzing the renewable energy system’s capabilities and potential challenges. 2.1. Area and System Study Aras de los Olmos is a small rural municipality in the Valencian Community of Spain, with fewer than 400 residents. Located at the end of a 20 kV power line, the area has experienced frequent outages and issues with electricity reliability. The municipality offers ideal conditions for renewable energy implementation, with available land for constructing Appl. Sci. 2025,15, 642 5 of 24 wind, solar, and biogas plants, supported by its economy, which heavily relies on livestock farming, providing ample biogas feedstock. With a drop of over 100 m, the nearby river also creates a suitable location for a hydroelectric plant. These factors make Aras de los Olmos an excellent candidate for developing a hybrid renewable energy system that combines PV, wind, hydro, and biogas to ensure a reliable and sustainable energy supply. The energy demand in Aras de los Olmos, along with Losilla, has been carefully tracked to improve the quality and reliability of the electricity supply. Data on the municipality’s energy consumption has been recorded over several years to identify patterns. On average, the city uses about 150 kWh of electricity per day, with peaks reaching 250 kWh during the busiest times. Weekly data show that most energy is consumed during daylight hours, with a noticeable drop around midday. Monthly consumption varies significantly, peaking in the summer months like August and dropping during the early part of the year, with an average of 120 MWh per month. Annual trends from 2019 to 2022 indicate a steady rise in energy use, with a projected growth rate of 1.4% per year. This gradual increase reflects the shift towards greater electrification and the community’s growing reliance on renewable energy sources. The energy system established in Aras de los Olmos integrates multiple renewable energy technologies to create an autonomous and sustainable energy supply for the region. Figure 1presents the designed system incorporating key components [32]. Appl. Sci. 2025, 15, x FOR PEER REVIEW 5 of 24 livestock farming, providing ample biogas feedstock. With a drop of over 100 m, the nearby river also creates a suitable location for a hydroelectric plant. These factors make Aras de los Olmos an excellent candidate for developing a hybrid renewable energy system that combines PV, wind, hydro, and biogas to ensure a reliable and sustainable energy supply. The energy demand in Aras de los Olmos, along with Losilla, has been carefully tracked to improve the quality and reliability of the electricity supply. Data on the municipality’s energy consumption has been recorded over several years to identify patterns. On average, the city uses about 150 kWh of electricity per day, with peaks reaching 250 kWh during the busiest times. Weekly data show that most energy is consumed during daylight hours, with a noticeable drop around midday. Monthly consumption varies significantly, peaking in the summer months like August and dropping during the early part of the year, with an average of 120 MWh per month. Annual trends from 2019 to 2022 indicate a steady rise in energy use, with a projected growth rate of 1.4% per year. This gradual increase reflects the shift towards greater electrification and the community’s growing reliance on renewable energy sources. The energy system established in Aras de los Olmos integrates multiple renewable energy technologies to create an autonomous and sustainable energy supply for the region. Figure 1 presents the designed system incorporating key components [32]. Wind Power Plant Photovoltaic Power Plant Losilla Consumption Aras de los Olmos Consumption Transformer Substation Main Grid Biogas Power Plant Hydroelectric Power Plant Figure 1. The schematic of the energy system designed for the Aras de Los Olmos area. PV Power Plant (700 kW): A solar power plant equipped with a tracking system is a central component of the renewable energy mix. This PV installation captures and converts solar energy into electricity, contributing significantly to the local energy supply. The tracking system ensures that the solar panels are always positioned optimally to capture maximum sunlight throughout the day. The 700 kW capacity was chosen to account for future growth in energy demand as the minimum required power for the next 30 years, considering a 1.4% annual increase in consumption. Wind Power Plant (200 kW): A wind power facility located in an elevated area captures wind energy and converts it into electricity. This plant diversifies the energy supply Figure 1. The schematic of the energy system designed for the Aras de Los Olmos area. PV Power Plant (700 kW): A solar power plant equipped with a tracking system is a central component of the renewable energy mix. This PV installation captures and converts solar energy into electricity, contributing significantly to the local energy supply. The tracking system ensures that the solar panels are always positioned optimally to capture maximum sunlight throughout the day. The 700 kW capacity was chosen to account for Appl. Sci. 2025,15, 642 6 of 24 future growth in energy demand as the minimum required power for the next 30 years, considering a 1.4% annual increase in consumption. Wind Power Plant (200 kW): A wind power facility located in an elevated area captures wind energy and converts it into electricity. This plant diversifies the energy supply and ensures a stable flow of electricity even when other renewable sources may not be as effective. Hydroelectric Power Plant (200 kW): A small-scale hydroelectric plant is integrated into the system, harnessing the power of flowing water to generate electricity. This facility adds a reliable, consistent energy source, especially during lower solar and wind availability. The system includes two water tanks: an upper tank with a capacity of 20,000 m 3 and a lower tank with a capacity of 4000 m 3 . These tanks are part of a pumped hydro storage system that stores excess energy. Water can be pumped from the lower to the upper tank when excess renewable energy is available, and it can then be released through turbines to generate electricity when demand is higher or other energy sources are insufficient. A dedicated pumping station manages water movement between the upper and lower tanks. This station ensures the efficient operation of the hydroelectric component of the system, facilitating energy storage and release as needed. Biomass Power Plant (200 kW): The biomass and biogas plant is another vital energy source. Local biomass is processed to produce biogas, which is then used to generate electricity. This facility adds to the overall sustainability of the energy system by utilizing organic waste and other renewable feedstocks available in the region. Main Grid: The energy system in Aras de los Olmos is designed with the flexibility to operate autonomously or be connected to the general energy grid. This setup allows for energy independence during outages or low external supply while still being integrated into the broader network when necessary. Four 20 kV evacuation lines have been constructed to handle the high-voltage power transmission generated from renewable sources. These lines, capable of carrying up to 2.5 times the maximum power generated by the renewable plants, connect to the existing distribution infrastructure, which has sufficient capacity to accommodate the new power without extension. Additionally, three new transformer substations will be built to ensure proper voltage levels for local consumption, stepping down the electricity for homes and businesses. This dual functionality of regional autonomy and connection to the broader grid offers both resilience and efficiency to the system. 2.2. Biogas Production and Management In this renewable energy system, the only controllable parameter is the biomass input to the biogas reactor, which is crucial for biogas production. This is because other energy sources, such as solar and wind, inherently depend on environmental conditions and are not directly controllable. Solar energy generation varies based on sunlight availability, which changes throughout the day and is influenced by weather conditions and seasonal patterns. Similarly, wind power generation depends on wind speed and is subject to fluctuations that cannot be regulated. The system incorporates a hydroelectric component as an energy storage mechanism to balance these fluctuations. When solar panels or wind turbines generate excess energy, this surplus pumps water from a lower reservoir to an upper reservoir. During higher energy demand, or when solar and wind resources are insufficient, the stored water is released from the upper to the lower reservoir, driving turbines to generate electricity. This energy storage capability helps smooth out the variability of renewable energy sources, reducing reliance on the external grid and ensuring that energy needs can be met consistently. However, the biomass input remains the most flexible and directly controllable parameter. By adjusting the amount of biomass fed into the biogas reactor, the system can ensure a steady production of biogas, producing electricity. This controllability allows for Appl. Sci. 2025,15, 642 7 of 24 continuous energy generation even when solar and wind resources and hydroelectric storage are insufficient to meet demand. Biomass, therefore, plays a crucial role in maintaining the overall system’s stability and reducing dependence on the grid. Since biogas production can be controlled by adjusting the biomass flow entering the digester, a more detailed analysis of the governing relationships is required. Understanding the dynamics between biomass input and biogas output is crucial for optimizing the system’s performance, ensuring consistent energy generation, and maintaining the efficiency of the overall process. Biogas production in an anaerobic digestion system relies heavily on the quantity and characteristics of the biomass fed into the reactor. The total biomass input ( mBiomass ) is a key factor, and only a fraction of that, known as volatile solids ( fVS ), can be broken down by microbes to produce biogas. The percentage of fVS in the biomass is 80%, indicating that 80% can be converted into biogas. Additionally, the conversion efficiency ( ηConversation ), which is 75%, represents the proportion of volatile solids converted into biogas during digestion. The mass of volatile solids that are converted into biogas each day (mVS) can be calculated using Equation (1): mVS =mBiomass ×fVS ×ηConversation (1) From this, the daily biogas production rate is calculated by considering the methanogenic capacity ( kMethanogenic ), representing the volume of biogas produced per kilogram of volatile solids. In this case, kMethanogenic is estimated to be 0.228 Nm3/kg , meaning that 0.228 cubic meters of biogas is produced for every kilogram of volatile solids. The maximum potential biogas production rate can be calculated using Equation (2): Qmax =mVS ×kMethanogenic (2) This gives the maximum potential biogas production rate at the start of the process on Day 1 (Qmax), reflecting the energy output when the system runs at full capacity. However, biogas production does not remain constant over time. As the microbes digest biomass, the rate of biogas production gradually decreases. This time-dependent decay in biogas production is often modeled using an exponential decay function. The biogas production at any given time tcan be described using Equation (3): Q(t)=Qmax ×exp(−k×(t−1)) (3) Here, Q(t) is the biogas production at time t, Qmax is the initial production rate (calculated previously), and kis a decay constant that governs how quickly biogas production declines. This exponential decay is essential because it reflects the actual behavior of anaerobic digesters: biogas production peaks shortly after the biomass is introduced and slowly tapers off as digestion continues. Therefore, understanding the time dynamics of biogas production is crucial for ensuring a consistent energy supply, especially when the system is integrated with other renewable energy sources, like solar and wind, which are less controllable. Due to the use of animal waste from local farms, including rabbits, pigs, and chickens, the decay constant for biogas production is estimated to be around 0.135 [ 33 ]. This value reflects the relatively fast degradation of organic material in animal waste, leading to a quicker process than other biomass types. Figure 2shows the biogas production process for 1 kg of biomass over 30 days. The top graph illustrates the biogas production rate ( m3/day ), which starts high and gradually decreases following an exponential decay as the available biomass is consumed. By the Appl. Sci. 2025,15, 642 8 of 24 end of the period, the production rate approaches zero. The bottom graph presents the cumulative biogas production ( m3 ), which steadily increases over time before flattening out as production slows. This indicates that most of the biogas is generated in the early days of the process, with diminishing returns as the digestion process progresses. Appl. Sci. 2025, 15, x FOR PEER REVIEW 8 of 24 Figure 2. The biogas production rate for 1 kg over 30 days. As seen in Figure 2, the retention time of the biomass is estimated to be 30 days. Retention time refers to the period during which the biomass remains in the digester for biogas production. The 30-day period ensures that most biodegradable material is fully broken down, maximizing biogas yield. This duration allows optimal digestion while preventing excess accumulation of undegraded material, ensuring efficient system operation. As has been shown in Figure 2, the representation of cumulative biogas production over a given period is calculated using Equation (4): 𝑄 =𝑄(𝑡)   (4) In this case, 𝑄 represents the cumulative biogas produced between the starting time 𝑡 and the end time 𝑡+𝑇. 𝑇 corresponds to retention time. Converting daily biogas production equations into hourly values provides a more detailed and precise understanding of the system’s dynamics. Using hourly rates makes monitoring and managing fluctuations in biogas production throughout the day easier, especially when integrating biogas generation with other renewable energy sources like solar and wind. This allows for better matching energy supply with real-time demand, optimizing generator operation, and ensuring more efficient use of biogas, particularly during peak energy consumption or reduced availability of other energy sources. The hourly biogas production is analyzed with greater granularity, providing insights into the fluctuations in generation rates across different hours. This detailed perspective is crucial for optimizing energy supply and ensuring that demand is met consistently throughout the day, as described in Equation (5): 𝑄(𝑡)=𝑚 × 𝑓  ×𝜂 ×𝑘 ×𝑒𝑥𝑝󰇧−𝑘 730×(𝑡−1)󰇨 24 (5) The cumulative biogas production must account for each input over its retention time if there are different biomass inputs at various times. In this case, the equation would sum Figure 2. The biogas production rate for 1 kg over 30 days. As seen in Figure 2, the retention time of the biomass is estimated to be 30 days. Retention time refers to the period during which the biomass remains in the digester for biogas production. The 30-day period ensures that most biodegradable material is fully broken down, maximizing biogas yield. This duration allows optimal digestion while preventing excess accumulation of undegraded material, ensuring efficient system operation. As has been shown in Figure 2, the representation of cumulative biogas production over a given period is calculated using Equation (4): QCumulative = ti+T ∑ ti Q(t)(4) In this case, QCumulative represents the cumulative biogas produced between the starting time tiand the end time ti+T.Tcorresponds to retention time. Converting daily biogas production equations into hourly values provides a more detailed and precise understanding of the system’s dynamics. Using hourly rates makes monitoring and managing fluctuations in biogas production throughout the day easier, especially when integrating biogas generation with other renewable energy sources like solar and wind. This allows for better matching energy supply with real-time demand, optimizing generator operation, and ensuring more efficient use of biogas, particularly during peak energy consumption or reduced availability of other energy sources. The hourly biogas production is analyzed with greater granularity, providing insights into the fluctuations in generation rates across different hours. This detailed perspective is crucial Appl. Sci. 2025,15, 642 9 of 24 for optimizing energy supply and ensuring that demand is met consistently throughout the day, as described in Equation (5): Q(t)=mBiomass ×fVS ×ηConversation ×kMethanogenic ×exp−k 730 ×(t−1) 24 (5) The cumulative biogas production must account for each input over its retention time if there are different biomass inputs at various times. In this case, the equation would sum the biogas production from each input separately over the relevant hourly period. The generalized form of the cumulative biogas production is represented in Equation (6): QCumulative = n ∑ 1 ti+T ∑ ti Q(t)(6) Figure 3illustrates the biogas production over time for two biomass inputs: 20 tons at hour 1 and 10 tons at hour 400. The top graph shows the biogas production rate ( m3/h ), with two distinct peaks corresponding to the two biomass inputs. The first peak, larger in magnitude, reflects the higher input of 20 tons, while the second, smaller peak represents the 10-ton input at hour 400. After each peak, the production rate decreases exponentially as the volatile solids in the biomass are consumed. The bottom graph depicts the cumulative biogas production ( m3 ), showing a steady increase as the biogas is produced following each biomass input. As production slows down after both inputs, the cumulative production curve flattens, reflecting the complete digestion of the biomass over time. This highlights how the amount and timing of biomass inputs affect the production rate and the cumulative output of biogas. Appl. Sci. 2025, 15, x FOR PEER REVIEW 9 of 24 the biogas production from each input separately over the relevant hourly period. The generalized form of the cumulative biogas production is represented in Equation (6): 𝑄 =𝑄(𝑡)     (6) Figure 3 illustrates the biogas production over time for two biomass inputs: 20 tons at hour 1 and 10 tons at hour 400. The top graph shows the biogas production rate (m/h), with two distinct peaks corresponding to the two biomass inputs. The first peak, larger in magnitude, reflects the higher input of 20 tons, while the second, smaller peak represents the 10-ton input at hour 400. After each peak, the production rate decreases exponentially as the volatile solids in the biomass are consumed. The bottom graph depicts the cumulative biogas production (m), showing a steady increase as the biogas is produced following each biomass input. As production slows down after both inputs, the cumulative production curve flattens, reflecting the complete digestion of the biomass over time. This highlights how the amount and timing of biomass inputs affect the production rate and the cumulative output of biogas. Based on the daily biogas requirement, the total biogas needed for a year is calculated using Equation (7): 𝑄 =365×𝑄 (7) Figure 3. Multi-input biogas production rate. To ensure stable and continuous biogas production, Equation (8) must always hold: 𝑄 ≤𝑄 (8) By maintaining this balance, the system can consistently meet energy needs without falling short, ensuring a reliable and sustainable energy supply throughout the operation. It is important to note that the available volume of waste is limited. According to data provided by the municipality, this volume is 9880 tons per year. To achieve optimal biogas production, exceeding this amount will not be possible. Therefore, the system must be designed to operate efficiently within this biomass availability limit, as expressed using Equation (9): Figure 3. Multi-input biogas production rate. Appl. Sci. 2025,15, 642 16 of 24 3 from Table 1) demonstrate different supply patterns, charging, and releasing dynamics based on the available biomass input and storage capacity. In both cases, the system is designed to ensure that all demand is met, with any surplus biogas either stored or released when storage reaches its maximum capacity. In both cases, biogas production, demand, and storage capacity balance are carefully managed through charging and releasing biogas when necessary. Charging (green bars) begins when biogas production exceeds demand and the storage has available capacity. In both cases, the charging process starts around the same time (approximately hour 8). However, the difference lies in the storage and release patterns. In Case 1, storage fills up quickly, leading to earlier and more frequent releases of excess biogas (blue bars). On the other hand, in Case 3, the storage period is longer before releasing excess biogas due to the larger total biomass input, resulting in fewer but larger releases. As the system works to meet demand, discharging (red bars) ensures the energy requirements are met when production is insufficient. In both cases, the storage never falls below the minimum reserve level, ensuring that the system can handle fluctuations in demand. The dashed line shows that the system consistently meets demand, only drawing from storage when necessary. Appl. Sci. 2025, 15, x FOR PEER REVIEW 16 of 24 Figure 5 illustrates the process of meeting biogas demand over 48 h, showcasing how the system handles energy generation, storage, and release. The two cases (Case 1 and Case 3 from Table 1) demonstrate different supply patterns, charging, and releasing dynamics based on the available biomass input and storage capacity. In both cases, the system is designed to ensure that all demand is met, with any surplus biogas either stored or released when storage reaches its maximum capacity. Figure 5. The process of meeting biogas demand over 48 h for Scenario 1. In both cases, biogas production, demand, and storage capacity balance are carefully managed through charging and releasing biogas when necessary. Charging (green bars) begins when biogas production exceeds demand and the storage has available capacity. In both cases, the charging process starts around the same time (approximately hour 8). However, the difference lies in the storage and release patterns. In Case 1, storage fills up quickly, leading to earlier and more frequent releases of excess biogas (blue bars). On the other hand, in Case 3, the storage period is longer before releasing excess biogas due to the larger total biomass input, resulting in fewer but larger releases. As the system works to meet demand, discharging (red bars) ensures the energy requirements are met when production is insufficient. In both cases, the storage never falls below the minimum reserve level, ensuring that the system can handle fluctuations in demand. The dashed line shows that the system consistently meets demand, only drawing from storage when necessary. The release rates in both cases are linked to how quickly the storage fills up. In Case 1, the release rate is lower (35.17%) because the system manages storage effectively with the smaller biomass input. In Case 3, the release rate is higher (52.89%) due to the larger biomass input, causing the storage to fill up faster and leading to more frequent releases of surplus gas. The supply step is crucial. In Case 3, with a longer supply step (195 h), the system can operate for extended periods without restocking biomass, resulting in more stable charging and releasing patterns. Conversely, Case 1, with shorter supply intervals (90 h), requires more frequent interventions, potentially increasing operational complexity. Figure 5. The process of meeting biogas demand over 48 h for Scenario 1. The release rates in both cases are linked to how quickly the storage fills up. In Case 1, the release rate is lower (35.17%) because the system manages storage effectively with the smaller biomass input. In Case 3, the release rate is higher (52.89%) due to the larger biomass input, causing the storage to fill up faster and leading to more frequent releases of surplus gas. The supply step is crucial. In Case 3, with a longer supply step (195 h), the system can operate for extended periods without restocking biomass, resulting in more stable charging and releasing patterns. Conversely, Case 1, with shorter supply intervals (90 h), requires more frequent interventions, potentially increasing operational complexity. Appl. Sci. 2025,15, 642 17 of 24 Figure 5demonstrates how the system effectively balances biogas production, charge, and release to meet demand and efficiently manage storage. The system is designed to prevent wastage while ensuring a stable and reliable energy supply. A new optimization was performed for Scenario 2, where other energy generators are assumed to be offline during July, necessitating a 24 h biogas supply. This adjustment led to changes in the biomass supply intervals to meet the increased demand. The optimized results for this analysis are presented in Table 2, showing the impact on biomass inputs, costs, and biogas generation efficiency. Table 2. Optimal results for Scenario 2. No. Trips (Tons) Supply Step (h) Bio. (Tons) Generation (m3) Released (m3) Release (%) Bio. Cost (USD) Trans. Cost (USD) Total Cost (USD) 1 1 ×15 + 100 ×5 90/60 515 515,450 163,576 31.73 16,995 21,735 38,730 2 1 ×20 + 62 ×10 146/99 640 635,708 283,660 44.62 21,120 14,195 35,315 3 1 ×25 + 45 ×15 195/160 700 703,062 351,175 49.95 23,100 10,830 33,930 4 1 ×25 + 40 ×20 219/181 825 818,594 466,797 57.02 27,225 10,055 37,280 The comparison between Table 1(Scenario 1) and Table 2(Scenario 2) highlights key differences that emerge under the distinct conditions of each scenario. In Scenario 2 (Table 2), the biomass input is slightly higher across all cases compared to Scenario 1. For instance, in Case 1, the total biomass increases from 500 to 515 tons. This increased biomass reflects the need to meet the 24 h continuous demand during the one month when solar panels are out of service in Scenario 2. The dual numbers in the supply step (e.g., 90/60 h in Case 1) indicate that biomass is supplied every 90 h throughout the year. Still, during the month when solar panels are offline, the supply must be increased to every 60 h to ensure continuous biogas production. This adjustment in Scenario 2 is necessary to maintain a steady biogas supply during the 24 h demand period. The release rate in Scenario 2 is consistently lower than in Scenario 1, indicating that more biogas is utilized or stored rather than released. For example, in Case 1, the release rate decreases from 35.17% to 31.73%. This suggests that Scenario 2, with the extended demand period, results in more efficient use of biogas, as more of it is required to meet the continuous demand. The biomass cost increases slightly in Scenario 2 due to the higher total biomass input. For example, in Case 1, the biomass cost rises from USD 16,500 to USD 16,995. Similarly, transportation costs increase in Scenario 2 because of the more frequent biomass deliveries required during the 24 h demand period. The total cost in Scenario 2 is generally higher across all cases due to the increased biomass input and more frequent trips required to supply the reactor. For example, in Case 1, the total cost rises from USD 37,590 in Scenario 1 to USD 38,730 in Scenario 2. The higher costs reflect the need to maintain continuous biogas availability during the extended operational period. Generally, Scenario 2 results in higher costs due to increased biomass input and more frequent deliveries. However, it also leads to lower release rates, indicating more efficient use of the biogas to meet the continuous 24 h demand during the solar panel outage period. While Scenario 2 incurs higher costs, it ensures that biogas is available for longer, maintaining a stable energy supply during the critical month. Acomparativeexaminationofthebiogasreleaseratesandoverallcostsin Scenarios 1 and 2 reveals distinct efficiency patterns. Although both scenarios ensure adequate energy supply, Scenario 2 ′ s continuous demand schedule leads to more effective use of biogas, as evidenced by Appl. Sci. 2025,15, 642 18 of 24 its lower release rates (see Table 2). In contrast, Scenario 1 ′ s intermittent demand cycle generally results in higher release percentages, indicating that excess biogas is vented to maintain safe reactor conditions. Despite the additional costs incurred in Scenario 2 to handle more frequent deliveries and increased biomass input, the net benefit of reduced venting translates into a more efficient energy utilization profile. These findings underscore the interplay between cost factors (transportation, biomass procurement) and operational outcomes (biogas usage versus release), offering a holistic view of how system design influences practical performance. To evaluate the system’s performance during the high-demand month of July, where biogas is required continuously for 24 h daily, the generated and released biogas for Scenario 1 and 2 (focusing on Case 3 in each scenario) have been plotted in Figure 6. It demonstrates how the system responds to the demand in both scenarios. It highlights key differences in biogas generation and release patterns under these distinct operational conditions, noting that the demand has increased in one of the scenarios. Figure 6illustrates the generated and released biogas over time for Scenario 1 and 2; both focused on Case 3 during the high-demand period of July. In Scenario 2, where the biogas demand is continuous for 24 h, the system generates biogas at a higher and more frequent rate than in Scenario 1. The sharper declines in the generated biogas curves for Scenario 2 indicate a quicker depletion of biogas as the system tries to meet the constant demand. In contrast, Scenario 1 shows a more gradual usage of biogas due to the 12 h demand window. In both cases, when production exceeds demand, biogas is released. However, in Scenario 2, the reduced amount of released gas highlights the system’s efficiency in utilizing more biogas to meet demand. Conversely, Scenario 1 shows higher release volumes, as surplus gas accumulates during the lower-demand periods, leading to more frequent releases. Overall, the comparison between these two scenarios demonstrates that during the highdemand month of July, the system in Scenario 2 can more effectively use biogas to meet the 24 h demand, with less surplus gas released. Appl. Sci. 2025, 15, x FOR PEER REVIEW 18 of 24 biogas, as evidenced by its lower release rates (see Table 2). In contrast, Scenario 1′s intermittent demand cycle generally results in higher release percentages, indicating that excess biogas is vented to maintain safe reactor conditions. Despite the additional costs incurred in Scenario 2 to handle more frequent deliveries and increased biomass input, the net benefit of reduced venting translates into a more efficient energy utilization profile. These findings underscore the interplay between cost factors (transportation, biomass procurement) and operational outcomes (biogas usage versus release), offering a holistic view of how system design influences practical performance. To evaluate the system’s performance during the high-demand month of July, where biogas is required continuously for 24 h daily, the generated and released biogas for Scenario 1 and 2 (focusing on Case 3 in each scenario) have been plotted in Figure 6. It demonstrates how the system responds to the demand in both scenarios. It highlights key differences in biogas generation and release patterns under these distinct operational conditions, noting that the demand has increased in one of the scenarios. Figure 6. Comparison between the generated and released biogas for both scenarios. Figure 6 illustrates the generated and released biogas over time for Scenario 1 and 2; both focused on Case 3 during the high-demand period of July. In Scenario 2, where the biogas demand is continuous for 24 h, the system generates biogas at a higher and more frequent rate than in Scenario 1. The sharper declines in the generated biogas curves for Scenario 2 indicate a quicker depletion of biogas as the system tries to meet the constant demand. In contrast, Scenario 1 shows a more gradual usage of biogas due to the 12 h demand window. In both cases, when production exceeds demand, biogas is released. However, in Scenario 2, the reduced amount of released gas highlights the system’s efficiency in utilizing more biogas to meet demand. Conversely, Scenario 1 shows higher release volumes, as surplus gas accumulates during the lower-demand periods, leading to more frequent releases. Overall, the comparison between these two scenarios demonstrates that during the high-demand month of July, the system in Scenario 2 can more effectively use biogas to meet the 24 h demand, with less surplus gas released. Figure 6. Comparison between the generated and released biogas for both scenarios. Appl. Sci. 2025,15, 642 19 of 24 4. Discussion A detailed examination of biomass input and demand variations is essential to understand how fluctuations in biomass availability affect energy security and supply reliability. Increased biomass input leads to more stable biogas production, reducing strain on storage facilities and ensuring a consistent energy supply. Conversely, decreased biomass input may increase reliance on stored biogas, potentially leading to unmet demand if storage capacity is inadequate. These dynamics highlight the system’s resilience and adaptability to changing biomass availability. Integrating renewable sources like solar and wind is crucial in managing energy supply fluctuations. During high solar or wind availability periods, dependence on biogas decreases, allowing excess biogas to be stored for future use. When solar or wind resources are limited, reliance on biogas intensifies, necessitating a robust supply chain and adequate storage. This variability underscores biogas’s vital role in offsetting the intermittency of solar and wind energy to maintain a balanced energy mix. Addressing key variables such as biomass input, storage capacity, and demand levels provides insights into the system’s sensitivity to different factors. Varying biomass input directly impacts biogas availability: increased input stabilizes energy production, while decreased input heightens reliance on storage. Storage capacity is critical; extensive storage buffers against demand fluctuations, whereas limited storage may lead to unmet demand. High demand levels can stretch resources, requiring reliable biomass input and ample storage to ensure continuous energy supply. Scenario analysis deepens our understanding of system resilience by testing conditions like unexpected outages in renewable sources due to severe weather conditions or technical issues. Seasonal changes may reduce biomass availability during certain months, increasing dependency on storage. Analyzing these cases helps identify periods when the system remains robust and when enhancements in storage capacity or alternative energy inputs are necessary to prevent shortages. This approach highlights potential vulnerabilities and guides investment decisions for capacity improvements or operational adjustments to ensure year-round performance. Consideration of methodological limitations is also essential. Simplifications and assumptions within the model, such as fixed biomass input and ideal storage conditions, affect the accuracy of results. Biomass supply can vary due to seasonal changes, transportation delays, or availability constraints, impacting biogas production and storage levels. Assuming ideal storage conditions may overlook issues like degradation or leakage, affecting the actual volume of biogas. While necessary for model manageability, these simplifications could lead to differences between simulated results and real-world performance. In addition to addressing seasonal and logistical constraints, several technological interventions can enhance the resilience and efficiency of biogas systems. Real-time monitoring and predictive analytics, using Internet of Things (IoT) sensors and machine learning algorithms, enable continuous tracking of biomass availability and demand fluctuations, allowing operators to optimize storage and schedule transportation proactively. Advanced pre-treatment techniques—such as enzymatic or thermal methods—can improve biomass degradability, thereby shortening retention times in the reactor and moderating the impact of seasonal shifts in feedstock quality. Meanwhile, adaptive energy management systems integrate real-time data from solar, wind, or other renewable sources and adjust biogas production dynamically to meet fluctuating demand. This seamless coordination ensures a stable supply of energy across peaks and troughs. Finally, logistics optimization tools, leveraging geographic information systems (GISs) and advanced routing algorithms, minimize transport costs and emissions while guaranteeing timely biomass delivery. By incorpo- Appl. Sci. 2025,15, 642 20 of 24 rating these strategies, biogas facilities can reduce waste, stabilize operations, and meet evolving energy needs despite seasonal and logistical hurdles. The proposed model demonstrates significant scalability and adaptability, making it suitable for use in settings beyond Aras de los Olmos by incorporating real-world data and flexible constraints—such as biomass availability, reactor capacity, and transportation costs. For larger communities, scaling up reactor and storage capacities, optimizing transportation routes for higher volumes of biomass, and integrating additional renewable sources can enhance its effectiveness. At the same time, the modular nature of the framework readily accommodates regional variations in energy consumption patterns. For instance, the model can prioritize those energy sources in areas with abundant solar or wind resources and use biogas as a stabilizing component. In contrast, regions with extensive agricultural or livestock activities may maximize locally available biomass. However, numerical optimization methods like Gurobi can face challenges when dealing with extensive systems or real-time data inputs—particularly in discrete, nonlinear problems requiring substantial computational resources. Consequently, alternative computational approaches or model simplifications may be necessary to maintain performance as the system scales up. Future research could validate the model’s adaptability by applying it to diverse regions, including urban areas with higher energy demands and rural communities with varied resource availability. This balanced emphasis on technical feasibility and computational considerations underscores the model’s potential to facilitate broader adoption of hybrid renewable energy systems tailored to local conditions. A key avenue for broader impact lies in aligning the proposed biomass logistics and hybrid energy framework with existing renewable energy programs and policies. Policymakers and energy agencies can be pivotal in fostering integrated energy systems by supporting infrastructure development that ensures a reliable biomass supply and stable biogas production. Policies promoting collaboration with renewable energy initiatives, such as integrating biogas with solar and wind systems, can enhance energy stability by addressing intermittency issues. Furthermore, incentivizing partnerships with agricultural sectors—particularly in regions rich in biomass residues or manure—can advance circular economy principles by transforming agricultural waste into valuable energy resources while reducing environmental footprints. Policy frameworks can encourage sustainable development and foster energy resilience by embedding biogas as a central component of broader renewable energy strategies. In parallel, targeted economic policies are essential to making biogas projects more financially viable. Subsidies, tax credits, and grants can offset the high transportation, storage, and infrastructure costs, enabling wider adoption of biogas technologies. Coordinated financial strategies between energy providers, agricultural industries, and government bodies can also secure consistent feedstock supply and operational sustainability. Regulatory frameworks that reward reduced greenhouse gas emissions or offer preferential energy pricing for renewable sources further enhance the economic appeal of biogas. By emphasizing these economic incentives and reducing operational barriers, policymakers can align logistical efficiency with long-term profitability. This synergy between economic strategies and model-based optimization drives the adoption of hybrid energy systems, stabilizes rural economies and strengthens long-term energy resilience. Practical considerations for real-world implementation are critical to ensuring the system’s reliability and efficiency. Variability in biomass availability—caused by seasonal harvest cycles, weather conditions, or transportation delays—can lead to fluctuations in biogas production and strain energy supply chains. Additionally, variations in biomass quality, such as differences in feedstock composition or moisture content, directly impact conversion efficiency and energy output. Effective storage management further complicates Appl. Sci. 2025,15, 642 21 of 24 these dynamics, as issues like degradation or maintenance can reduce the usable volume of biogas, potentially affecting system performance. While this study relied on real-world data from an actual project—limiting the scope for testing extensive variations—it recognized the importance of assessing the impact of fluctuating input variables. A comprehensive sensitivity analysis could address seasonal changes in biomass composition, generator efficiency variations, and storage limitations. Incorporating these analyses in future work would improve the model’s robustness, offering more profound insights into its adaptability across diverse operational contexts. Such refinements would help ensure the system’s resilience under real-world challenges and enhance its scalability for broader applications. Moreover, increasing storage volume could significantly reduce gas venting and associated greenhouse gas emissions. Such an expansion, however, involves added construction costs and must be evaluated alongside the potential savings in fuel losses and environmental benefits. Optimizing reactor, generator, and storage dimensions from the outset—based on forecast demand and the potential for excess biogas production—can lead to a more integrated and cost-effective system design. In addition to sizing the biogas-related equipment, other system components, such as generators and storage units, must also be precisely sized. Only with all components operating at their best capacities can the system achieve maximum efficiency and resilience, effectively accommodating operational challenges in supply, storage, and energy generation. These practical insights highlight the importance of a comprehensive approach to system optimization, considering all components within the framework of real-world challenges. In closing, this discussion of parameter sensitivity, methodological limitations, and practical implications provides a comprehensive understanding of the model’s strengths and areas for improvement. By addressing these aspects, the study underscores the potential of biogas as a stabilizing energy source. It outlines strategies for refining the model to enhance its applicability and reliability in diverse practical scenarios. 5. Conclusions This study highlights the critical role of biogas production in hybrid renewable energy systems, emphasizing the importance of optimizing biomass logistics and storage management. By examining variations in biomass input, storage capacity, and energy demand, the research demonstrates how strategic resource planning can stabilize supply, minimize unmet demand, and reduce dependence on supplementary energy sources. Biogas proves essential in balancing the intermittency of solar and wind energy, ensuring a steady energy supply under varying conditions. The analysis also underscores the significance of biomass availability and storage capacity in enhancing system resilience, particularly during seasonal fluctuations and demand surges. Scenario testing reveals the system’s ability to address regular and emergency conditions, allowing operators to anticipate shortfalls and proactively adjust resource utilization. However, challenges such as inconsistent biomass supply and suboptimal storage conditions highlight the need for practical solutions in real-world applications. Future research should expand optimization efforts to encompass the entire energy system. Ensuring optimally sized components—such as solar panels, wind turbines, biogas reactors, and storage facilities—can enhance overall efficiency and reliability. Adaptive models leveraging real-time data could further enable dynamic adjustments to biogas production and storage based on live fluctuations in biomass supply, demand, and renewable availability. Such advancements would streamline logistics, reduce biogas release, and improve energy availability, paving the way for a robust and flexible hybrid energy Appl. Sci. 2025,15, 642 22 of 24 system that meets diverse operational requirements. Planning supply chains around these optimized parameters further strengthens energy security and system performance. This study’s findings also have implications for making and future research. From a policy perspective, the results highlight the importance of coupling logistical optimization with renewable energy production—particularly in rural hybrid systems with abundant biomass resources. Policymakers could leverage these insights to design frameworks and incentives (e.g., subsidies for advanced logistical technologies) that encourage the co-development of biogas infrastructure alongside local agricultural operations, ensuring more sustainable energy access and rural development. In terms of future research, there is significant potential to explore adaptive control systems that harness real-time data to optimize biogas production and storage and investigate the model’s scalability in larger or more dynamic energy networks. Additionally, emerging technologies such as blockchain offer new avenues for improving supply chain transparency and traceability in biomass sourcing and distribution. By pursuing these directions, subsequent work can extend the applicability of the approach, fostering more resilient and sustainable renewable energy systems. Author Contributions: Conceptualization, C.R.-B.; data curation, C.R.-B., C.R.-P. and D.D.-C.; formal analysis, P.M.; funding acquisition, C.R.-P.; investigation, P.M.; methodology, P.M.; project administration, G.E.-E.; resources, G.E.-E. and D.D.-C.; software, P.M.; supervision, C.R.-P. and G.E.-E.; validation, C.R.-B., C.R.-P. and G.E.-E.; writing—original draft, P.M.; writing—review and editing, C.R.-B. and G.E.-E. All authors have read and agreed to the published version of the manuscript. Funding: This project received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 101000470 (Natural and Synthetic Microbial Communities for Sustainable Production of Optimised Biogas—Micro4Biogas). Institutional Review Board Statement: Not applicable. Informed Consent Statement: Not applicable. Data Availability Statement: All mean values used in the study have been presented in the manuscript, but the complete recorded data are unavailable due to privacy restrictions. Acknowledgments: This work has been developed with the help of the Universitat Politècnica de València. Additionally, the work was possible because this project received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 101000470 (Natural and Synthetic Microbial Communities for Sustainable Production of Optimised Biogas—Micro4Biogas). Conflicts of Interest: The authors declare no conflicts of interest. References 1. Araoye, T.O.; Ashigwuike, E.C.; Umar, S.A.; Eronu, E.M.; Ozue, T.G.I.; Egoigwe, S.V.; Mbunwe, M.J.; Odo, M.C.; Ajah, N.G. Modeling and Optimization of PV-Diesel-Biogas Hybrid Microgrid Energy System for Sustainability of Electricity in Rural Area. Int. J. Power Electron. Drive Syst. 2023,14, 1855–1864. [CrossRef] 2. Xu, D.; Zhou, B.; Chan, K.W.; Li, C.; Wu, Q.; Chen, B.; Xia, S. Distributed Multienergy Coordination of Multimicrogrids with Biogas-Solar-Wind Renewables. IEEE Trans Ind. Inf. 2019,15, 3254–3266. [CrossRef] 3. Sarkar, T.; Bhattacharjee, A.; Samanta, H.; Bhattacharya, K.; Saha, H. Optimal Design and Implementation of Solar PV-Wind-BiogasVRFB Storage Integrated Smart Hybrid Microgrid for Ensuring Zero Loss of Power Supply Probability. Energy Convers. Manag. 2019, 191, 102–118. [CrossRef] 4. Loboichenko, V.; Iranzo, A.; Casado-Manzano, M.; Navas, S.J.; Pino, F.J.; Rosa, F. Study of the Use of Biogas as an Energy Vector for Microgrids. Renew. Sustain. Energy Rev. 2024,200, 114574. [CrossRef] 5. Nawab, F.; Abd Hamid, A.S.; Arif, M.; Khan, T.A.; Naveed, A.; Sadiq, M.; Imad Ud din, S.; Ibrahim, A. Solar–Biogas Microgrid: A Strategy for the Sustainable Development of Rural Communities in Pakistan. Sustainability 2022,14, 1124. [CrossRef] 6. Santos, M.I.; Maravilha, A.; Bessani, M.; Uturbey, W.; Batista, L. A Model for Optimal Energy Management in a Microgrid Using Biogas. Evol. Intell. 2024,17, 1677–1695. [CrossRef] Appl. Sci. 2025,15, 642 23 of 24 7. Araoye, T.O.; Ashigwuike, E.C.; Egoigwe, S.V.; Ilo, F.U.; Adeyemi, A.C.; Lawal, R.S. Modeling, Simulation, and Optimization of Biogas-Diesel Hybrid Microgrid Renewable Energy System for Electrification in Rural Area. IET Renew. Power Gener. 2021,15, 2302–2314. [CrossRef] 8. Roldán-Blay, C.; Miranda, V.; Carvalho, L.; Roldán-Porta, C. Optimal Generation Scheduling with Dynamic Profiles for the Sustainable Development of Electricity Grids. Sustainability 2019,11, 7111. [CrossRef] 9. Roldán-Porta, C.; Roldán-Blay, C.; Dasí-Crespo, D.; Escrivá-Escrivá, G. Optimising a Biogas and Photovoltaic Hybrid System for Sustainable Power Supply in Rural Areas. Appl. Sci. 2023,13, 2155. [CrossRef] 10. Escrivá-Escrivá, G.; Roldán-Blay, C.; Álvarez-Bel, C. Electrical Consumption Forecast Using Actual Data of Building End-Use Decomposition. Energy Build. 2014,82, 73–81. [CrossRef] 11. Ahmad, A.A.; Zawawi, N.A.; Kasim, F.H.; Inayat, A.; Khasri, A. Assessing the Gasification Performance of Biomass: A Review on Biomass Gasification Process Conditions, Optimization and Economic Evaluation. Renew. Sustain. Energy Rev. 2016,53, 1333–1347. [CrossRef] 12. Rieke, C.; Stollenwerk, D.; Dahmen, M.; Pieper, M. Modeling and Optimization of a Biogas Plant for a Demand-Driven Energy Supply. Energy 2018,145, 657–664. [CrossRef] 13. Esteves, E.M.M.; Herrera, A.M.N.; Esteves, V.P.P.; Morgado, C.d.R.V. Life Cycle Assessment of Manure Biogas Production: A Review. J. Clean. Prod. 2019,219, 411–423. [CrossRef] 14. Khoshnevisan, B.; Duan, N.; Tsapekos, P.; Awasthi, M.K.; Liu, Z.; Mohammadi, A.; Angelidaki, I.; Tsang, D.C.W.; Zhang, Z.; Pan, J.; et al. A Critical Review on Livestock Manure Biorefinery Technologies: Sustainability, Challenges, and Future Perspectives. Renew. Sustain. Energy Rev. 2021,135, 110033. [CrossRef] 15. Liu, Z.; Wang, X. Manure Treatment and Utilization in Production Systems. In Animal Agriculture: Sustainability, Challenges and Innovations; Elsevier: Amsterdam, The Netherlands, 2019; pp. 455–467. [CrossRef] 16. Hoyos-Sebá, J.J.; Arias, N.P.; Salcedo-Mendoza, J.; Aristizábal-Marulanda, V. Animal Manure in the Context of Renewable Energy and Value-Added Products: A Review. Chem. Eng. Process.-Process Intensif. 2024,196, 109660. [CrossRef] 17. Wang, Y.; Zhang, Y.; Li, J.; Lin, J.G.; Zhang, N.; Cao, W. Biogas Energy Generated from Livestock Manure in China: Current Situation and Future Trends. J. Environ. Manag. 2021,297, 113324. [CrossRef] [PubMed] 18. Afridi, Z.U.R.; Qammar, N.W. Technical Challenges and Optimization of Biogas Plants. ChemBioEng Rev. 2020,7, 119–129. [CrossRef] 19. Dimitrov, R.; Ivanov, Z.; Zlateva, P.; Mihaylov, V. Optimization of Biogas Composition in Experimental Studies. E3S Web Conf. 2019,112, 02007. [CrossRef] 20. El-Nahhal, Y.Z.; Al-Agha, M.R.; El-Nahhal, I.Y.; El Aila, N.A.; El-Nahal, F.I.; Alhalabi, R.A. Electricity Generation from Animal Manure. Biomass Bioenergy 2020,136, 105531. [CrossRef] 21. Oliveira, A.C.L.d.; Renato, N.d.S.; Martins, M.A.; Mendonça, I.M.d.; Moraes, C.A.; Resende, M.d.O. Modeling for Estimating and Optimizing the Energy Potential of Animal Manure and Sewage in Small and Medium-Sized Farms. J. Clean. Prod. 2021,319, 128562. [CrossRef] 22. Safari, M.; Abdi, R.; Adl, M.; Kafashan, J. Optimization of Biogas Productivity in Lab-Scale by Response Surface Methodology. Renew. Energy 2018,118, 368–375. [CrossRef] 23. Vlyssides, A.; Mai, S.; Barampouti, E.M. Energy Generation Potential in Greece From Agricultural Residues and Livestock Manure by Anaerobic Digestion Technology. Waste Biomass Valorization 2015,6, 747–757. [CrossRef] 24. Deng, B.; Chen, T.; Pu, Z.; Peng, X.; Qin, X.; Zhan, X.; Wen, J. A Transportation Network Optimization Model for Livestock Manure under Different Terrains Considering Economic and Environmental Benefits. Sustainability 2022,14, 7721. [CrossRef] 25. Egieya, J.M.; ˇ Cuˇcek, L.; Zirngast, K.; Isafiade, A.J.; Pahor, B.; Kravanja, Z. Synthesis of Biogas Supply Networks Using Various Biomass and Manure Types. Comput. Chem. Eng. 2019,122, 129–151. [CrossRef] 26. Malladi, K.T.; Sowlati, T. Biomass Logistics: A Review of Important Features, Optimization Modeling and the New Trends. Renew. Sustain. Energy Rev. 2018,94, 587–599. [CrossRef] 27. Gital Durmaz, Y.; Bilgen, B. Multi-Objective Optimization of Sustainable Biomass Supply Chain Network Design. Appl. Energy 2020,272, 115259. [CrossRef] 28. Ko, S.; Lautala, P.; Fan, J.; Shonnard, D.R. Economic, Social, and Environmental Cost Optimization of Biomass Transportation: A Regional Model for Transportation Analysis in Plant Location Process. Biofuels Bioprod. Biorefining 2019,13, 582–598. [CrossRef] 29. Bijarchiyan, M.; Sahebi, H.; Mirzamohammadi, S. A Sustainable Biomass Network Design Model for Bioenergy Production by Anaerobic Digestion Technology: Using Agricultural Residues and Livestock Manure. Energy Sustain. Soc. 2020,10, 19. [CrossRef] 30. Ko, S.; Lautala, P.; Handler, R.M. Securing the Feedstock Procurement for Bioenergy Products: A Literature Review on the Biomass Transportation and Logistics. J. Clean. Prod. 2018,200, 205–218. [CrossRef] 31. Schnorf, V.; Trutnevyte, E.; Bowman, G.; Burg, V. Biomass Transport for Energy: Cost, Energy and CO2 Performance of Forest Wood and Manure Transport Chains in Switzerland. J. Clean. Prod. 2021,293, 125971. [CrossRef] Appl. Sci. 2025,15, 642 24 of 24 32. Dasí-Crespo, D.; Roldán-Blay, C.; Escrivá-Escrivá, G.; Roldán-Porta, C. Integration of Renewable Resources into the Electricity Energy Matrix. Practical Case Applied to a Small Rural Municipality. Renew. Energy Power Qual. J. 2023,21, 121–126. [CrossRef] 33. González, R.; Peña, D.C.; Gómez, X. Anaerobic Co-Digestion of Wastes: Reviewing Current Status and Approaches for Enhancing Biogas Production. Appl. Sci. 2022,12, 8884. [CrossRef] Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.