Next Article in Journal
Measurement of Corona Discharges under Variable Geometry, Frequency and Pressure Environment
Next Article in Special Issue
Towards Synoptic Water Monitoring Systems: A Review of AI Methods for Automating Water Body Detection and Water Quality Monitoring Using Remote Sensing
Previous Article in Journal
A Distributed Algorithm for Real-Time Multi-Drone Collision-Free Trajectory Replanning
Previous Article in Special Issue
Pressure Sensor Placement for Leak Localization in Water Distribution Networks Using Information Theory
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Comparison of Optimisation Algorithms for Centralised Anaerobic Co-Digestion in a Real River Basin Case Study in Catalonia

by
David Palma-Heredia
1,*,
Marta Verdaguer
1,
Vicenç Puig
2,3,
Manuel Poch
1 and
Miquel Àngel Cugueró-Escofet
2
1
Laboratory of Chemical and Environmental Engineering (LEQUIA), Institute of the Environment, Universitat de Girona, MªAurelia Capmany, 69, 17003 Girona, Spain
2
Advanced Control Systems (SAC) Research Group, Polytechnic University of Catalonia (UPC-BarcelonaTech), Terrassa Campus, Gaia Research Bldg, Rambla Sant Nebridi, 22, 08222 Terrassa, Spain
3
Institut de Robòtica i Informàtica Industrial (CSIC-UPC), 46 Llorens i Artigas Street, 08028 Barcelona, Spain
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(5), 1857; https://doi.org/10.3390/s22051857
Submission received: 27 January 2022 / Revised: 23 February 2022 / Accepted: 24 February 2022 / Published: 26 February 2022

Abstract

:
Anaerobic digestion (AnD) is a process that allows the conversion of organic waste into a source of energy such as biogas, introducing sustainability and circular economy in waste treatment. AnD is an intricate process because of multiple parameters involved, and its complexity increases when the wastes are from different types of generators. In this case, a key point to achieve good performance is optimisation methods. Currently, many tools have been developed to optimise a single AnD plant. However, the study of a network of AnD plants and multiple waste generators, all in different locations, remains unexplored. This novel approach requires the use of optimisation methodologies with the capacity to deal with a highly complex combinatorial problem. This paper proposes and compares the use of three evolutionary algorithms: ant colony optimisation (ACO), genetic algorithm (GA) and particle swarm optimisation (PSO), which are especially suited for this type of application. The algorithms successfully solve the problem, using an objective function that includes terms related to quality and logistics. Their application to a real case study in Catalonia (Spain) shows their usefulness (ACO and GA to achieve maximum biogas production and PSO for safer operation conditions) for AnD facilities.

1. Introduction

In the context of global climate change with rising and more extreme events—such as droughts and floods—which will likely provide growing uncertainty to water demand and jeopardise the availability of specific resources, there is a growing interest in the adaptation and use of technologies related to the circular economy that promote environmental sustainability. In this framework, resource recovery is a key issue for industrial and environmental processes and shows a wide spectrum of study possibilities. In water sanitation, wastewater treatment plants (WWTPs) offer a wide range of possibilities for resource recovery, mainly related to sludge treatment processes [1,2,3,4,5,6,7] as biogas generation via the substrate co-digestion process, which can be an alternative source for thermal and electrical energy production [8,9,10,11,12,13,14]. This potential for biogas generation could be translated as well to a source of renewable natural gas, which has specific composition requirements that demand high-tech sensors to assure its quality no matter its origin, as those developed in [15,16]. Due to their potential for resource recovery and the further implications in the water–food–energy nexus, WWTPs have been a research focus from different areas of expertise: from modelling and engineering design [17,18,19,20,21,22,23,24] to process dynamics, simulation and integration [25,26,27,28].
Anaerobic digestion (AnD), a complex process involved in biogas production, has a delicate balance of substrate composition. The optimal performance requires avoiding process inhibition and maximising biogas generation. The optimal balance may be achieved with the correct mixture of available substrates, but this task is challenging and difficult to achieve manually due to the high combinatorial possibilities and changing availability of substrates of heterogeneous nature. The complexity increases when the process is co-digestion, with the addition of residual substrates produced by agro-food and similar industries, each with its own dynamics of substrate generation and composition [29,30,31,32]. Additionally, not all WWTPs have an anaerobic digester. Therefore, optimisation also requires logistical challenges to process a maximum volume of the available substrates in a certain geographical area and its travel logistics (of sludge and co-substrates) from its origin to the destination digester.
Hence, dealing with such complexity is a former step to tackle optimal co-digestion in a complex network composed of many substrate sources—including WWTPs without AnD processes and industrial producers—and several co-substrate receptors. These will be located in different geographical places. As a result, the logistics of substrates will be affected by the geographical distance between actors involved and the restrictions related to the receptors.
Optimisation of the individual digester feed requires optimal blending of different co-substrates in order to fulfil the volumetric and compositional requirements of the anaerobic procedure. This problem can be understood as a multidimensional knapsack problem (MKP) [33,34,35]. The MKP is an NP-hard problem [36] and has been widely studied in the literature. To solve this type of problem, the use of combinatorial optimisation metaheuristics is proposed in [37,38], mainly when a high number of restrictions are presented [39].
Many tools have been developed to this end, either focused on modelling, control of the optimum co-substrate blending, or system operation, as shown in [37,39,40,41,42,43]. In [37,40], identification and modelling of critical parameters are performed; in [39] control schemes based on the composition qualities are developed; and in [42,43], optimised control strategies are implemented according to blend composition. In [41], logistics are also included to optimise the performance of a single anaerobic digester with co-digestion strategies.
However, in real-world installations, most of these systems are managed and supervised not in a single fashion but in a network fashion. Thus, proper system management requires simultaneous consideration of the entire AnD network to select which combination is the best for each digester to maximise the potential of the overall infrastructure. Besides, literature on this matter is relatively scarce due to its ad-hoc nature. There is literature related to optimised placement of new AnD plants, such as in [44], but it lacks optimisation of the operational part involved in the feeding of the anaerobic digesters. Very specific works can be found about optimisation of supply chain networks in the field of waste valorisation, such as in [45], where an integrated geographical information system (GIS)-based optimisation is performed, but it requires highly detailed and tailored data, so its implementation becomes time-consuming and highly dependent on data availability; furthermore, it does not tackle process optimisation regarding waste processing facilities. Regarding logistics, other works can be found for path planning optimisation such as in [46], where truck routes are traced based on GIS-oriented algorithms, or in [47], where a smart waste bin prototype is developed for sensor-based waste classification. As it can be seen, there is a gap in the literature regarding network optimisation of existing waste management facilities (such as AnD plants) that would include both logistics (i.e., minimising route impact and length) and quality (i.e., improving process performance) optimisation. This is a necessary gap to fulfil, since, as stated before, AnD networks are currently managed in an ad-hoc, manual fashion by the practitioners, which is dramatically time-consuming and needs highly qualified personnel. Although there are currently different approaches that could help overcoming specific parts of this challenge (i.e., those observed in [44,45,46,47]), none of them can currently successfully accomplish the overall task.
The approach presented in this study continues the work introduced in [48] where the optimisation problem of blending in anaerobic co-digestion (AnCD) is handled by an ant colony optimisation (ACO) algorithm in a synthetic case study with realistic conditions, simulating a centralised AnD single-stage reactor that received feed once a day. In [41], the work is extended while considering the quality, social and travel logistics of the co-substrates, analysing its importance to the overall optimisation. In addition, ACO has been implemented in real-world waste sector case studies, e.g., [48,49]. Here, the work is extended to a similar real-world case study considering multiple receptors in the geographical area of the Besòs River basin (Catalonia, Spain). The data used correspond to the real operation conditions of this area. For these conditions, the authors have also evaluated the results obtained using different optimisation approaches such as ACO, genetic algorithms (GA) and particle swarm optimisation (PSO).
ACO, GA and PSO algorithms were selected as convenient approaches to tackle a problem of the nature stated here after reviewing applications of similar nature in the literature. In [50], a review of nature-inspired algorithms is performed, including GA, ACO and PSO—among others—for AnD modelling and optimisation, showing how in the field of AnD, PSO obtains better performance in substrate feed optimisation for agricultural biogas plants than other evolutionary methods. For example, in [51] genetic algorithms are used to minimize the environmental impact caused by mine water. The main drawback for PSO pointed out in [50] is premature convergence, since particles may become trapped in local optima or suffer stagnation, but this may be solved by a partial restart of the process introducing new particles in the search space. In [52], ACO and GA are applied to optimise the route of waste collection vehicles for municipal waste collection and transportation—the highest cost of the entire waste management system—with similar performance attained by both algorithms; however, only the problem of travel logistics is considered, not the blending of municipal waste. Ref. [53] proposes a nonlinear model predictive control strategy using the MATLAB BioOptim toolbox, developed by the same authors, for optimal control of substrate feed to AnD operation of an agricultural biogas plant, with a graphical user interface (GUI) integrating a fitness function including different operating constraints and parameters such as pH, solids or methane concentration, and using evolutionary optimisers such as PSO, covariance matrix adaptation evolution strategy (CMAES). Alternatively, they propose differential evolution (DE), which achieved better performance with PSO but without considering the substrate travel logistics in the optimisation. Ref. [54] presents a prediction and optimisation method using a multi-layer perceptron artificial neural network (ANN) and PSO for the maximisation of biogas generation in a real wastewater treatment facility. A similar approach is presented in [55], where modelling and optimisation of biogas production with mixed substrates are obtained with a combination of ANN and GA methods.
Additionally, ref. [55] and references therein point out how stochastic global optimisation algorithms (SGOAs), such as PSO, the ACO, and GA, among others, are considered efficient alternatives in the design of optimal production media and optimal process operating conditions in fermentation research and can significantly reduce the process development time. Regarding the comparison of the optimisation algorithms selected here solving combinatorial optimisation (CO) problems, in [56], ACO and GA are compared, both achieving good performance but with GA exhibiting slightly better performance than ACO. In the latter reference, it is also mentioned how trimming of specific parameters for both optimisers—e.g., number of iterations, evaporation coefficient and number of ants for ACO, or chromosome population, crossover and mutation probabilities for GA—is required to achieve good performance in both cases. In [57], relationships between GA and ACO-type algorithms are detailed, presenting their similitudes and showing how they use similar principles to succeed in CO problems with globally convex structure of its solution space. Overall, SGOAs such as ACO, GA or PSO have shown good performance in the type of applications presented and hence demonstrated suitability for non-convex nonlinear multidimensional optimisation problems, as presented here. Optimal blending for AnCD is considered, e.g., in [40,55], but to the knowledge of the authors, the optimisation of such blending combined with the travel logistics of co-substrates in a centralised multi-receptor co-digestion strategy has not yet been studied. Additionally, a comparison between different suitable optimisation algorithms for such applications, i.e., ACO, GA and PSO, is presented.
The application of optimisation strategies in AnD allows a significant enhancement of co-digestion strategies [30] maximising biogas production and minimising associated risks to each AnD operation (e.g., overdosing or acidification). In this work, the performance of each optimisation approach considered is evaluated on a real case study in the area of the Besòs River basin in Catalonia, including a network of substrate generators and three anaerobic digesters. Hence, the objective of this study is to develop a tool that is able to optimise the centralised digestion process of an AnD network with multiple waste sources and waste receptors by means of three evolutionary optimisation algorithms—namely, ACO, GA and PSO. Such a tool is tested in a real case study to further analyse and compare the performance of each algorithm in the overall AnD network optimisation.

2. Material and Methods

2.1. Optimisation Algorithms Considered

The optimisation algorithms presented here fall within the set of SGOA, concretely in the subset of evolutionary algorithms (EA) for GA—which use mechanisms inspired by biological evolution, e.g., mutation or recombination to achieve the goal of optimisation—and in the subset of swarm intelligence methods for ACO and PSO based on the collective behaviour of self-organised decentralised systems, respectively. SGOA algorithms have been widely used to solve NP-hard combinatorial optimisation problems, such as that presented in this study, which deterministic optimisation methods fail to handle due to their complexity.
Regarding each proposal, ACO is a metaheuristic approach that has been shown to be effective in solving a variety of NP-hard problems [58]. The algorithm is based on simulation of the behaviour of real ants in their search for food. When ants find food, they leave a pheromone trail on their path. Then, new ants follow that trail. In this way, an increasing number of ants are concentrated in places where there is food. In a similar way, the virtual ants construct a solution moving through the graph that represents the search space of solutions. Their paths are guided by a probabilistic state transition rule, which is based on pheromone trails and specific heuristic information. The algorithmic procedure is iterative. At each iteration, the pheromone trails are updated by applying an evaporation coefficient (when the value selected is not part of a feasible solution). To avoid rapid stagnation of the solution, the ACO algorithms can use several strategies [59], such as that related to the limitation of the pheromone trails between maximum and minimum values. Max–Min Ant System [60] uses this procedure.
The GA is a metaheuristic approach also used in combinatorial optimisation problems. It is based on the mechanics of natural selection and natural genetics. GA applications cover a range of combinatorial optimisations, e.g., hydraulic model calibration [61], performance of photovoltaic systems under variable atmospheric conditions [62], and sensor placement for leak detection in water distribution networks [39,63]. The GA is based on three main parameters: selection, crossover and mutation. The population matrix is randomly generated and consists of the design variables, and the best variables are selected according to their fitness value. From these solutions, new solutions are produced via the crossover operator [64]. The mutation operator is finally employed to avoid the algorithm converging to local optima (i.e., to maintain the genetic diversity).
The GA cycle is repeated through a number of generations until a stopping criterion is met. It is worth noting that elitism is not generally considered an operator in the canonical GA. However, it is deemed a robust and effective operator because it leads the optimisation procedure towards the optimal solution. Accordingly, this operator stops the best solutions from being mutated. In this way, the best solutions of each generation would pass to the next, unaltered. Over the course of the algorithm and through a sufficient number of generations, the traits of these solutions would transfer to their offspring, increasing the chance of producing new solutions whose fitness function values might be better than their parents [64]. Some drawbacks of GAs are noted in [61], e.g., achieving a global optimum for large and complex systems is not guaranteed, which is also a drawback for ACO. In [57], the relation between GAs and ACO is noted.
PSO is a recently developed EA that includes features such as easy implementation for solving practical problems, high accuracy and fast convergence of the solution as some of its main advantages [65,66]. While similarities exist in the iterative nature of PSO and GAs, conversely, in PSO, there are no, e.g., “crossover” or “mutation” operations. Instead, PSO is based on a population of candidate solutions, defined as particles. The set of particles composes a swarm, where each individual flows through the parameter space. The flow of such particles is defined by trajectories, which are driven by the best performance of the particle and the neighbouring particles in the parameter space. The initialization of particle swarm is random. The initial solution of each particle represents an alternative solution; that is, each particle has its own initial position and speed and is randomly distributed in each position of the feasible solution space to be searched. Therefore, the initialization of the particle swarm represents the preparation of the particle swarm search. Its size is determined by its speed and position, and the particle update is based on the comparison of the fitness values between each search particle and its neighbouring search particles to determine the necessity of updating a particle. The updated particle adjusts its speed and position according to the particle’s new flight path model, which is based on the best results achieved by its neighbouring particles. These conditions yield different optimal experiences for different particle subgroups, which dynamically evolve according to the current position of particles, the particle current velocities, the distance between each particle of the subgroup and its best position and the distance between each particle of the subgroup and the best position of the whole subgroup.
The PSO algorithm does not need cross-mutation or other genetically inspired operations, so the algorithm has fewer parameters and is still high efficiency [65]. These properties are suitable for both engineering applications and scientific research, and a significant number of research results have been produced in recent years [67]. For example, in [68], PSO is applied for function optimisation regarding eco-economics modelling and assessment; in [69], it is used as part of fuzzy systems developed to optimise fuel consumption of hybrid vehicles; and in [70], PSO is used to train neural network models and perform real-time optimisation.

2.2. Centralised Co-Digestion as an Optimisation Problem

Mathematical optimisation involves the selection of one solution amongst a set, according to some criterion and constraints (that is, the optimisation problem). This optimisation problem can be stated as:
min x X f ( x )   subject   to   g ( x ) ,
where f(x) is the objective or cost function, X is a feasible region and g(x) are the constraints that have to hold to find a minimiser x* of f(x) such that f ( x * ) = min x X   f ( x ) . ACO, GA and PSO introduced in Section 2.1 are algorithms aimed at finding the optimal solution of the optimisation problem posed in (1)—i.e., minimise the objective function f(·) subject to the set of constraints g(x) that apply—which here consists of the selection of the best substrates and volumes according to a set of restrictions related to the operation of the anaerobic digester. In addition, the cost function allows quantifying each alternative potential solution according to (1), involving the calculation of a value or “cost” associated with each alternative considered to find the optimal solution.
The problem statement is similar to that presented in [41], although the number of waste receptors increases from one to three, thus making necessary a reformulation of the optimisation problem involved. Specifically, it is required to increase the dimensions of all data vectors that define each generator-receptor interaction and their subsequent calculations. In addition, matrix operations are repeated per new dimension (i.e., waste receptor) added.
This optimisation problem, which can be understood as a MKP and is of combinatorial nature, can be represented as a matching problem. It is defined with a graph G = (N, E) that summarises all the possible combinations. The graph consists of N vertices (or nodes) and E edges or pairs of vertices. Specifically, for the case of AnD optimisation, a bipartite graph can be used to represent the posed optimisation problem to differentiate between the set of waste generators (N1), containing W nodes, and the set of waste receptors (N2), containing R nodes. For the specific optimisation problem, all W nodes are connected to each R node, thus resulting in a total of W·R = E edges. Figure 1 shows a generic representation of the defined matching problem applied to AnD co-digestion optimisation.
A set of substrate generators w { 1 , , N } is considered. The volume of each substrate V w can be selected as a contribution to any of the AnD systems. The binary decision variable y w s allows generating array volumetric possibilities ( V w s , with s { 0 , l w } that are determined as a multiple of a number (e.g., 1000 by default) such that 1000 l w = V w . The selection of each volumetric possibility is determined by the corresponding value of the binary decision variable, y w s , where y { 0 , 1 } , with y w s = 0 when the corresponding volumetric configuration is not selected, and y w s = 1 when it is selected. Note that for each waste generator w, there are l w different volumetric configurations in y w s , but only one is selected at a time, i.e., s = 1 l w y w s = 1   w { 1 , N } .
To normalise the objective function, selected volumes V w s are divided by the maximum volume from their corresponding waste generator ( V w ). This approach provides values of the cost function between 0 and 1, where the closest to 1 the better the solution. However, note that the ACO algorithm looks for a maximum of the objective function, while GA and PSO look for a minimum. This behaviour is considered using the constant K { 1 , 1 } , which depends on the algorithm considered: for the ACO algorithm K = 1 and for the GA and PSO algorithms K = 1 . Hence, cost index B would take positive values between 0 and 1 for ACO and negative values between 0 and −1 for GA and PSO. Instead, the absolute value is taken for all three algorithms.
F w c ( c = 1 , ,   3 ) and T w are the set of dimensionless coefficients corresponding to the substrate characterisation and the quality term ( c = 1 3 F w c ) ρ q , already used and explained previously in [41,46] and defined as shown in Figure 2.
F w 1 is a coefficient related to the potential biogas production, measured as a function of the Chemical Oxygen Demand (COD) content. F w 2 indicates the ratio of COD/TN (where TN refers to Total Nitrogen), a useful measure to prevent situations of acidification and other undesired reactions of the AnD process, as long as it is maintained around the range of 20–60. F w 3 is linked to the alkalinity (Alk) concentration, and it is associated with a restriction ranging from 2500 to 6000 mg CaCO3/L integrated within all optimisation algorithms. T w is a coefficient of the utmost importance since it describes the toxicity level of all waste fluxes, which should be kept at the lowest level possible (specifically below 2.1 mg Pb/L).
The N different substrate generators are located at different distances ( d w ) from each anaerobic digester. The conveyance of the selected volumes implies a travel distance   d w (in km) with an economic cost x w (in €/km) and a social impact I w = 1 , ,   3 (dimensionless). The higher the value of I w , the higher the social impact of the related route (e.g., proximity to sensitive areas due to pollution, traffic density, or pedestrian presence). Since each route is different for each generator, different values are assigned to approach the logistic impact of the corresponding waste generator, so a value for I w is assigned for each sludge/substrate generator depending on its route to the ST.
The coefficient weight ρ q (dimensionless) is related to the quality term ( c = 1 3 F w c ) ρ q , and the coefficient ρ x (dimensionless) is the coefficient that weights the logistics term ρ x X w d w I w . Each weight is given a value of 0.5 to provide a balance between the quality and logistics terms in the optimisation. Selected volumes of each substrate to each receptor contribute to the input to the AnD network, and the aforementioned parameters constitute the objective or cost function f(x).
Additionally, the optimisation problem presented considers a set of restrictions g(x) related to each of the total inputs to each of the receptor systems, based on those presented in [41,48]. The first restriction is the sum of accepted substrates w = 1 N   s = 0 l w y w s V w s must not exceed the maximum acceptable volume V for each AnD system. Moreover, the COD/TN ratio, related to the dimensionless coefficient F w 2 , must be kept within the range [ C m i n 2 , C m a x 2 ] . The alkalinity concentration, related to the dimensionless coefficient F w 3 , must also be kept within the range [ C m i n 3 , C m a x 3 ] . The toxicity level, related to T w , does not require restriction since the corresponding coefficient T w is considered to be restrictive enough, as shown in Figure 2.
In addition, an estimation of the produced biogas is made assuming a conversion factor of 0.268 m3 biogas/kg COD. Finally, note that the cost function presented in this work is adapted from [41,48], where the ACO algorithm was used for waste management optimisation in a similar fashion but limited to one AnD receptor.
The objective function f(x) for the presented optimisation problem is as follows in (2). However, note that the performance comparison of the ACO, GA and PSO algorithms is not conducted directly on the value of the optimised objective function, B , but on its absolute value, B , as shown in (3).
B = K { w = 1 N   s = 0 l w y w s V w s V w T w [ ( c = 1 3 F w c ) ρ q + ρ x X w d w I w ] }
B = | B |

3. Results

3.1. Case Study

The case study includes a network of 19 organic waste generators and three organic waste receptors. These 22 locations (i.e., 19 generators and 3 receptors) are part of the wastewater treatment system managed by Consorci Besòs Tordera (CBT), a public local water administration composed of 64 municipalities in four different regions of Catalonia (Spain) with a population of approximately 470,000 inhabitants. This case study and its anaerobic network system were also considered in [41]. Figure 3 shows the corresponding bipartite graph of the case study.
The three organic waste receptors (R1–R3, or nodes 1–3 of Figure 3) refer to three separate WWTPs that produce their own sewage sludge, but that also have available AnD technology. Due to oversized design, which is a usual practice in WWTP design [71], these AnD systems in R1–R3 have available capacity. This free excess capacity can be used to accept wastes from external sources, such as the undigested sewage sludge of W1–W12 or the industrial substrates from C1–C7.
The 19 waste generators consist of 12 WWTPs that produce undigested sewage sludge (W1–W12, or nodes 4–15 of Figure 3) and seven industrial substrate generators (C1–C7, or nodes 16–22 of Figure 3), which were considered suitable sources of organic waste for the AnD network under study. Each of these locations is a separate and independent system that must manage its own waste produced as best as possible. Additionally, seven industrial substrate generators have been previously verified as feasible substrates for AnD by CBT technical services.

3.2. Simulation Methodology

The algorithms used in this work have been implemented in the MATLAB environment. Simulations were performed with a Lenovo ThinkPad (Lenovo Group, Ltd., Girona, Spain) L14 Gen1-20U10016SP ×64 using the OS Microsoft Windows 10 Pro and an Intel(R) Core(TM) i7-10510U CPU processor (1.80 GHz, 2304 MHz) consisting of four main processors and eight logic processors.
The main optimisation parameters of both GA and PSO algorithms were trimmed in an attempt to select the most suitable array to provide reliable results. Accordingly, the same procedure was already performed for the ACO algorithm to determine the values of its corresponding optimisation parameters in [48], where the same optimisation parameters are used in this work.
For the ACO algorithm, an initial population of 100 individuals (or ants) and 500 iterations per repetition is set, and the values used for the algorithm optimisation parameters are α = 1 ,   β = 2 and ρ = 0.98 , each corresponding to the importance assigned to the pheromone trail, the importance assigned to the heuristic information and the persistence degree or pheromone evaporation, as explained in [38,58,60]. For GA, the initial population is set to 100, the total number of iterations (or generations) is set to 500, the crossover fraction is set to 0.8 and the fraction of elite children is set to 5% of the corresponding total children. For PSO, the initial population was set to 100, the total number of iterations was set to 500, cognitive attraction was set to 0.8 and the social attraction factor is set to 1.25. Table 1 and Table 2 summarise trimming tests for GA and PSO, respectively, where the best results are obtained for higher values of objective index B.
For the sake of performance comparison, some parameters were fixed for the three algorithms. The fixed parameters are the number of independent simulations (set to 10, the best result is selected), the population (set to 100 individuals), and the maximum number of iterations (set to 500). With these constraints on algorithm trimming, a performance comparison of ACO, GA and PSO was conducted.
The comparison of ACO, GA and PSO performances is based on the value of the fitness function, execution time and an array of technical variables related to the total expected performance of the optimised AnD network: total daily biogas production (in Nm3), average organic load (in kg of COD per m3 of volume of the digestion system and day), average carbon to nitrogen ratio (C/N), and average alkalinity (in mg of CaCO3). All algorithms are tested with data from a real case study as the main simulation scenario. However, other synthetic scenarios are tested to further compare the performance of each algorithm under different scenario conditions.
In the approach presented here, simulated scenarios are based on the waste generator data in Table 3, alongside route distance and receptor system characterisation. For all the 19 waste generators (i.e., the 12 WWTPs without AnD and the seven substrate generators), the addition to the AnD network is optimised. For each of the three AnD systems (i.e., receptors R1, R2 and R3), different volume constraints have been determined, according to operational data and assuming a limit to the hydraulic retention time of 20 days (below that retention time, AnD efficiency is expected to greatly decrease).
Each simulation for ACO, GA and PSO is repeated 10 times since these algorithms have probabilistic, iterative-based search methods. The best solution among these runs is selected for further analysis, although the average fitness function is also registered for discussion.
The data obtained for ACO, GA and PSO (each comprising 10 repetitions of the corresponding algorithm) are compared for every simulated scenario. The baseline scenario (i.e., Scenario 0) corresponds to the real case study, as described in Table 3. Additional synthetic Scenarios 1–4 are simulated, and their corresponding data are created from alterations of the baseline scenario, as described in Table 4.
While for Scenarios 1 and 2 any modification is viable, for Scenario 3, an increase in volume involves a significant increase in execution time. This is because the optimisation problem works around combinations of fixed volumes, and an increase in volume would involve a higher number of possible combinations for the algorithms to consider (i.e., an increase in the search space), hence the expected increase in execution time. Thus, volume modification for Scenario 3 was limited to a triple increase in the baseline scenario volume. Alternatively, for Scenario 4, the C/N ratios were modified while being kept below 60 to facilitate the algorithms in finding a viable solution. This measure was adopted because the C/N ratio was the most limiting optimisation parameter in previous applications of a similar optimisation problem in [41]. Scenario 2 was designed with both linear and nonlinear distance modifications (Scenarios 2a and 2b, respectively) to discuss the effect of distance distribution, as pointed out in [41]. Note that trimming tests were carried out only for GA and PSO using the baseline scenario, assuming that trimmed parameters would suffice for simulation of other synthetic scenarios similar to the baseline scenario.
The optimisation results are presented as a sequence of contributions from all the generators to each anaerobic digester. This optimised contribution sequence can be considered a suggested logistic plan for the co-substrate distribution as follows: once enough substrate has been produced and stocked on a waste generator, a truck of 20 metric tonnes capacity would be fully loaded with substrate from the corresponding waste generator, disregarding the truck waiting time before starting each route; once fully loaded, the truck is assumed to travel to the waste receptor without further stops (assuming it always follows the same route). As long as the cycle of supply routes of all involved waste generators is completed within the AnD retention time of 20 days, the properties of the resulting blending should not vary significantly, especially considering that every waste receptor would have a receiving system for these external organic substrates, where they would be stored and blended before being added to the AnD system. The specific start and finish time for each route along the day have not been considered; this does not affect the optimisation, although it has been noted that it has considerable impact on real-world implementation.

3.3. Algorithm Performance Comparison and Scenario Analysis

The simulation results for each scenario are shown in Table 5. For every scenario and for ACO, GA and PSO, this table shows the best cost index (B) achieved, elapsed optimisation time, and additional parameters related to the performance of the AnD systems: total biogas production, average organic load, average carbon/nitrogen ratio and average alkalinity.
In the baseline scenario, ACO and GA show higher biogas production than PSO (23% and 30% higher, respectively). However, they show a slightly lower B index achieved (4% and 11% lower). This result indicates that although one of the main goals of AnD optimisation involves maximising biogas production, it is not all that matters because there are other parameters also subjected to optimisation. PSO appears to find a solution with lower biogas production but better optimises other quality parameters, such as the C/N ratio and alkalinity. However, it is remarkable that out of the three algorithms, ACO and GA find a “similar solution” (prioritising high biogas production), and PSO fins a significantly different solution (prioritising other quality-related parameters).
In Scenario 1, the COD concentration was increased tenfold. This was done to compare the efficiency of algorithms to optimise substrates with high organic loads, which is especially meaningful for maximisation of biogas production. For this scenario, ACO and GA have better performance, according to the best index B achieved. As a natural consequence of substantial COD increases, biogas production also dramatically increases. However, PSO is unable to achieve a competitive solution in relation to both ACO and GA within this scenario and the baseline scenario, respectively.
In Scenario 2a, a tenfold lineal increase in the geographical distances between facilities was conducted. This scenario allows comparing how well each algorithm can handle situations where most substrates have long distances. For this scenario, ACO is unable to find a feasible solution. On the other hand, GA and PSO find a solution, but the corresponding biogas production is far lower than that obtained in the baseline scenario (48% and 41% lower biogas production for GA and PSO, respectively).
Alternatively, Scenario 2b shows the optimisation results when nonlinearly modifying geographical distances between facilities by the square root of the original distances. This modification allows understanding which algorithm would be more favoured by a more equally distributed geographic location of plants. All the algorithms tested are able to find a feasible solution, showing that GA has the best performance (both in terms of best B and biogas production). On the other hand, ACO shows the worst best index B achieved.
Scenario 3 was modified by a threefold increase in available volume from all sources. The presented modification allows studying the performance of each algorithm when the total number of possible solutions is much greater. ACO shows noticeably poor performance, below the best index B achieved by ACO in former scenarios. Although GA shows better performance than PSO in terms of the best index B achieved, biogas production appears similar to that in other scenarios.
In Scenario 4, an increase in the C/N ratio for waste generators W1–W12 was conducted. This modification would test the ability of each algorithm when one of the restrictions (i.e., C/N ratio) requires more adjustments. In this case, PSO shows the best index B achieved, although it presents the lowest biogas production. Similar to the baseline scenario, ACO shows slightly better performance than GA in terms of the best B achieved, but GA still has slightly better biogas production.
Geographical distance modification was performed with two alternative scenarios. Scenario 2a includes a lineal modification of the distance matrix (tenfold), and Scenario 2b considers a distance modified by the square root of the original distance. The relative locations of all involved waste generators and receptors in the case study are shown in Figure 4. For the baseline scenario, waste generators are homogeneously geographically distributed, but receptors are located in a relatively small area—i.e., the geographical distance difference of each receptor from the emitters might be negligible by the optimisation—which may be interpreted as a single receptor with higher volume capacity, caused by the geographical overlapping of waste receptors, or the “big dot” effect. The linear modification of geographical distances in Scenario 2a does not alter this relative distribution, but the nonlinear modification in Scenario 2b does so, avoiding this “big dot” effect by dispersing Receptors A, B, and C in the geographical space. It is important to note that for Scenario 2a, ACO was unable to find a viable solution, and both GA and PSO achieved a relatively poor solution compared to the corresponding solutions for the baseline scenario.
Figure 5 shows the resulting blending profile for the baseline scenario and Scenario 2b. For the baseline scenario, PSO tends to balance the blending of substrates with a low organic load content—i.e., from W1–W12—and selects noticeably lower amounts of high organic load substrates—i.e., from C1–C7— than ACO or GA. This observed behaviour is similar between the three waste receptors A, B and C. On the other hand, ACO and GA tend towards selective blending, showing similar preferences for both receptors B and C. For receptor A, the GA algorithm tends towards slightly more homogeneous blending. In any case, both ACO and GA include more substrates of high organic load—i.e., from C1–C7—except for receptor C.
For Scenario 2b, the ACO blending profiles are similar to those obtained in the baseline scenario—showing a certain tendency to include particular waste generators, —although varying the substrates that the algorithm selects. The GA blending profiles obtained in Scenario 2b are the most affected by geographical distance distortion. GA appears to balance the blending of substrates from all waste generators, much like PSO for both scenarios 2a and 2b. Additionally, the GA blending profile for Scenario 2b accounts for more industrial, high organic load wastes—i.e., from C1–C7—than the PSO blending profile, which remains relatively similar between the baseline scenario and Scenario 2b.

4. Discussion

Simulations with the optimisation algorithms ACO, GA and PSO were performed, showing successful optimisation results in almost all scenarios. Data from a real case study were used to carry simulations of centralised anaerobic co-digestion blending. As detailed in Section 3, these datasets are composed of 19 organic waste generators and three organic waste receptors within the context of a sanitation network in an area of high industrial activity in Catalonia. This case study composes the baseline scenario. In that previous work, the potential impacts of optimising AnD with wastes from external sources were already demonstrated, bearing up to 77% cost savings regarding waste management. Different modifications were made to this dataset to compare the performance of the ACO, GA, and PSO algorithms under different conditions to assess the performance of each optimisation algorithm in relevant situations. Regarding the optimisation problem, the C/N ratio is the dominant restriction, as was previously seen in [41]. This is the reason why this parameter is included in the discussion of the results, together with biogas production.
For the baseline scenario as seen in Table 5, PSO shows the best index B achieved but also the lowest biogas production. However, PSO also shows the lowest C/N ratio, which might play a role in achieving the best solution, compensating for the lack of biogas produced. If biogas production is increased by the design of a particular setup, this could be trimmed by the corresponding weight in the objective function B as a trade-off among the different parameters involved. The results obtained have been considered convenient for the installation under study and improved dramatically performance obtained in the baseline scenario [41]. However, both ACO and GA generally show higher amounts of biogas production, but their best index B values achieved are below that of PSO, and their C/N ratios are above 50.
As shown in Figure 5, ACO and GA show similar behaviours for the baseline scenario, prioritising specific substrates. A first hypothesis suggests that prioritised substrates would be those with higher COD since they would allow higher biogas production. On the other hand, PSO shows a different strategy blending more available substrates and tends to exclude industrial substrates. This trend may point to PSO performing a conservative strategy where it is avoided in all cost situations where the operation of the AnD would be put at risk. Therefore, the general trend is that ACO and GA solve the presented optimisation problem by maximising biogas production and pushing restrictions to the limit, while PSO tends to balance biogas maximisation and the C/N ratio trade-off. In addition, note that PSO has the shortest execution times and ACO the largest, which is observed for all scenarios, indicating PSO to be more computationally efficient, where even here, the execution time is not a drawback for real implementation with the values obtained.
The similarities between ACO and GA and the differences between those and PSO could be partially explained by the nature of these algorithms. Both ACO and GA tend to explore the search space of solutions around the borders, thus increasing the number of non-feasible solutions but also increasing the chances of finding a “rare” solution with a higher best index [72,73]. Thus, these algorithms appear to be based on relatively independent behaviour between particles so that each one can explore separate areas of the border search space and be able to find different non-redundant solutions. On the other hand, PSO algorithm exploration of the search space is based on dependent behaviour between neighbouring particles, which does not encourage particles to explore the limits of the search space. Instead, it promotes the exploration of other mid-term areas between the centre and the borders of the search space. This could help explain why the PSO algorithm attains solutions within shorter execution times but also with generally lower biogas production. Hence, PSO would tend to be a conservative strategy where instead of selecting the most promising solution, single ant or particle, it would prioritise a consensus between the best neighbourhoods.
As detailed in Section 3, Scenario 1 is modified by increasing the organic load of all substrates tenfold. Thus, the dominant condition, in this case, is that organic waste valorisation is fostered, leading to higher biogas production. As observed in Table 5, ACO and GA show better performance than PSO in this scenario, but GA is more efficient since its attained biogas production is noticeably higher than that achieved with ACO.
Additionally, as detailed in Section 3, Scenarios 2a and 2b include a geographical location modification of the involved facilities. As observed in Figure 4, the relative distances between waste generators and receptors (R1, R2, R3) are not modified by lineal modification of the distance when the map plot of the baseline scenario is compared to that of Scenario 2a. However, nonlinear modification of geographical distances in Scenario 2b leads to a different map plot, where waste receptors are more dispersed between them in relation to waste generators (Figure 4). The effect of this distortion of distances is that waste receptors are more separated, thus avoiding geographical overlapping of waste receptors, or the “big dot” effect, i.e., assimilating closer plants as a single centralised plant from a geographical perspective.
Hence, Scenario 2a is modified by tenfold increasing the geographical distances between waste generators and receptors, making geographical distance a dominant condition for optimisation. In this case, ACO is unable to find a solution, and both GA and PSO show extremely poor performance when compared with the baseline scenario, as shown in Table 5. The linear modification of distances of Scenario 2a shows the performance of each algorithm under the pressure of cases with high geographical distances. This pressure case of Scenario 2a was especially relevant to test because it can significantly impact the logistics processes. On the other hand, Scenario 2b presents a different trend due to the nonlinear modification of distances. As detailed in Table 5, GA shows the best performance, and PSO shows better performance than ACO even in terms of biogas production.
As observed in Figure 5, ACO and PSO maintain similar blending profiles, while GA and PSO also exhibit similar blending profiles, but including GA results in a greater volume of industrial substrates. This shared behaviour between GA and PSO is exclusive to Scenario 2b, but it might indicate that GA behaves similarly to PSO in this case. However, from the operational point of view, GA solutions involve major risks since they tend to include more industrial substrate than PSO solutions.
In Scenario 3, a threefold increase in the volume of all waste generated was performed. First, this result implies that the search space—i.e., the total number of combinations and possible solutions—drastically increases. In this case, Table 5 confirms a similar trend observed for previous scenarios, where GA obtained the best performance and ACO the worst. Again, this finding is consistent with the observation that the ACO algorithm attains weaker performance than GA and PSO for this particular case and that GA and PSO attain similar performance in this study, although GA appears to generally provide better performance than PSO.
Finally, Scenario 4 was composed of increasing the C/N ratio of W1–W12 substrates. These substrates originally conformed to sewage sludge with a low nitrogen load, but in Scenario 4, the drastic increase in the C/N content of sewage sludge was the dominant condition to be tested. Table 5 also presents a summary of the results for Scenario 4, where PSO shows the best performance and GA the worst. The main observation is that the PSO algorithm is more able than the GA to manage situations with high nitrogen loads or major restrictions, while the GA has more potential to maximise biogas production. However, it is more sensitive to high nitrogen loads because it reduces available space to acquire industrial wastes with both high organic loads and high nitrogen loads.
The developed algorithms have successfully optimised the AnD network of the case study, and their performances have been tested under different conditions (i.e., Scenarios 1–4). Simultaneous logistics and quality optimisation of a network of existing waste management facilities is a gap in the current state of the art due to its ad-hoc nature and its interdisciplinarity: there are specialized works for logistics optimisation such as in [45,46], but they do not include process optimisation. The present study implements this logistic optimisation by minimising a cost function designed to this end. The reason for choosing this approach is also based on the need for professionals who manage the AnD network considered here to have a decision support tool capable of integrating logistics and process performance optimisation. And, in addition, to have the ability to handle changing operation conditions and scenarios, as it actually happens in real facilities.
It is also worth noting that it exists a variety of sensors for the determination of physical-chemical parameters that could complement the sensor network considered in this case study, such as a variation of the ones presented in [47]. These sensors could provide additional insight, especially if combined with GIS and process optimisation, and also facilitate the real-time implementation of the presented approach. Additionally, they could also be used as control mechanisms for those cases where ACO and GA optimisation is applied, since attained optimised outcomes pushed quality restrictions of the AnD process close to their thresholds. However, there is a trade-off between information (i.e., data gathered from new sensors) and resources (e.g., implementation, maintenance) which has to be taken into account when considering new sensors.
Overall, this study presents a step forward towards the integrated optimisation of AnD networks, making an innovative attempt to couple logistics and quality optimisation of the centralised digestion process of a real AnD network.

5. Conclusions

In this study, three approaches were developed for the simultaneous optimisation of multiple AnD systems based on ACO, GA and PSO. These methods were applied to a case study based on real data from an AnD network in the area of the Besòs River basin in Catalonia. The performance of each optimisation approach was evaluated. All the approaches successfully optimised biogas production for simulated scenarios while preserving some practical restrictions in optimisation.
For the baseline scenario, ACO and GA allowed maximum biogas production by placing restrictions on the limits of safe operations. On the other hand, PSO solved the optimisation problem with a more conservative strategy where biogas production is lower than that in ACO or GA solutions, in favour of the best AnD operation conditions (i.e., by adjusting the C/N ratio and alkalinity).
In those cases with high opportunities for biogas production (i.e., Scenario 1), GA and ACO would perform the best due to their capabilities of maximising biogas production over that of PSO. GA would perform as the best optimisation algorithm both for cases where distances are significantly different amongst them (i.e., Scenario 2b) and for cases where higher volumes should be handled (i.e., Scenario 3), presumably due to GA’s computational potential. Finally, for those cases where other quality-related parameters are restrictions (i.e., Scenario 4), PSO would be the best performing algorithm.
The present study shows an innovative contribution to optimize the performance of centralized AnD systems, combining logistical and quality parameters. To the authors’ knowledge, this optimization has not yet been addressed in the literature for an AnD network. In addition, the framework has proven its effectiveness in minimizing the total distance travelled to transport the waste and maximizing biogas production. At the same time, the physical-chemical parameters of the process have been kept within their operational limits.
Further work may include methodologies to improve social impact factor quantification in the optimisation, which might allow better characterisation of the logistic impact of each substrate generator. Additionally, the development of logistic route simulations would be required to enhance real-world distribution planning considering daytime, travel frequency, dynamic waste production-consumption coupled with stocking problems and other time-related issues key to logistic planning.

Author Contributions

Conceptualization, D.P.-H., M.V. and M.À.C.-E.; methodology, D.P.-H., M.V. and M.À.C.-E.; software, D.P.-H.; validation, M.V., M.À.C.-E. and V.P.; formal analysis, M.V., M.P., M.À.C.-E. and V.P.; investigation, D.P.-H., M. Verdaguer; resources, M.P. and M.À.C.-E.; data curation, D.P.-H., M.V., V.P. and M. À. Cugueró-Escofe; writing—original draft preparation, D.P.-H., M.V. and M.À.C.-E.; writing—review and editing, D.P.-H., M.V., V.P. and M.À.C.-E.; supervision, V.P., M.P. and M.À.C.-E.; project administration, M.P. and M.À.C.-E.; funding acquisition, M.P. and M.À.C.-E.. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Acknowledgments

The authors would like to acknowledge the support received from Consorci Besòs Tordera. LEQUIA-UdG and SAC-UPC have been recognized as consolidated research groups by the Catalan Government (2017-SGR-1552 and 2017-SGR-482, respectively).

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

WWTPswastewater treatment plants
AnDanaerobic digestion
MKPmultidimensional knapsack problem
AnCDanaerobic co-digestion
ACOAnt colony optimisation
GAGenetic algorithm
PSOParticle swarm optimisation
GUIgraphical user interface
CMAEScovariance matrix adaptation evolution strategy
DEdifferential evolution
ANNperceptron artificial neural network
SGOAshow stochastic global optimisation algorithms
COcombinatorial optimisation
EAevolutionary algorithms
CODChemical Oxygen Demand
TNTotal Nitrogen
C/NCarbon to Nitrogen ratio
CBTConsorci Besòs Tordera
GISgeographical information system

References

  1. Batstone, D.J.; Virdis, B. The role of anaerobic digestion in the emerging energy economy. Curr. Opin. Biotechnol. 2014, 27, 142–149. [Google Scholar] [CrossRef]
  2. Bolzonella, D.; Pavan, P.; Battistoni, P.; Cecchi, F. Anaerobic co-digestion of sludge with other organic wastes and phosphorus reclamation in wastewater treatment plants for biological nutrients removal. Water Sci. Technol. 2006, 53, 177–186. [Google Scholar] [CrossRef] [PubMed]
  3. Melián, J.A.H. Sustainable Wastewater Treatment Systems (2018–2019). Sustainability 2020, 12, 1940. [Google Scholar] [CrossRef] [Green Version]
  4. Lorick, D.; Macura, B.; Ahlström, M.; Grimvall, A.; Harder, R. Effectiveness of struvite precipitation and ammonia stripping for recovery of phosphorus and nitrogen from anaerobic digestate: A systematic review. Environ. Evid. 2020, 9, 27. [Google Scholar] [CrossRef]
  5. Namuli, R.; Laflamme, C.B.; Pillay, P. A Computer Program for Modeling the Conversion of Organic Waste to Energy. Energies 2011, 4, 1973–2001. [Google Scholar] [CrossRef] [Green Version]
  6. Scarlat, N.; Dallemand, J.-F.; Fahl, F. Biogas: Developments and perspectives in Europe. Renew. Energy 2018, 129, 457–472. [Google Scholar] [CrossRef]
  7. Fouladi, J.; Al-Ansari, T. Conceptualising multi-scale thermodynamics within the energy-water-food nexus: Progress towards resource and waste management. Comput. Chem. Eng. 2021, 152, 107375. [Google Scholar] [CrossRef]
  8. Baldi, F.; Pecorini, I.; Iannelli, R. Comparison of single-stage and two-stage anaerobic co-digestion of food waste and activated sludge for hydrogen and methane production. Renew. Energy 2019, 143, 1755–1765. [Google Scholar] [CrossRef]
  9. Mattioli, A.; Gatti, G.; Mattuzzi, G.; Cecchi, F.; Bolzonella, D. Co-digestion of the organic fraction of municipal solid waste and sludge improves the energy balance of wastewater treatment plants: Rovereto case study. Renew. Energy 2017, 113, 980–988. [Google Scholar] [CrossRef]
  10. Siddique, N.I.; Wahid, Z.A. Achievements and perspectives of anaerobic co-digestion: A review. J. Clean. Prod. 2018, 194, 359–371. [Google Scholar] [CrossRef]
  11. Villamil, J.; Mohedano, A.F.; Martínez, J.A.V.; Rodriguez, J.; DE LA Rubia, M.A. Anaerobic co-digestion of the process water from waste activated sludge hydrothermally treated with primary sewage sludge. A new approach for sewage sludge management. Renew. Energy 2019, 146, 435–443. [Google Scholar] [CrossRef]
  12. Díaz-Trujillo, L.A.; Fuentes-Cortés, L.F.; Nápoles-Rivera, F. Economic and environmental optimization for a biogas supply Chain: A CVaR approach applied to uncertainty of biomass and biogas demand. Comput. Chem. Eng. 2020, 141, 107018. [Google Scholar] [CrossRef]
  13. Mpofu, A.; Kaira, W.; Oyekola, O.; Welz, P. Anaerobic co-digestion of tannery effluents: Process optimisation for resource recovery, recycling and reuse in a circular bioeconomy. Process Saf. Environ. Prot. 2021, 158, 547–559. [Google Scholar] [CrossRef]
  14. Yağlı, H.; Koç, Y.; Köse, Ö.; Koç, A.; Yumrutaş, R. Optimisation of simple and regenerative organic Rankine cycles using jacket water of an internal combustion engine fuelled with biogas produced from agricultural waste. Process Saf. Environ. Prot. 2021, 155, 17–31. [Google Scholar] [CrossRef]
  15. Sweelssen, J.; Blokland, H.; Rajamäki, T.; Boersma, A. Capacitive and Infrared Gas Sensors for the Assessment of the Methane Number of LNG Fuels. Sensors 2020, 20, 3345. [Google Scholar] [CrossRef] [PubMed]
  16. Furst, L.; Feliciano, M.; Frare, L.; Igrejas, G. A Portable Device for Methane Measurement Using a Low-Cost Semiconductor Sensor: Development, Calibration and Environmental Applications. Sensors 2021, 21, 7456. [Google Scholar] [CrossRef] [PubMed]
  17. Al, R.; Behera, C.R.; Gernaey, K.V.; Sin, G. Stochastic simulation-based superstructure optimization framework for process synthesis and design under uncertainty. Comput. Chem. Eng. 2020, 143, 107118. [Google Scholar] [CrossRef]
  18. Fouladi, J.; AlNouss, A.; Al-Ansari, T. Sustainable energy-water-food nexus integration and optimisation in eco-industrial parks. Comput. Chem. Eng. 2021, 146, 107229. [Google Scholar] [CrossRef]
  19. Padrón-Páez, J.I.; Almaraz, S.D.-L.; Román-Martínez, A. Sustainable wastewater treatment plants design through multiobjective optimization. Comput. Chem. Eng. 2020, 140, 106850. [Google Scholar] [CrossRef]
  20. Dewasme, L.; Sbarciog, M.; Rocha-Cózatl, E.; Haugen, F.; Wouwer, A.V. State and unknown input estimation of an anaerobic digestion reactor with experimental validation. Control Eng. Pract. 2019, 85, 280–289. [Google Scholar] [CrossRef]
  21. Han, H.-G.; Zhang, H.-J.; Liu, Z.; Qiao, J.-F. Data-driven decision-making for wastewater treatment process. Control Eng. Pract. 2020, 96, 104305. [Google Scholar] [CrossRef]
  22. Li, Z.; Yan, X. Ensemble model of wastewater treatment plant based on rich diversity of principal component determining by genetic algorithm for status monitoring. Control Eng. Pract. 2019, 88, 38–51. [Google Scholar] [CrossRef]
  23. Szeląg, B.; Drewnowski, J.; Łagód, G.; Majerek, D.; Dacewicz, E.; Fatone, F. Soft Sensor Application in Identification of the Activated Sludge Bulking Considering the Technological and Economical Aspects of Smart Systems Functioning. Sensors 2020, 20, 1941. [Google Scholar] [CrossRef] [Green Version]
  24. Ma, Y.; Rose, F.; Wong, L.; Vien, B.; Kuen, T.; Rajic, N.; Kodikara, J.; Chiu, W. Detection of Defects in Geomembranes Using Quasi-Active Infrared Thermography. Sensors 2021, 21, 5365. [Google Scholar] [CrossRef] [PubMed]
  25. Sánchez, J.B.; Vuono, M.; Dionisi, D. Model-based comparison of sequencing batch reactors and continuous-flow activated sludge processes for biological wastewater treatment. Comput. Chem. Eng. 2020, 144, 107127. [Google Scholar] [CrossRef]
  26. Naqvi, S.R.; Tariq, R.; Shahbaz, M.; Naqvi, M.; Aslam, M.; Khan, Z.; Mackey, H.; Mckay, G.; Al-Ansari, T. Recent developments on sewage sludge pyrolysis and its kinetics: Resources recovery, thermogravimetric platforms, and innovative prospects. Comput. Chem. Eng. 2021, 150, 107325. [Google Scholar] [CrossRef]
  27. Babaee, A.; Shayegan, J. Effect of Organic Loading Rates (OLR) on Production of Methane from Anaerobic Digestion of Vegetables Waste. In Proceedings of the World Renewable Energy Congress-Sweden, Linköping, Sweden, 8–13 May 2011; pp. 411–417. [Google Scholar] [CrossRef] [Green Version]
  28. Avilés, A.B.L.; Velázquez, F.D.C.; Del Riquelme, M.L.P. Methodology for Energy Optimization in Wastewater Treatment Plants. Phase III: Implementation of an Integral Control System for the Aeration Stage in the Biological Process of Activated Sludge and the Membrane Biological Reactor. Sensors 2020, 20, 4342. [Google Scholar] [CrossRef]
  29. Okolie, J.A.; Epelle, E.I.; Tabat, M.E.; Orivri, U.; Amenaghawon, A.N.; Okoye, P.U.; Gunes, B. Waste biomass valorization for the production of biofuels and value-added products: A comprehensive review of thermochemical, biological and integrated processes. Process Saf. Environ. Prot. 2021, 159, 323–344. [Google Scholar] [CrossRef]
  30. El Ibrahimi, M.; Khay, I.; El Maakoul, A.; Bakhouya, M. Food waste treatment through anaerobic co-digestion: Effects of mixing intensity on the thermohydraulic performance and methane production of a liquid recirculation digester. Process Saf. Environ. Prot. 2021, 147, 1171–1184. [Google Scholar] [CrossRef]
  31. Fan, Y.; Lv, M.; Niu, X.; Ma, J.; Zhang, D. The key step of gaseous phosphorus release in anaerobic digestion. Process Saf. Environ. Prot. 2020, 137, 238–245. [Google Scholar] [CrossRef]
  32. Horf, M.; Gebbers, R.; Vogel, S.; Ostermann, M.; Piepel, M.-F.; Olfs, H.-W. Determination of Nutrients in Liquid Manures and Biogas Digestates by Portable Energy-Dispersive X-ray Fluorescence Spectrometry. Sensors 2021, 21, 3892. [Google Scholar] [CrossRef]
  33. Fréville, A. The multidimensional 0–1 knapsack problem: An overview. Eur. J. Oper. Res. 2004, 155, 1–21. [Google Scholar] [CrossRef]
  34. Grandón, J.; Derpich, I. A Heuristic for the Multi-knapsack Problem. WSEAS Trans. Math. 2011, 10, 95–104. [Google Scholar]
  35. Kellerer, H.; Pferschy, U.; Pisinger, D. Multidimensional Knapsack Problems. In Knapsack Problems; Springer: Berlin/Heidelberg, Germany, 2004; pp. 235–283. [Google Scholar] [CrossRef]
  36. Glaser, C.; Pavan, A.; Travers, S. The fault tolerance of NP-hard problems. Inf. Comput. 2011, 209, 443–455. [Google Scholar] [CrossRef] [Green Version]
  37. Somani, D.; Srivastava, H.; Sabumon, P.C.; Anjali, G. A short review of anaerobic co-digestion and feasibility of anaerobic co-digestion of sewage and food waste for sustainable waste management. Int. J. Earth Sci. Eng. 2016, 9, 55–70. [Google Scholar]
  38. Verdaguer, M.; Clara, N.; Monclús, H.; Poch, M. A step forward in the management of multiple wastewater streams by using an ant colony optimization-based method with bounded pheromone. Process Saf. Environ. Prot. 2016, 102, 799–809. [Google Scholar] [CrossRef]
  39. Cugueró-Escofet, M.; Puig, V.; Quevedo, J. Optimal pressure sensor placement and assessment for leak location using a relaxed isolation index: Application to the Barcelona water network. Control Eng. Pract. 2017, 63, 1–12. [Google Scholar] [CrossRef] [Green Version]
  40. García-Gen, S.; Rodríguez, J.; Lema, J. Optimisation of substrate blends in anaerobic co-digestion using adaptive linear programming. Bioresour. Technol. 2014, 173, 159–167. [Google Scholar] [CrossRef]
  41. Palma-Heredia, D.; Verdaguer, M.; Molinos-Senante, M.; Poch, M.; Cugueró-Escofet, M. Optimised blending for anaerobic co-digestion using ant colony approach: Besòs river basin case study. Renew. Energy 2020, 168, 141–150. [Google Scholar] [CrossRef]
  42. Rodriguez-Verde, I.; Regueiro, L.; Lema, J.; Carballa, M. Blending based optimisation and pretreatment strategies to enhance anaerobic digestion of poultry manure. Waste Manag. 2018, 71, 521–531. [Google Scholar] [CrossRef]
  43. Santos, A.T.; Carballa, M.; Morales, N.; Vázquez-Padín, J.R.; Gutierrez, R.; Lema, J. An optimised control system to steer the transition from anaerobic mono- to co-digestion in full-scale plants. Environ. Sci. Water Res. Technol. 2019, 5, 1004–1011. [Google Scholar] [CrossRef]
  44. Thiriet, P.; Bioteau, T.; Tremier, A. Optimization method to construct micro-anaerobic digesters networks for decentralized biowaste treatment in urban and peri-urban areas. J. Clean. Prod. 2019, 243, 118478. [Google Scholar] [CrossRef]
  45. Rentizelas, A.; Shpakova, A.; Mašek, O. Designing an optimised supply network for sustainable conversion of waste agricultural plastics into higher value products. J. Clean. Prod. 2018, 189, 683–700. [Google Scholar] [CrossRef] [Green Version]
  46. Bueno-Delgado, M.-V.; Romero-Gázquez, J.-L.; Jiménez, P.; Pavón-Mariño, P. Optimal Path Planning for Selective Waste Collection in Smart Cities. Sensors 2019, 19, 1973. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  47. Longo, E.; Sahin, F.A.; Redondi, A.E.C.; Bolzan, P.; Bianchini, M.; Maffei, S. A 5G-Enabled Smart Waste Management System for University Campus. Sensors 2021, 21, 8278. [Google Scholar] [CrossRef] [PubMed]
  48. Verdaguer, M.; Molinos-Senante, M.; Poch, M. Optimal management of substrates in anaerobic co-digestion: An ant colony algorithm approach. Waste Manag. 2016, 50, 49–54. [Google Scholar] [CrossRef]
  49. Verdaguer, M.; Clara, N.; Gutierrez, O.; Poch, M. Application of Ant-Colony-Optimization algorithm for improved management of first flush effects in urban wastewater systems. Sci. Total Environ. 2014, 485-486, 143–152. [Google Scholar] [CrossRef] [PubMed]
  50. Ramachandran, A.; Rustum, R.; Adeloye, A.J. Review of Anaerobic Digestion Modeling and Optimization Using Nature-Inspired Techniques. Processes 2019, 7, 953. [Google Scholar] [CrossRef] [Green Version]
  51. Zhang, Z.; Liu, Y.; Bo, L.; Yue, Y.; Wang, Y. Economic Optimal Allocation of Mine Water Based on Two-Stage Adaptive Genetic Algorithm and Particle Swarm Optimization. Sensors 2022, 22, 883. [Google Scholar] [CrossRef] [PubMed]
  52. Marković, D.; Stanković, A.; Petrović, G.; Trajanović, M.; Ćojbašić, Ž. Genetic and Ant Colony Optimization Based Communal Waste Collection Vehicle Routing. Conf. Inf. Soc. Technol. 2019, 209–212. [Google Scholar]
  53. Gaida, D.; Sousa Brito, A.L.; Wolf, C.; Bäck, T.; Bongards, M.; McLoone, S. Optimal Control Of Biogas Plants Using Nonlinear MPC. IET Irish Signals Syst. Conf. 2011. Available online: https://www.researchgate.net/publication/224863615_Optimal_Control_of_Biogas_Plants_using_Nonlinear_Model_Predictive_Control (accessed on 26 January 2022).
  54. Akbaş, H.; Bilgen, B.; Turhan, A.M. An integrated prediction and optimization model of biogas production system at a wastewater treatment facility. Bioresour. Technol. 2015, 196, 566–576. [Google Scholar] [CrossRef]
  55. Kana, E.G.; Oloke, J.; Lateef, A.; Adesiyan, M. Modeling and optimization of biogas production on saw dust and other co-substrates using Artificial Neural network and Genetic Algorithm. Renew. Energy 2012, 46, 276–281. [Google Scholar] [CrossRef]
  56. Alhanjouri, M.; Alfarra, B. Ant Colony versus Genetic Algorithm based on Travelling Salesman Problem. Int. J. Comput. Technol. Appl. 2011, 2, 570–578. [Google Scholar]
  57. Dorigo, M.; Birattari, M.; Stutzle, T. Ant colony optimization. IEEE Comput. Intell. Mag. 2006, 1, 28–39. [Google Scholar] [CrossRef]
  58. Dorigo, M.; Stützle, T. The Ant Colony Optimization Metaheuristic: Algorithms, Applications, and Advances. In Handbook of Metaheuristics. International Series in Operations Research & Management Science; Glover, F., Kochenberger, G.A., Eds.; Springer: Boston, MA, USA, 2003; Volume 57. [Google Scholar] [CrossRef]
  59. Dorigo, M.; Stützle, T. Ant Colony Optimization; MIT Press: Cambridge, MA, USA, 2004. [Google Scholar]
  60. Stützle, T.; Hoos, H. MAX–MIN Ant System. Futur. Gener. Comput. Syst. 2000, 16, 889–914. [Google Scholar] [CrossRef]
  61. Walters, G.; Savic, D.; Morley, M.; de Schaetzen, W.; Atkinson, R. Calibration of water distribution network models using genetic algorithms. Trans. Ecol. Environ. 1998, 19, 131–140. [Google Scholar]
  62. Aldosary, A.; Ali, Z.M.; Alhaider, M.M.; Ghahremani, M.; Dadfar, S.; Suzuki, K. A modified shuffled frog algorithm to improve MPPT controller in PV System with storage batteries under variable atmospheric conditions. Control Eng. Pract. 2021, 112, 104831. [Google Scholar] [CrossRef]
  63. Galuppini, G.; Creaco, E.; Magni, L. Sum-of-delay models for pressure control in Water Distribution Networks. Control Eng. Pract. 2021, 113, 104844. [Google Scholar] [CrossRef]
  64. Haupt, R.L.; Haupt, S.E. Practical Genetic Algorithms; Wiley: Hoboken, NJ, USA, 2004. [Google Scholar]
  65. Gandomi, A.H.; Yang, X.S.; Talatahari, S.; Alavi, A.H. Metaheuristic Applications in Structures and Infrastructures; Elsevier Inc.: Amsterdam, The Netherlands, 2013. [Google Scholar] [CrossRef]
  66. Xia, L.; de Jager, B.; Donkers, T.; Willems, F. Robust constrained optimization for RCCI engines using nested penalized particle swarm. Control Eng. Pract. 2020, 99, 104411. [Google Scholar] [CrossRef]
  67. Aminbakhsh, S.; Sonmez, R. Discrete particle swarm optimization method for the large-scale discrete time–cost trade-off problem. Expert Syst. Appl. 2016, 51, 177–185. [Google Scholar] [CrossRef]
  68. Ye, C.; Chen, L.; Ni, S.; Zhou, J. Evaluation model of forest eco economic benefits based on discrete particle swarm optimization. Environ. Technol. Innov. 2021, 22, 101426. [Google Scholar] [CrossRef]
  69. Li, P.; Jiao, X.; Li, Y. Adaptive real-time energy management control strategy based on fuzzy inference system for plug-in hybrid electric vehicles. Control Eng. Pract. 2020, 107, 104703. [Google Scholar] [CrossRef]
  70. Tuttle, J.F.; Tuttle, J.F.; Vesel, R.; Vesel, R.; Alagarsamy, S.; Alagarsamy, S.; Blackburn, L.D.; Blackburn, L.D.; Powell, K.; Powell, K. Sustainable NOx emission reduction at a coal-fired power station through the use of online neural network modeling and particle swarm optimization. Control Eng. Pract. 2019, 93, 104167. [Google Scholar] [CrossRef]
  71. Nghiem, L.; Koch, K.; Bolzonella, D.; Drewes, J.E. Full scale co-digestion of wastewater sludge and food waste: Bottlenecks and possibilities. Renew. Sustain. Energy Rev. 2017, 72, 354–362. [Google Scholar] [CrossRef] [Green Version]
  72. Hibler, D. The GA-ACO Method Applied to Engineering Design. Procedia Comput. Sci. 2012, 12, 152–157. [Google Scholar] [CrossRef] [Green Version]
  73. Valdez, F.; Moreno, F.; Melin, P. A Comparison of ACO, GA and SA for Solving the TSP Problem BT—Hybrid Intelligent Systems in Control, Pattern Recognition and Medicine; Castillo, O., Melin, P., Eds.; Springer International Publishing: Berlin/Heidelberg, Germany, 2020; pp. 181–189. [Google Scholar] [CrossRef]
Figure 1. Generic representation of the posed matching problem.
Figure 1. Generic representation of the posed matching problem.
Sensors 22 01857 g001
Figure 2. (A) F w 1 , (B) F w 2 , (C) F w 3 and (D) T w equations used for dimensionless coefficient calculation.
Figure 2. (A) F w 1 , (B) F w 2 , (C) F w 3 and (D) T w equations used for dimensionless coefficient calculation.
Sensors 22 01857 g002
Figure 3. Bipartite graph of the case study.
Figure 3. Bipartite graph of the case study.
Sensors 22 01857 g003
Figure 4. Map of waste generators and waste receptors R1–R3 for Baseline Scenario (A), Scenario 2a (B) and Scenario 2b (C). Distance is expressed as longitudinal distance (X-axis) and latitudinal distance (Y-axis) with respect to the R1 plant.
Figure 4. Map of waste generators and waste receptors R1–R3 for Baseline Scenario (A), Scenario 2a (B) and Scenario 2b (C). Distance is expressed as longitudinal distance (X-axis) and latitudinal distance (Y-axis) with respect to the R1 plant.
Sensors 22 01857 g004
Figure 5. Blending profiles for every waste receptor and ACO, GA and PSO algorithms for the baseline scenario (left) and Scenario 2b (right).
Figure 5. Blending profiles for every waste receptor and ACO, GA and PSO algorithms for the baseline scenario (left) and Scenario 2b (right).
Sensors 22 01857 g005
Table 1. Summary of trimming tests for the GA.
Table 1. Summary of trimming tests for the GA.
Tested ParametersBest Index (B)Time(s)
Crossover Fraction0.20.0274525.73
0.50.0295574.46
0.80.0304537.98
Elite Count0.050.0309541.48
0.150.0300536.15
0.30.0291554.83
Table 2. Summary of trimming tests for PSO.
Table 2. Summary of trimming tests for PSO.
Tested ParametersBest Index (B)Time(s)
Cognitive Attraction0.20.029382.86
0.50.030462.93
0.80.032257.26
Social Attraction1.050.030155.78
1.250.032974.98
1.950.030863.45
Table 3. Waste generator dataset, including distance between waste generators and receptors and characterisation of each receptor of the case study (Baseline Scenario or Scenario 0).
Table 3. Waste generator dataset, including distance between waste generators and receptors and characterisation of each receptor of the case study (Baseline Scenario or Scenario 0).
Waste Generator IDVw
(L by Day)
COD (mg/L)C/NAlk (mg/L)Tw
(mg/L)
R1R2R3
Distance to R1 (km)Distance to R2 (km)Distance to R3 (km)
W127,60019,90017.843001.555.320.59.5
W247,00016,90020.632001.3635.933.945.7
W346,30018,60019.410,1001.4221.816.628.9
W420,20023,40015.634001.3830.443.219.7
W538,40021,10017.945001.3519.724.712.4
W634,40018,80014.038001.6114.819.915.9
W713,80022,60015.327001.5732.144.918.4
W8440022,10015.218002.3026.531.627.7
W910,80021,70015.153000.9320.333.18.8
W10950020,40015.525001.283024.837.1
W1117,00023,30014.878000.9836.931.744
W12650020,10016.531001.4020.533.38.7
C19000667,40042.52500.0115.911.123
C29000497,400461.83300.0171217.9
C39000155,9003118.1600.0227.940.717.2
C49000459,100274.16600.1016.211.122.9
C59000657,2002330.66300.0152.865.643.8
C69000266,2002832.4200.0156.13321
C79000262,10032,768.41100.0136.724.166.4
Maximum Volume (L/day) 122,000146,000111,000
COD (mg/L) 18,60019,10018,200
C/N 19.120.318.4
Alk (mg/L) 310029003400
Tw (mg/L) 1.411.681.53
Table 4. Synthetic scenarios created from original Scenario 0 in Table 3. Description of data alteration procedure.
Table 4. Synthetic scenarios created from original Scenario 0 in Table 3. Description of data alteration procedure.
IDDescription
Baseline (Scenario 0) scenarioScenario based on data form real case study (see Table 3)
Scenario 1High COD (×10 COD concentration)
Scenario 2aLinear modification of distances: ×10 distances
Scenario 2bNonlinear modification of distances: square root of original distance
Scenario 3High volumes (×3 volumes)
Scenario 4C/N variations (increase of W1–W12 C/N ratio to the 50–60 range)
Table 5. Summary of algorithm performance. The best value B is highlighted. Scenario 2a feasible results (*) are associated with a poor solution, so no direct comparison is conducted.
Table 5. Summary of algorithm performance. The best value B is highlighted. Scenario 2a feasible results (*) are associated with a poor solution, so no direct comparison is conducted.
ScenarioBaseline ScenarioScenario 1
Optimisation MethodACOGAPSOACOGAPSO
Best Index (B)0.03360.03130.03490.03300.03280.0211
Time (seconds)595.46325.3790.201825.341035.53221.74
Total Biogas Production (Nm3/d)25,65727,13320,852114,870198,284102,927
Avg Organic Load (kg COD/m3·d)2.322.592.099.6717.469.73
Avg C/N ratio
(limited below 60)
50.556.146.424.15432.4
Avg Alkalinity (g CaCO3/m3)307931413245318331933282
ScenarioScenario 2aScenario 2b
Optimisation MethodACOGAPSOACOGAPSO
Best Index (B)-0.0001 *0.0001 *0.02870.03330.0319
Time (seconds)-6260669.5619363.61
Total Biogas Production (Nm3/d)-14,27812,32517,46825,40419,237
Avg Organic Load (kg COD/m3·d)-1.61.41.692.52.24
Avg C/N ratio
(limited below 60)
-45.932.823.455.232.4
Avg Alkalinity (g CaCO3/m3)-32983319333831743221
ScenarioScenario 3Scenario 4
Optimisation MethodACOGAPSOACOGAPSO
Best Index (B)0.00770.03240.03000.03390.03190.0354
Time (seconds)671.03548.4668.101824.94350.8986.47
Total Biogas Production (Nm3/d)17,22433,65735,39520,77023,32619,524
Avg Organic Load (kg COD/m3·d)1.702.792.922.022.231.90
Avg C/N ratio
(limited below 60)
19.126.332.935.956.437.8
Avg Alkalinity (g CaCO3/m3)
(limited above 2500)
298530203233321731993272
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Palma-Heredia, D.; Verdaguer, M.; Puig, V.; Poch, M.; Cugueró-Escofet, M.À. Comparison of Optimisation Algorithms for Centralised Anaerobic Co-Digestion in a Real River Basin Case Study in Catalonia. Sensors 2022, 22, 1857. https://doi.org/10.3390/s22051857

AMA Style

Palma-Heredia D, Verdaguer M, Puig V, Poch M, Cugueró-Escofet MÀ. Comparison of Optimisation Algorithms for Centralised Anaerobic Co-Digestion in a Real River Basin Case Study in Catalonia. Sensors. 2022; 22(5):1857. https://doi.org/10.3390/s22051857

Chicago/Turabian Style

Palma-Heredia, David, Marta Verdaguer, Vicenç Puig, Manuel Poch, and Miquel Àngel Cugueró-Escofet. 2022. "Comparison of Optimisation Algorithms for Centralised Anaerobic Co-Digestion in a Real River Basin Case Study in Catalonia" Sensors 22, no. 5: 1857. https://doi.org/10.3390/s22051857

APA Style

Palma-Heredia, D., Verdaguer, M., Puig, V., Poch, M., & Cugueró-Escofet, M. À. (2022). Comparison of Optimisation Algorithms for Centralised Anaerobic Co-Digestion in a Real River Basin Case Study in Catalonia. Sensors, 22(5), 1857. https://doi.org/10.3390/s22051857

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop