Tuning Genetic Algorithm Parameters to Improve Convergence Time

. Fermentation processes by nature are complex, time-varying, and highly nonlinear. As dynamic systems their modeling and further high-quality control are a serious challenge. The conventional optimization methods cannot overcome the fermentation processes peculiarities and do not lead to a satisfying solution. As an alternative, genetic algorithms as a stochastic global optimization method can be applied. For the purpose of parameter identiﬁcation of a fed-batch cultivation of S. cerevisiae altogether four kinds of simple and four kinds of multipopulation genetic algorithms have been considered. Each of them is characterized with a di ﬀ erent sequence of implementation of main genetic operators, namely, selection, crossover, and mutation. The inﬂuence of the most important genetic algorithm parameters—generation gap, crossover, and mutation rates has—been investigated too. Among the considered genetic algorithm parameters, generation gap inﬂuences most signiﬁcantly the algorithm convergence time, saving up to 40% of time without a ﬀ ecting the model accuracy.


Introduction
Fermentation processes (FP) are preferred and widely used in different branches of industry.The modeling and control of FP pose serious challenges as FP are complex, nonlinear dynamic systems with interdependent and time-varying process parameters.An important step for adequate modeling of nonlinear models of FP is the choice of a certain optimization procedure for model parameter identification.Different metaheuristics methods have been applied to surmount the parameter estimation difficulties [1][2][3].Since the conventional optimization methods cannot overcome the limitations of FP [4], genetic algorithms (GAs), as a stochastic global optimization method, are quite promising.Among a number of searching tools, the genetic algorithms are one of the methods based on biological evolution and inspired by Darwin's theory of "survival of the fittest" [5].GAs are directed random search techniques, based on the mechanics of natural selection and natural genetics.GAs find the global optimal solution in complex multidimensional search spaces simultaneously evaluating many points in the parameter space.They require only information concerning the quality of the solution and do not require linearity in the parameters.GAs have been successfully applied in a variety of areas to solve many engineering and optimization problems [6][7][8].Properties such as noise tolerance and ease of interfacing and hybridization make GA a suitable method for the identification of parameters in fermentation models [9][10][11][12][13].
Simple genetic algorithm (SGA) presented initially in Goldberg [5] searches for a global optimal solution using three main genetic operators in a sequence selection, crossover, and mutation.GAs work with a population of coded parameter set called "chromosome."Each of these artificial chromosomes is composed of binary strings (or genes) of certain length (number of binary digits).Each gene contains information for the corresponding parameter.Through selection chromosomes representing better possible solutions according to their own objective function values are chosen from the population.After the reproduction, crossover proceeds in order to form new offspring.Mutation is then applied with determinate probability.Even though selection and crossover effectively work, occasionally, a GA may lose some potentially useful information.That is why International Journal of Chemical Engineering mutation is needed to prevent falling of all solutions in the population into a local optimum of the solved problem.Then the algorithm evaluates the objective value of the individuals in the current population and according to that the new chromosome is created.The SGA is terminated when a certain number of generations is fulfilled.The basic multipopulation genetic algorithm (MpGA) introduced in [5] has the same sequence of implementation of the main genetic operators as SGA.The difference in MpGA compared to SGA is the presence of many populations, called subpopulations [5,14].These subpopulations evolve independently from each other for a certain number of generations (isolation time), after that a number of individuals are distributed between the subpopulation.
For the purpose of this investigation, SGA and MpGA with standard sequence of genetic operators, namely selection, crossover, and mutation, are denoted, respectively, as SGA-SCM and MpGA-SCM.Many improved variations of the SGA and MpGA have been developed [9,13,15,16].Among them are the modified genetic algorithm with a sequence crossover, mutation, and selection [9], here denoted as SGA-CMS, and consequent modification of MpGA based on such exchange, here denoted as MpGA-CMS.In these algorithms selection operator has been processed after performing crossover and mutation.The main idea for such operators' sequence is to prevent the loss of reached good solution by either crossover or mutation or both operators.Both algorithms SGA-CMS and MpGA-CMS have been tuned for a parameter identification of S. cerevisiae fed-batch cultivation, improving the optimization capability of the algorithm and decreasing decision time.Obtained promising results applying SGA-CMS and MpGA-CMS encouraged more investigations concerning genetic operators' sequences to be performed in order further improvements of the algorithms to be found.Moreover, since the basic idea of GA is to imitate the mechanics of natural selection and genetics, one can make an analogy with the processes occurring in the nature, saying that the probability mutation to come first, and then crossover is comparable to the idea both processes to occur in a reverse order.Thus, following this line of investigation, also the following modifications are obtained [9]: SGA-SMC and MpGA-SMC-with sequence selection, mutation and crossover; SGA-MCS and MpGA-MCS-with sequence mutation, crossover, and selection, all the modifications of the SGA and MpGA developed in [5].
The elaboration of SGA-MCS is briefly presented below as the fastest genetic algorithm among all investigated in this study.In the beginning, the SGA-MCS generates a random population of chromosomes, that is, suitable solutions for the problem.In order to prevent the loss of reached good solution by either crossover or mutation or both operators, selection operator has been processed after performing of crossover and mutation [9].The modification in SGA-MCS is that the individuals are reproduced processing firstly mutation, followed by crossover.The elements of chromosome are a bit changed when a newly created offspring mutates, after that the genes from parents combine to form a whole new chromosome during the crossover.After the reproduction, the SGA-MCS calculates the objective function for the offspring and the best fitted individuals from the offspring are selected to replace the parents, according to their objective values.When a certain number of generations is fulfilled the SGA-MCS is terminated.
There are many operators, functions, parameters, and settings in the genetic algorithms that can be ameliorated and implemented differently in various problems [5,12,14].In this study three of the main genetic algorithms parameters are investigated, namely, generation gap (GGAP), crossover (XOVR), and mutation rates (MUTR) with values shown in Table 1, according to some statements [17].Very big generation gap value does not improve performance of GA, especially regarding how fast the solution will be found.Mutation is randomly applied with low probability, typically in the range 0.01 and 0.1.Crossover rate is the parameter that affects the rate at which the crossover operator is applied.A higher crossover rate introduces new strings more quickly into the population.A low crossover rate may cause stagnation due to the lower exploration rate.
The aim of the paper is to study the influence of three of the main genetic algorithms parameters, namely, generation gap, crossover, and mutation rates, to be investigated towards algorithms convergence time with values shown in Table 1.Such genetic algorithms parameters are examined for altogether eight kinds of simple and multipopulation genetic algorithms.Their performances are demonstrated for S. cerevisiae fed-batch cultivation.

Parameter Identification of S. cerevisiae Fed-Batch Cultivation Using Simple and Multipopulation Genetic Algorithms
Experimental data of S. cerevisiae fed-batch cultivation is obtained in the Institute of Technical Chemistry, University of Hannover, Germany [10].The cultivation of the yeast S. cerevisiae is performed in a 1.5 L reactor, using a Schatzmann medium.Glucose in feeding solution is 50 g•L −1 .The temperature was controlled at 30 • C, the pH at 5.7.The stirrer speed was set to 500 rpm.Biomass and ethanol were measured off-line, while substrate (glucose) and dissolved oxygen were measured on-line.Mathematical model of S. cerevisiae fed-batch cultivation is commonly described as follows, according to the mass balance [18]: where X is the concentration of biomass, [g L avolumetric oxygen transfer coefficient, [h −1 ]; S in -initial glucose concentration in the feeding solution, [g•L −1 ]; µ, q S , q E , q O2 -specific growth/utilization rates of biomass, substrate, ethanol and dissolved oxygen, [h −1 ].
Fed-batch cultivation of S. cerevisiae considered here is characterized with keeping glucose concentration equal to or below to its critical level (S crit = 0.05 g•L −1 ), sufficient dissolved oxygen O 2 ≥ O 2crit (O 2crit = 18%) and availability of ethanol in the broth.This state corresponds to the socalled mixed oxidative state (FS II) according to functional state modeling approach [18].As presented in [18], the specific growth rate is generally found to be a sum of two terms, one describing the contribution of sugar and the other the contribution of ethanol to yeast growth.Both terms have the structure of Monod model.Monod model is also used for the specific ethanol and sugar consumption rates.Dissolved oxygen consumption rate is obtained as a sum of two terms, which are directly proportional to the specific glucose rate and specific ethanol production rate, respectively.Hence, specific rates in (1) are presented as follows: where µ 2S , µ 2E are the maximum growth rates of substrate and ethanol, [ As an optimization criterion, mean square deviation between the model output and the experimental data obtained during cultivation has been used: where Y is the experimental data; Y * -model predicted data; Parameter identification of the model (1) has been performed using Genetic Algorithm Toolbox [14] in MAT-LAB 7 environment.All the computations are performed using a PC Intel Pentium 4 (2.4 GHz) platform running Windows XP.All kinds of genetic algorithms-four kinds of SGA and four kinds of MpGA-have been consequently applied for the purposes of parameter identification of S. cerevisiae fed-batch cultivation.The values of genetic algorithms parameters except GGAP, XOVR, and MUTR for all considered here kinds of genetic algorithms, both simple and multipopulation, have been accepted as presented in Table 2, while the type of genetic operators is as listed in Table 3.
In Table 2 NVAR is the number of variables; PRECIprecision of binary representation; NIND-number of individuals; MAXGEN-maximum number of generations; MIGR-migration rate; INSR-insertion rate; SUBPOPnumber of subpopulations; MIGGEN-number of generation, after which migration takes place between subpopulations.
The influence of main genetic algorithm operators considered here, namely, GGAP, XOVR, and MUTR, has been firstly examined for all four kinds of SGA, and a comparison in relation to model accuracy and convergence time is demonstrated in Table 4.When one of the parameters GGAP, XOVR, or MUTR is investigated according to Table 1, the basic values for the other two parameters are as follows, according to some statements [17]: GGAP = 0.8, XOVR = 0.95, and MUTR = 0.05.
As shown in Table 4, the optimization criterion values obtained with four kinds of standard genetic algorithms are very similar, varying between 0.0221 and 0.0230 which means about 4% variance.As one can see, the results obtained with SGA-SCM are very similar to results obtained with SGA-SMC.Also, results when SGA-CMS is applied are closed to those with SGA-MCS, but the convergence time is much less than the first group.One can summarize that proceeding selection operator before crossover and mutation (no matter their order) needs more computational time.This fact is valid for investigation of both parameters-GGAP and XOVR.It should be noted that the GGAP is the most sensitive from three investigated parameters concerning the  convergence time-up to almost 40% (in case of SGA-MCS, which is distinguished also as the fastest one algorithm) using GGAP = 0.5 instead of 0.9 can be saved without loss of accuracy.Even more exactly in case of SGA-MCS the objective function value decreases from the maximum observed in all performances value of 0.0230 to the lowest one-0.0221.Exploring different values of crossover rate no such time saving is realized but it should be pointed that values of 0.85 for XOVR can be assumed as more appropriate.
Only in MUTR no tendency of influence can be drawn.For the "favorite" of the considered here algorithms SGA-MCS, value of 0.1 for MUTR can save up to 20%.It is also demonstrated that there is no loss of model accuracy when the operator mutation is performed before crossover.Moreover, proposed modification in SGA in most cases reduces convergence time.Presented here comparison shows that the implementation of the operators in a sequence of mutation, crossover, and then selection is the most optimal according to convergence time with guarantied high accuracy of the decision.
Based on such analysis, as a "favorite," SGA-MCS can be distinguished.Parameter identification of S. cerevisiae fedbatch cultivation has been performed applying SGA-MCS at chosen genetic parameter values GGAP = 0.5, XOVR = 0.85, and MUTR = 0.1.As a result of parameter identification, the values of model parameters are as presented in Table 5, while the CPU time = 38.6410s and J = 0.0223.
Figure 1 presents results from experimental data and model prediction, respectively, for biomass, ethanol, substrate, and dissolved oxygen.
The same analysis has been performed also for four kinds of multipopulation algorithms.The tendencies described in SGA have been proven to multipopulation algorithms as well (results not shown because of similarity).As a "favorite" among MpGA the one with standard sequence, namely, selection, crossover, mutation, has been distinguished.GGAP is again the most sensitive parameter concerning the convergence time leading again to saving up to almost 40% using GGAP = 0.5 instead of 0.9 without loss of accuracy.Parameter identification of S. cerevisiae fed-batch cultivation has been performed applying MpGA-SCM at chosen genetic parameter values GGAP = 0.5, XOVR = 0.85, and MUTR = 0.02 (the only one difference to SGA).As a result of parameter identification, the values of model parameters are as presented in Table 6, while the CPU time = 97.5940s and J = 0.0221.
Figure 2 presents results from experimental data and model prediction, respectively, for biomass, ethanol, substrate, and dissolved oxygen.
Presented in both figures, the results from SGA and MpGA application for parameter identification of S. cerevisiae fed-batch cultivation show the effectiveness of GA for solving complex nonlinear problems.

Conclusions
In this investigation altogether eight modifications of genetic algorithms-four kinds of simple and four kinds of multipopulation genetic algorithms-have been examined.Different modifications of SGA and MpGA are with exchanged   operators' sequence of selection, crossover, and mutation operators.The influence of some of genetic algorithm parameters, namely, generation gap, crossover, and mutation rates, has been explored for all eight kinds of genetic algorithms aiming to improve the convergence time.Among the three investigated parameters, the generation gap is the most sensitive one towards to convergence time.As "favorites" among the considered here algorithms, SGA-MCS and MpGA-SCM have been distinguished.Up to almost 40% from calculation time can be saved in cases of SGA-MCS and MpGA-SCM application using GGAP = 0.5 instead of 0.9 without loss of model accuracy.Exploring different values of crossover and mutation rates no such time saving is realized but it should be pointed that values of 0.85 for crossover rate can be assumed as more appropriate.
Employing such values of genetic algorithm parameters, both distinguished algorithms, as well as all others modification of SGA and MpGA, show the effectiveness of genetic algorithms for solving complex nonlinear problems.

Figure 1 :
Figure 1: Model prediction compared to experimental data, respectively, for biomass, ethanol, substrate, and dissolved oxygen concentrations.

Figure 2 :
Figure 2: Model prediction compared to experimental data, respectively, for biomass, ethanol, substrate, and dissolved oxygen concentrations.

Table 1 :
Range of investigated genetic algorithm parameters.

Table 4 :
Results from model parameter identification using different kinds of SGA.

Table 5 :
Values of model parameters when SGA-MCS has been applied.

Table 6 :
Values of model parameters when MpGA-SCM has been applied.