scieee AI-readable full text Open interactive document viewer

Optimised blending for anaerobic co-digestion using ant colony approach: Besòs river basin case study

Palma Heredia, David,Verdaguer, Marta,Molinos Senante, María,Poch Espallargas, Manel,Cugueró Escofet, Miquel Àngel

Abstract

Co-digestion is a well-established strategy to maximise the capacity of anaerobic digestion in wastewater treatment plants (WWTPs). Many tools have been developed to optimise the blend composition. However, the logistics associated with each component of the blend remain a relatively unexplored field, which can yield significant planning challenges. In this paper, an ant colony optimisation based approach is proposed to address these challenges. The proposed algorithm maximises an objective function composed of a first term related to the quality of the sludge and a second term related to the distance between the sludge generator and the anaerobic co-digester. The algorithm successfully optimises the blend composition by considering the related logistics, achieving an optimum blend with an approximately 18% volume of co-substrate. The approach presented here has been used to plan co-digestion using real data from an actual sanitation network composed of 13 WWTPs in the area of the Besos river basin in Catalonia, and an optimised co-digestion planning strategy with a waste management cost reduction of 77% was obtained

Full text

Abbreviations ACO: Ant colony optimisation CBT: Consorci Besòs Tordera COD: Chemical oxygen demand C1-C7: External co-substrate generators ST: Single anaerobic treatment WWTP: Wastewater treatment plant W1-W12: Sewage sludge waste generators HRT: Hydraulic retention time Alk: Alkalinity Max-Min: Maximum-minimum Tox: Toxicity Abstract: Co-digestion is a well-established strategy to maximise the capacity of anaerobic digestion in wastewater treatment plants (WWTPs). Many tools have been developed to optimise the blend composition. However, the logistics associated with each component of the blend remain a relatively unexplored field, which can yield significant planning challenges. In this paper, an ant colony optimisation based approach is proposed to address these challenges. The proposed algorithm maximises an objective function composed of a first term related to the quality of the sludge and a second term related to the distance between the sludge generator and the anaerobic co-digester. The algorithm successfully optimises the blend composition by considering the related logistics, achieving an optimum blend with an approximately 18 % volume of co-substrate. The approach presented here has been used to plan codigestion using real data from an actual sanitation network composed of 13 WWTPs in the area of the Besòs river basin in Catalonia, and an optimised co-digestion planning strategy with a waste management cost reduction of 77 % was obtained. Keywords: anaerobic co-digestion; ant colony optimisation; waste management; environmental impact assessment; wastewater treatment; circular economy 1. Introduction 1 The anaerobic digestion process in wastewater treatment plants (WWTPs) plays an 2 important role amongst potential circular economy technologies since it is one of the 3 most well-established and promising processes in these installations, as stated by [1– 4 3]. Furthermore, the co-digestion of sewage sludge and organic wastes has arisen as a 5 promising strategy in the circular economy due to its capability of merging both 6 wastewater and waste valorisation value chains. However, further work is required to 7 fully achieve the optimisation and improvement of the anaerobic co-digestion process 8 [4–6]. To this end, a remarkable number of anaerobic digestion optimisation tools 9 2 have been recently developed, as reported by [7]. These tools are focused on the 10 modelling and control of the optimum co-substrate blend and operation, as shown in 11 ([8], [9], [10], [11], [12]). For example, [8] and [10] focused on the identification and 12 modelling of critical parameters for co-digestion, such as volatile fatty acid 13 production and particle size, and concluded that co-digestion is highly feasible; [9] 14 developed control schemes for anaerobic digesters based on the composition qualities; 15 and [11] and [12] implemented optimised control strategies according to the blend 16 composition parameters, such as the organic and nitrogen content and the inhibition 17 thresholds of the anaerobic digestion processes (which have been identified by 18 previous biochemical modelling efforts [13–15]). 19 20 However, to the best knowledge of the authors, the complex logistics—and their 21 related economics—associated with both co-substrates and sewage sludge have not 22 been assessed mainly due to the ad hoc nature of each study case and the lack of data 23 in the literature from the organic waste transportation sector. In addition, there are 24 underlying critical factors for co-substrate selection not only at the characterisation- 25 related level but also with respect to the associated logistics. Some undesired impacts 26 of non-optimised transportation routes of co-substrates are as follows: increases in 27 route length, time, costs and emitted greenhouse gases (GHG); increases in traffic 28 density (which can be an issue for highly populated and busy areas); and additional 29 odours, noise and air pollution in urban areas (which is a major issue for pedestrian 30 and recreational zones, such as parks and the main streets of urban areas). Logistics 31 optimisation may provide a useful approach to tackle and avoid the aforementioned 32 social, environmental and economic impacts. 33 34 Regarding the optimisation method, combinatorial optimisation problems such as the 35 one presented here can be solved using the ant colony optimisation (ACO) algorithm 36 ([16],[17],[18],[19]). ACO is a metaheuristic approach that has been shown to be 37 effective in solving a variety of NP-hard combinatorial optimisation problems [20], 38 and is based on the as the well-known concepts of the travelling salesman problem 39 (TSP) and the knapsack problem (KP). The TSP [20] is referred to the optimisation 40 problem posed by the need to optimise (specifically, minimise) the distance that a 41 traveller must do to reach a set of locations; such problem can be expressed as a 42 distance minimisation, restricted by the geographical position of each location of the 43 set, which constitutes the problem definition. On the other hand, the KP [20] is a 44 3 traditional combinatorial optimisation problem, where a knapsack with limited weight 45 must be filled with a set of items with a given weight and value each; however, since 46 the knapsack has a weight restriction, the optimisation lies at filling the knapsack with 47 a subset of items so that the accumulated value of the knapsack would be the highest 48 possible. For example, the ACO algorithm has been used to optimise operational 49 parameters for wind power generating facilities [21,22] and also to enhance the 50 performance of energy transfer in solar power systems [23]. The ACO algorithm 51 searches for a solution using a probabilistic and iterative procedure that emulates the 52 behaviour of a real colony of ants in their search for food (pheromone trails are used 53 and updated in the algorithm). Further methods may be applied to tackle NP-hard 54 problems, e.g., genetic algorithms (GA). GA is a metaheuristic based on the 55 mechanics of natural selection and natural genetics; GA has also become an important 56 tool in combinatorial optimisation problems and has been used to solve different 57 problems of combinatorial optimisation, e.g., hydraulic model calibration [24] and 58 sensor placement for leak detection in water distribution networks [25]. In [26], the 59 relation between GAs and ACO is noted. Some drawbacks of GAs are noted in [24]; 60 e.g., achieving a global optimum for large and complex systems is not guaranteed, 61 which is also a drawback for ACO. However, the ACO algorithm uses strategies to 62 avoid rapid stagnation of the solution in the search space of solutions. A successful 63 approach to ACO implementation is the max-min ant system [27], which consists of 64 limiting the pheromone trails within the range [ ]. With this strategy the 65 search space of solutions does not rapidly exhibit significant differences in the 66 pheromone amounts deposited in each zone. A high local concentration of ants at the 67 beginning of the search process could generate a bad quality solution because many 68 zones could remain without being explored by ants. As observed above, the ACO 69 approach was originally applied to solve the TSP, outperforming other nature-inspired 70 algorithms, e.g., GAs [27]. In [28], it is noted how ACO is successfully applied not 71 only to different NP-hard academic combinatorial optimisation problems but also to 72 some real-world problems of the same kind as the one presented here, e.g., in [29], to 73 optimise the truck routes of a gasoline distribution company in Switzerland. ACO can 74 also be conveniently used to solve the multidimensional knapsack problem, as 75 introduced in [30]. In the context of the current problem, the search space of solutions 76 is represented by a bipartite graph. The set of nodes is the sludge generators and their 77 possible volumetric contributions, and the edges are the connections between each 78 generator and its feasible contributions of sludge. Overall, ACO is an EA that can be 79 4 complemented by local optimisation, with similar drawbacks to other evolutionary 80 algorithms as explained previously and pointed out in [24]. The max-min 81 approximation and the use of strategies to avoid rapid stagnation of the solution in the 82 search space have both been applied for the ACO algorithm to enhance its features 83 and minimise the drawbacks of the use of an evolutionary algorithm. 84 85 Moreover, applications of such an enhanced algorithm have already been made for 86 real-world cases of the waste sector ([30,31]). The optimisation problem presented in 87 this publication is inspired by prior optimisation problems approached by the ACO 88 algorithm: here, it not only is applied to optimise co-digestion strategies but also takes 89 into account the potential impact of the logistics associated with the transportation 90 route of each co-substrate. The additional features increase the problem complexity 91 (due to the increase in variables considered by the combinatorial optimisation), so the 92 cost function is reformulated according to the problem stated. Achieving a single 93 global optimum with this problem is not possible. Thus, the cost function is not a 94 convex function, and the number of local optimums is increased by the increase in 95 complexity. The framework presented here is an approach for assessing real 96 conditions based on a previous work [31], which focused on synthetic results. Here, 97 the co-substrate details are obtained by considering real data from an actual sanitation 98 network in the area of the Besòs river basin in Catalonia. 99 100 The application of the ACO algorithm allows optimisation of co-digestion strategies, 101 enhancing biogas production and minimising associated risks to the anaerobic 102 digestion operation (e.g., overdosing and acidification); furthermore, the novel 103 implementation of the logistics in the algorithm allows more accurate selection of co- 104 substrates in a real substrate multi-source/multi-receptor case study, allowing cost and 105 impact minimisation whilst maximising biogas production with the optimal set of 106 resources, e.g., by taking into account the impacts derived from the derived logistic 107 routes. This is achieved in this work by a novel strategy based on the simultaneous 108 optimisation of both the substrate composition and characterisation of their transport 109 routes provided by the ACO algorithm. The novel application for co-digestion 110 strategies considering the logistics and volume distribution may contribute to the 111 state-of-the-art of existent anaerobic co-digestion tools as shown in [7–12] that have 112 been explained previously, which were more focused on the optimisation of blending 113 and the anaerobic digestion process. 114 5 115 The objective of this work was to develop a new co-digestion optimisation tool based 116 on an enhanced version of the ACO algorithm that improves the constructed solution 117 and avoids its rapid stagnation using two local search heuristics. The optimisation 118 problem includes both substrate biochemical characterisation (for biogas production 119 maximisation) and logistics characterisation (for route optimisation). The effect of 120 centralised anaerobic co-digestion is evaluated from both technical and economic 121 perspectives. This method is applied in a real case study composed of 16 different 122 WWTPs—4 of which include anaerobic digesters—that are managed by Consorci 123 Besòs Tordera (CBT), a local water authority in charge of these facilities. 124 125 126 2. Material and methods 127 ACO is an algorithm aimed at finding an optimal solution of the optimisation problem 128 posed, which consists in the selection of the best substrates and volumes according to 129 a set of restrictions related to the operation of the anaerobic digester. Thus, the 130 problem statement considers a set of substrate generators { }. The N 131 different substrate generators are located different distances ( ) from a single 132 anaerobic digester (ST). Each generator has the capacity to store its own substrate 133 until it is transported to the ST. Each substrate is characterised by its volume and a 134 set of values , where is the chemical oxygen demand (COD) concentration, 135 is the ratio of chemical oxygen demand and total nitrogen (COD/TN), is the 136 alkalinity ( ) concentration, and is the toxicity (Tox) level. Each volume of 137 stored substrate can be selected as a substrate contribution to be transported to the 138 ST. The selection is performed according to different volumetric possibilities ( , 139 with { } that are determined as a multiple of a number (e.g., 1000) such 140 that . The selection of each volumetric possibility is determined by the 141 corresponding value of the binary decision variable, , where { }, with 142 when the corresponding volumetric configuration is not selected, and 143 when it is selected. Note that for each waste generator w there are different 144 volumetric configurations in , but only one is selected at a time, i.e., ∑ 145 { } (e.g., a waste generator with would have five different 146 volumetric configurations, but only one is selected at each optimisation iteration). The 147 6 conveyance of the selected volumes implies a travel distance with a social impact 148 and an economic cost . 149 150 The blend of all transported substrate contributions constitutes the ST input. This 151 input must be bounded by a certain set of restrictions, namely, the maximum 152 acceptable volume in the ST, the COD/TN ratio within the range [ ], the 153 Alk concentration within the range [ ] and the toxicity level . 154 155 The objective is to minimise a cost function B, expressed as follows (note that the cost 156 function is expressed as a quotient because the algorithm is intended to be 157 maximised): 158 {∑ ∑ [(∑ ]}, (1) 159 where is the binary decision variable; is the substrate contribution of generator 160 (in L ); is the sludge toxicity level (dimensionless); is the set of coefficients 161 corresponding to the substrate composition (dimensionless); is the quality 162 coefficient (dimensionless); is the logistics coefficient (dimensionless); is the 163 unit cost (in €/km) of substrate transport; is the distance between generator and 164 the anaerobic digester (in km); and is a coefficient related to the social 165 impact of substrate transport (dimensionless); the higher the value of , the higher 166 the social impact of the related route. The value of is assigned qualitatively 167 depending on different criteria e.g. route traffic density or proximity to 168 pedestrian/sensitive areas where air pollution could impact human health. Hence, the 169 use of routes involving critical areas—e.g., city centres or highly dense roadways—is 170 related to a higher social impact factor (with a maximum value of 3). Consequently, a 171 value for is assigned for each sludge/substrate generator depending on its route to 172 the ST. 173 174 The coefficients ( ) and are related to the role of the components 175 ( , with ) in the anaerobic process under the following conditions: 176 177  is defined as the coefficient related to the potential biodegradation 178 according to the COD content, following eq. 2. Such an equation has been drawn 179 from [31], where it is used to quantify the organic content of the substrate and, hence, 180 potential biogas production. Further calculations of biogas production have been 181 7 made assuming a conversion factor of 0.268 m3 biogas/kg DQO (a parameter 182 estimated from the current performance of the anaerobic digester of the case study 183 and assuming minimal variations in retention time). 184 (2) 185 186  is determined according to the ratio of COD/TN (eq. 3). Its value must be 187 in the range 20–60, with a maximum value at =40. This equation is used in 188 [31] to assign the optimum COD/TN ratio and penalise higher or lower ratios, which 189 has been proven suboptimal for the anaerobic digester performance in the 190 aforementioned reference. 191 (( ) ) (3) 192 193  is related to the alkalinity concentration (eq. 4), ranging from 3000 to 6000 194 g/m3 (which achieves maximum biogas production according to[31]). Then, the 195 maximum value (i.e., optimum alkalinity) corresponds to =4500, which is 196 related to the optimum alkalinity (high enough to prevent acidification but low 197 enough to prevent salts precipitation), as used in [31]. 198 [( ] (4) 199 200  is a coefficient linked to the toxicity level. The Tox level is established 201 according to the USEtox 2.1 toolbox toxicity estimation for a set of metals, expressed 202 in total equivalent mg/L of lead (Pb). has the highest values at the minimum 203 toxicity levels. Hence, =1 for a Tox level=0, and for a Tox level ≥2.1. 204 [( ] (5) 205 206 The cost function presented in this work is adapted from [31], where the ACO 207 algorithm is used for waste management optimisation in a similar fashion as here. The 208 coefficient is located outside the substrate biochemical characterisation to increase 209 the importance of toxicity minimisation, which is a major risk for an anaerobic 210 digestion operation [32] . The first term in eq. 1 is related to the quality composition 211 of the substrate, and the second term in eq. 1 is related to the transport to the digester 212 (the logistics term). The sum of both terms in eq. 1 is weighted by the coefficients 213 and , allowing the assignment of different importance to each term. This enables 214 8 stating whether the case study priorities are more focused on logistics or on 215 maximising the anaerobic digester performance. 216 The cost function in eq. 1 is constrained by the decision variable and the substrate 217 characteristics (i.e., volume, composition, and toxicity level) that are acceptable for 218 input to the anaerobic process. 219 Optimisation will provide a sequence that includes all the generators, where each 220 generator is associated with its substrate contribution (including zero contribution) to 221 the ST input. This optimised sequence may be interpreted as logistic planning based 222 on the average travels per month: all transportation routes assume that a truck of 20 223 metric tonnes capacity is fully loaded with substrate from the waste generator, 224 disregarding the truck waiting time before starting each route; once fully loaded, the 225 truck would go directly to the waste receptor (assuming it always follows the same 226 route). It is assumed that for all the co-substrate discharges made within a time frame 227 equal to or less than the digestion hydraulic retention time (usually approximately 20 228 days) a blending effect would occur (otherwise, for the conducted case-study, 229 equalisation tanks are available to hold different loads for a limited amount of time). 230 On the other hand, the specific hour of the day where routes would start and finish has 231 not been considered. This issue does not affect the solution of the algorithm, although 232 it has been noted that this would be a significant issue for real-world implementation 233 (due to potential social impacts for practitioners). 234 The ACO algorithm executes an iterative procedure that uses a population of ants, 235 initially placed in a random location of the search space of solutions. Each ant traces a 236 path through the search space following the probabilistic rule known as state 237 transition, in order to construct a solution. 238 239 The state transition rule is defined by eq. 6. 240 241 ( [ ( ] [ ( ] ∑[ ( ] [ ( ] (6) 242 243 where at iteration ( is the probability that the ant chooses the volume 244 ; ( is the pheromone trail; is the importance assigned to the pheromone trail; 245 ( is the specific heuristic information; and is the importance assigned to the 246 heuristic information. The new heuristic information , defined in eq. 7, is used in 247 the computation of a solution; the search seeks solutions by considering higher 248 9 volumes, convenient substrate characteristics and shorter distances. This heuristic 249 information provides an additional help to guide the paths of ants. 250 251 ∑ (7) 252 253 After each iteration, the pheromone trails are updated following eq. 8 [27]. 254 255 ( ( (8) 256 257 where ( is the pheromone trail at the beginning of iteration ; is the 258 persistence of pheromone in the trails (with corresponding to iteration , 259 and is the amount of pheromone added to the trail of the ant that has achieved 260 the best solution ( at iteration . The value assigned to this amount is defined in eq. 261 9 [31]. 262 263 (9) 264 265 The rest of paths followed by the ants that have not achieved the best solution do not 266 increase their pheromone trails. At the beginning of iteration t+1, their amounts are 267 those corresponding to iteration t decreased by the value of the persistence ρ (1-ρ 268 models the pheromone evaporation). 269 270 In this procedure of the algorithm, only the pheromone trails of the ants that has 271 achieved the best solutions increase, and the evaporation mechanism helps to avoid 272 unlimited accumulation [27]. For all iterations, all pheromone trails have values in the 273 range [τ_min,τ_max]. 274 275 276 3. Results 277 3.1 Case study 278 The case study included a network of 13 WWTPs which are part of the wastewater 279 treatment system managed by Consorci Besòs Tordera (CBT), a public local water 280 administration composed of 64 municipalities in four different regions of Catalonia 281 (Spain) with a population of approximately 470,000 inhabitants. The area served by 282 16 T -202 15.6 1.8 5100 8 M -354 20 1.5 4500 9 O1 -350 ± 10 20 2.1 ± 0.2 6700 ± 400 18 ± 0.7 O2 -346 ± 14 20 2.0 ± 0.2 6400 ± 300 18 ± 0.4 Table 4. Summary of results for each scenario, where O1 and O2 correspond to ACO-based 405 optimisations and the C, T and M scenarios correspond to pre-set scenarios (current, total centralisation 406 and manual distribution scenarios, respectively). OPEX is expressed as TEUR (thousand euros) per 407 year. 408 409 As observed in Table 4, scenario T results in the highest (i.e., best) CBA balance but 410 with a low retention time (HRT) trade-off. On the other hand, the optimised scenarios 411 (i.e., O1 and O2) result in the highest production of biogas (and highest organic load 412 rates) and the second and third best CBA balances while keeping the retention time at 413 20 days. Scenario M results in a balanced performance between the optimised 414 scenarios and scenarios C and T. 415 416 Considering BVR in Table 4, almost no significant differences can be noted amongst 417 the different scenarios: the lack of capacity to valorise all the produced biogas 418 worsens all CBA balances except that for the current scenario (where biogas 419 production is below the BVR). Moreover, little difference is observed between the M, 420 O1 and O2 scenarios for all restriction combinations (the CBA balance is 421 approximately −350000 €/year for the scenarios considered). 422 423 17 424 Figure 3. Waste generator volume selection for scenario O1 according to a) organic matter content, b) 425 C/N ratio, c) alkalinity and d) associated metal toxicity. Note that only average values are shown here 426 (deviations of volume selection can be checked in Figure 2) [2 column fitting image] 427 428 Figure 3 depicts the details of the optimisation results for scenario O1. To maximise 429 biogas production, the algorithm optimises the combination of wastes with the highest 430 organic content (Figure 3) while keeping the restrictions on nitrogen content, 431 alkalinity and toxicity (Figure 3). 432 433 For sewage sludge wastes (W1–W12), relatively similar organic and nitrogen contents 434 are noted (approximately 20000 ± 2000 mg/L COD and 16 ± 2 COD/N ratio, 435 respectively); however, the COD/N ratio (ranging from 14 to 20, as seen in Table 1) is 436 below the low limit constraint of the ACO algorithm (set at 20). On the other hand, 437 the COD/N values of the industrial co-substrates have much higher values and wider 438 ranges (from 42 for C1 to 32700 for C7). The COD/N constraint is the limiting factor 439 when composing the blend since the algorithm seems to prioritise industrial wastes 440 with the lowest ratio of COD/N (C1, C2 and C4, as seen in Figure 3; C3, C4, C5, C6 441 and C7 are beyond the chart limits, but their contribution to the blend is minimal). 442 443 Regarding alkalinity and toxicity (Figures 3.c and 3.d, respectively) industrial wastes 444 show less alkalinity (300 ± 260 mg/L alkalinity) and less metal toxicity (0.02 ± 0.03 445 mg/L equivalent Pb) than sewage sludge (4000 ± 2400 mg/L alkalinity and 1.4 ± 0.3 446 mg/L equivalent Pb). Hence, it may be noted that from a toxicity perspective, these 447 18 industrial substrates would be safe for co-digestion strategies (although their high 448 COD/N ratio limits their usage due to the COD/N ratio restriction over value 60). 449 450 As for the energy balance, a cogeneration system with 40% thermal efficiency and 451 35% electrical efficiency has been assumed. Scenarios C, T and M do not provide 452 enough thermal energy to sustain the thermal demand of the anaerobic digester, thus 453 requiring that part of the biogas should be valorised in a boiler to exclusively produce 454 heat. On the contrary, both optimised scenarios O1 and O2 would provide enough 455 thermal energy via cogeneration to sustain the thermal demand of the anaerobic 456 digester process. Table 5 shows the energy balance for each scenario applying 100% 457 valorisation of biogas via cogeneration. 458 459 Scenario Biogas (Nm3/d) Digestion thermal demand (thermal kW/d) Thermal energy production (thermal kW/d) Electric energy production (electric kW/d) C 3600 11200 8600 7600 T 5100 16600 12200 10700 M 4500 13800 10800 9500 O1 6700 13800 16000 14000 O2 6400 13800 15300 13400 Table 5. Energy balance of the anaerobic digestion system under study for each scenario, assuming 460 100% valorisation of biogas via cogeneration and 40% thermal efficiency and 35% electrical 461 efficiency. 462 463 464 4. Discussion 465 466 The employed ACO algorithm allows an optimised logistic planning proposal to be 467 obtained in terms of the average volume extracted from each waste generator. This, 468 together with data from the case study, allows average travels per month, biogas 469 production and the resulting OPEX balance to be estimated. Other existent 470 optimisation algorithms regarding anaerobic co-digestion that were introduced 471 previously in this paper have been focused on separate aspects of anaerobic co- 472 digestion (always with the objective of maximise biogas production): in [10], the 473 19 focus is placed on linear optimisation of the feed composition through the detailed 474 conversion routes of each compound of the feed (e.g., carbohydrates, lipids, proteins); 475 in [11], linear optimisation of the feed is also performed, taking into account the 476 potential effects of the pretreatment technologies, so the output also considers a 477 technology assessment about substrate pretreatment processes; and in [33], the focus 478 is to study the anaerobic digestion dynamics of the main metabolic reactions and the 479 biochemical transformation pathways for various organic compounds, so that it allows 480 a deeper analysis of the transition from mono-digestion to co-digestion (since such 481 transitions always depend on the type of microbiota in the digester and their 482 adaptability to the organic load increase). Additionally, algorithms focused on logistic 483 optimisation already exist, e.g., in [29], where an ACO algorithm is applied to 484 optimise truck routes (but not considering other properties of the transported 485 materials, such as the biochemical properties of sewage sludge in the case study of 486 this work), or in [34], where GIS-based optimisation is carried to address faecal 487 sludge logistics. Other methods of anaerobic digestion optimisation can be found in 488 literature, which includes multi-objective oriented works as in [35] and other works 489 driven by nature-inspired techniques [36]. Also, prediction of the biogas flow rate is a 490 significant issue, which has been recently addressed by other researchers by means of 491 artificial neural networks, genetic algorithms and the ACO algorithm [37,38]. The 492 novel ACO algorithm developed in this work is an approximation to tackle most of 493 the aforementioned issues from a holistic perspective (such as considering logistics, 494 volume distribution, and cosubstrate blend optimisation, working within the operative 495 restrictions of volume, alkalinity and nitrogen loading). 496 497 Without BVR (Table 4), the optimum scenario is O1, despite having a slightly lower 498 CBA (−107000 €/y) than scenario T (−93000 €/y). This difference in CBA is because 499 all variants of scenario T consider the total centralisation of all the non-digested 500 sewage sludge (from W1–W12), and hence, the HRT is drastically reduced to 501 approximately 15 days. Since these operation conditions are at the edge of 502 conventional and convenient anaerobic digestion management conditions, this 503 strategy implies a relatively risky shift in operation conditions. In addition, less 504 efficient biogas production, a decreased buffer capacity of the digester in the case of 505 metal toxicity, and an increased risk of acidification would be expected. The precise 506 motivation of the optimisation problem (approached herein by the ACO algorithm) is 507 20 the need to set a limit on the acceptance of external wastes to avoid these undesired 508 conditions of operation. 509 510 For the manual distribution approach, as observed in Table 4, the pre-set scenario M 511 results in a lower CBA than the optimised scenarios O1 and O2 (without BVR, 512 scenario M has a CBA of −300000 €/y, while scenarios O1 and O2 have CBAs of 513 −107000 €/y and −125000 €/y, respectively). This is because scenario M adds less 514 industrial, high-load organic waste (from 8 to 18 m3/d) and thus allows less 515 production of biogas (4500 Nm3/d, in comparison to the 6400–6700 Nm3/d of O1 and 516 O2). However, the O1 and O2 scenarios allow for more biogas production than the 517 manual scenario since the optimisation process allows for the control of critical 518 factors such as alkalinity and the COD/N ratio. The monitoring of these parameters is 519 paramount to avoid acidification of the digester, which may have an important impact 520 on its performance and may be avoided using appropriate diagnosis and optimised 521 blending strategies, such as the one presented here. 522 523 On the other hand, potential legislation and other policy-based limitations on the 524 addition of industrial substrates (such as those corresponding to C1–C7) have been 525 identified, but they have not been considered in this study. If enacted, these additional 526 restrictions could reduce the effectiveness of a co-digestion strategy below its full 527 technical potential, as shown by the ACO algorithm approach. 528 529 Besides, a significant environmental impact is provided by centralised anaerobic 530 digestion. Although it is not the main focus of the study, it has been estimated that 531 centralised digestion can reduce about 27% emissions generated from sewage sludge 532 management: the current system without centralised anaerobic digestion generates 533 about 1120 tonnes CO2/year, while digesting external sewage sludge according to the 534 optimisation procedure reduces the total emissions generated up to 810 tonnes 535 CO2/year. These results have been calculated assuming that undigested sludge sent to 536 composting has a net environmental impact of 79 kg of CO2 equivalent greenhouse 537 gas (GHG) emissions per tonne of undigested sewage sludge sent to composting, and 538 33 kg of CO2 equivalent GHG emissions for the case of digested sludge sent to land 539 application as agricultural fertiliser (according to data extracted from IPCC 540 Guidelines and used in the ECAM open source tool [39] for assessing the urban water 541 cycle). Note that for this estimation no other sources of GHG have been estimated; 542 21 thus, further work should be addressed to perform an exhaustive life cycle analysis 543 (LCA). 544 545 Regarding the impact of the logistic term on optimisation in the CBT case study, 546 minor differences are observed between scenarios O1 and O2 (as seen in Table 4). 547 Scenario O2 shows a slightly lower CBA balance than O1. Hence, in this particular 548 case, increasing the weight of the logistic term to 50 % of the cost function does not 549 provide a better CBA balance. This result may indicate that external substrate waste 550 generators with higher biomethanisation capacity are geographically closer to the 551 anaerobic digester receptor ST (Granollers WWTP) than those with less potential to 552 produce biogas. Note that the case study involves waste generators with logistic 553 distances below 30 km. Without loss of generality, for different scenarios with higher 554 logistic distances, the logistic term might be more significant, but it is not the case 555 here, where the distance between co-substrate generators and receptor do not seem to 556 be significant for optimisation purposes. This logistic term, however, could be 557 significant for the present case study if stronger restrictions and/or penalties would be 558 considered regarding, e.g., social impact factors, CO2 emissions penalisations, or a 559 different geographic configuration of external substrate generators. 560 561 A comparison of the scenarios with and without BVR shows that lower differences 562 are observed with BVR in the CBAs of scenarios M, O1 and O2. This result indicates 563 that the added value of the optimised scenarios comes particularly from those 564 scenarios with a higher ability to produce biogas, i.e., when biogas valorisation is not 565 constrained, as with BVR. Hence, the limitation on biogas valorisation blocks most of 566 the benefits obtained from the application of optimisation strategies for co-digestion. 567 568 Accordingly, to maximise the CBA of the co-digestion strategies, the capacity of 569 biogas valorisation should be increased to 7000 Nm3/h for the Granollers WWTP, 570 and the volume distribution in scenario O1 should be followed; under these 571 conditions, industrial co-substrate volume addition would comprise 18 % of the total 572 input to the digester, and a potential cost reduction of 77 % in CBA could be obtained 573 (from −480000 €/y for scenario C to −107000 €/y for the proposed scenario O1). 574 575 It may also be noted that optimal digester operation is paramount to achieve good 576 performance; such optimisation can be achieved by using tools such as the one in [9], 577 22 and significant operational costs may be saved when optimising the blend, as detailed 578 here, and when assuring optimal digester conditions, e.g., via properly optimising 579 alkalinity, toxicity and COD/N while maximising the organic content and thus biogas 580 production. The ACO algorithm presented herein allows for the optimisation of the 581 co-substrate blend and logistic planning. 582 583 Hence, implementation of this tool in actual installations should allow significant co- 584 digestion performance improvement, with a potential reduction in waste management 585 costs of 77 % for the 13 WWTPs involved in the case study. Moreover, if this tool is 586 used together with an on-line digester monitoring and diagnosis system, digester 587 stability is assured, and possible risks such as digester acidification or intoxication 588 will be minimised. 589 590 591 5. Conclusions 592 593 In this work, the optimisation of the co-digestion strategy in a real case study in the 594 waste management sector is considered by means of the implementation of an ACO 595 algorithm in a novel fashion, considering both the quality and the logistics of each co- 596 substrate, obtaining an optimised planning strategy for a real multi-plant case study. 597 The main conclusions of this study are as follows: 598  The application of an ACO algorithm has proved a useful method to optimise the 599 blend of anaerobic digestion, resulting in the successful simulation of different co- 600 digestion optimised scenarios O1 and O2. 601  Logistic-related parameters of each waste generator (i.e., distance, cost and social 602 impact) have been adapted from the approach presented in [40], which was originally 603 conceived for sewage sludge biochemical properties. 604  The results obtained show how an increasing logistics weight in the optimisation 605 provides a lower expected distance (hence, lower transportation costs) and lower 606 social impact factors, even though this does not have a significant impact on CBA in 607 the case study considered. 608  An optimised blend of sewage sludge with an 18 % volume co-substrate is achieved, 609 allowing an increase in organic matter content of +188 %, a C/N ratio upgrade from 610 16 to 59, a reduction in toxicity from 1.61 mg Pb/L to 1.36 mg Pb/L and a potential 611 waste management cost reduction of 77 %. 612 23  The significant improvement from the manual scenarios to the optimised scenarios 613 when no limit on biogas valorisation is imposed suggests the importance of optimised 614 blending to attain improved performance. 615 616 Further work may include the consideration of multiple anaerobic digesters as sludge 617 and co-substrate receptors to increase the current limit on biogas valorisation (i.e., 618 when the blend optimisation process yields better performance) and to optimise the 619 current overall potential of CBT for co-digestion. In addition, implementing 620 methodologies to objectively quantify the social impact factor would allow better 621 characterisation of the logistic impact of each substrate generator. 622 623 624 6. Acknowledgements 625 This work is supported by DAM (Depuración de Aguas del Mediterráneo) and by the 626 Industrial Doctorate Programme (ref. 2017-DI-048) of the Catalan Agency of 627 University and Research Grants Management (AGAUR). The authors would also like 628 to acknowledge the support received from our colleagues: Adrià Riu of the 629 Laboratory of Chemical and Environmental Engineering (LEQUIA) of the University 630 of Girona (UdG) for his programming expertise and Pere Aguiló and Begoña 631 Martínez of Consorci Besòs Tordera (CBT) for their useful comments and insights 632 about the anaerobic digestion processes and logistics involved in this work. 633 634 635 7. References 636 637 [1] Batstone DJ, Virdis B. The role of anaerobic digestion in the emerging energy 638 economy. Curr Opin Biotechnol 2014;27:142–9. 639 https://doi.org/10.1016/j.copbio.2014.01.013. 640 [2] Herrera Melián JA. Sustainable Wastewater Treatment Systems (2018–2019). 641 Sustainability 2020;12:1940. https://doi.org/10.3390/su12051940. 642 [3] Scarlat N, Dallemand J-F, Fahl F. Biogas: Developments and perspectives in 643 Europe. Renew Energy 2018;129:457–72. 644 https://doi.org/https://doi.org/10.1016/j.renene.2018.03.006. 645 [4] Mattioli A, Gatti GB, Mattuzzi GP, Cecchi F, Bolzonella D. Co-digestion of 646 the organic fraction of municipal solid waste and sludge improves the energy 647 24 balance of wastewater treatment plants: Rovereto case study. Renew Energy 648 2017;113:980–8. https://doi.org/10.1016/j.renene.2017.06.079. 649 [5] Villamil JA, Mohedano AF, San Martín J, Rodriguez JJ, de la Rubia MA. 650 Anaerobic co-digestion of the process water from waste activated sludge 651 hydrothermally treated with primary sewage sludge. A new approach for 652 sewage sludge management. Renew Energy 2020;146:435–43. 653 https://doi.org/https://doi.org/10.1016/j.renene.2019.06.138. 654 [6] Baldi F, Pecorini I, Iannelli R. Comparison of single-stage and two-stage 655 anaerobic co-digestion of food waste and activated sludge for hydrogen and 656 methane production. Renew Energy 2019;143:1755–65. 657 https://doi.org/https://doi.org/10.1016/j.renene.2019.05.122. 658 [7] Hagos K, Zong J, Li D, Liu C, Lu X. Anaerobic co-digestion process for biogas 659 production: Progress, challenges and perspectives. Renew Sustain Energy Rev 660 2017;76:1485–96. https://doi.org/10.1016/j.rser.2016.11.184. 661 [8] Somani D, Srivastava H, Sabumon PC, Anjali G. A short review of anaerobic 662 co-digestion and feasibility of anaerobic co-digestion of sewage and food waste 663 for sustainable waste management. Int J Earth Sci Eng 2016;9:55–70. 664 [9] Cugueró-Escofet MÀ, Aguiló-Martos P, Sáenz de Cabezón-Soriano B, 665 Sànchez-Marrè M. Intelligent Decision Support System for Anaerobic 666 Digestion. Indústria Química 2017;49:172–84. 667 [10] García-gen S, Rodríguez J, Lema JM. Optimisation of substrate blends in 668 anaerobic co-digestion using adaptive linear programming. Bioresour Technol 669 2014;173:159–67. https://doi.org/10.1016/j.biortech.2014.09.089. 670 [11] Rodríguez-Verde I, Regueiro L, Lema JM, Carballa M. Blending based 671 optimisation and pretreatment strategies to enhance anaerobic digestion of 672 poultry manure. Waste Manag 2018:521–31. 673 [12] Taboada-Santos A, Carballa M, Morales N, Vázquez-Padín JR, Guitiérrez R 674 LJ. An optimised control system to steer the transition from anaerobic mono- to 675 co-digestion in full-scale plants. Env Sci Water Res Technol 2019:1004–11. 676 [13] Tabatabaei M, Aghbashlo M, Valijanian E, Kazemi Shariat Panahi H, Nizami 677 A-S, Ghanavati H, et al. A comprehensive review on recent biological 678 innovations to improve biogas production, Part 2: Mainstream and downstream 679 strategies. Renew Energy 2020;146:1392–407. 680 https://doi.org/https://doi.org/10.1016/j.renene.2019.07.047. 681 [14] Panigrahi S, Dubey BK. A critical review on operating parameters and 682 25 strategies to improve the biogas yield from anaerobic digestion of organic 683 fraction of municipal solid waste. Renew Energy 2019;143:779–97. 684 https://doi.org/https://doi.org/10.1016/j.renene.2019.05.040. 685 [15] Velásquez Piñas JA, Venturini OJ, Silva Lora EE, del Olmo OA, Calle 686 Roalcaba OD. An economic holistic feasibility assessment of centralized and 687 decentralized biogas plants with mono-digestion and co-digestion systems. 688 Renew Energy 2019;139:40–51. 689 https://doi.org/https://doi.org/10.1016/j.renene.2019.02.053. 690 [16] Dorigo M, Maniezzo V, Colorni A. Ant system: Optimization by a colony of 691 cooperating agents. IEEE Trans Syst Man, Cybern Part B Cybern 1996;26:29– 692 41. https://doi.org/10.1109/3477.484436. 693 [17] Dorigo M, Blum C. Ant colony optimization theory: A survey. Theor Comput 694 Sci 2005;344:243–78. 695 [18] Dorigo M, Stützle T. Ant Colony Optimization. MIT Press Cambridge 2004. 696 [19] Dorigo M, Birattari M, Stützle T. Ant colony optimization artificial ants as a 697 computational intelligence technique. IEEE Comput Intell Mag 2006;1:28–39. 698 https://doi.org/10.1109/CI-M.2006.248054. 699 [20] Dorigo M, Stützle T. THE ANT COLONY OPTIMIZATION 700 METAHEURISTIC: ALGORITHMS, APPLICATIONS, AND ADVANCES. 701 In: Glover F, Kochenberger GA, editors. Handb. Metaheurística, Dordrecht: 702 Kluwer Academic; 2003, p. 557. 703 [21] Mokhtari Y, Rekioua D. High performance of Maximum Power Point Tracking 704 Using Ant Colony algorithm in wind turbine. Renew Energy 2018;126:1055– 705 63. https://doi.org/10.1016/j.renene.2018.03.049. 706 [22] Zhang K, Qu Z, Dong Y, Lu H, Leng W, Wang J, et al. Research on a 707 combined model based on linear and nonlinear features - A case study of wind 708 speed forecasting. Renew Energy 2019;130:814–30. 709 https://doi.org/10.1016/j.renene.2018.05.093. 710 [23] Meng X, Du K, Bai X, Mankins JC, Liu C. Numerical investigation on 711 improvement of energy transfer in solar power satellite. Renew Energy 712 2020;148:103–12. https://doi.org/10.1016/j.renene.2019.11.120. 713 [24] Walters G, Savic D, Morley M, Schaetzen W de, Atkinson R. Calibration of 714 water distribution network models using genetic algorithms. Trans. Ecol. 715 Environ., vol. 19, 1998, p. 131–40. 716 [25] Cugueró-Escofet MÀ, Puig V, Quevedo J. Optimal Pressure Sensor Placement 717