1. INTRODUCTION
2.2. Model multi-objective calibration with the AMALGAM algorithm
Properties of a response surface in hydrologic modelling impose difficulties on parameter optimisation. As elaborated in chapter 1.3.2, global optimisation algorithms are generally considered capable of coping with these difficulties (e.g. Yapo et al., 1996; Vrugt et al., 2009). However, it has been argued in the literature that a single optimisation algorithm cannot be efficient at various optimisation problems, i.e. different optimisation algorithms perform better for specific optimisation problem (Vrugt & Robinson, 2007; Vrugt et al.,c 2009). Hence, employing several optimisation algorithms in the calibration procedure is expected to locate global optimum basins of the response surface more efficiently and effectively. Therefore, an algorithm that combines several global optimisation algorithms, namely AMALGAM – A MultiAlgorithm Genetically Adaptive Multiobjective, is used for model calibration in this research.
The AMALGAM employs several global optimisation algorithms (mostly operators for population evolution) simultaneously, so every algorithm is in control of a certain number of (initial) parameter sets. The number of sets allocated to each optimisation algorithm is
altered dynamically in the calibration procedure, so that the algorithms with the highest reproductive success in previous iterations are allowed to generate more offspring in the current iteration. This peculiarity of the AMALGAM algorithm makes it superior compared to the individual global optimisation algorithms, especially in presence of multidimensionality of the optimisation problem (large number of free model parameters) (Vrugt et al. 2009).
The AMALGAM starts with the initial population sampling, which is based on the Latin Hypercube method – LHS (Vrugt and Robinson, 2007). The LHS is a type of stratified Monte Carlo sampling method without replacement (Keramat & Kielbasa, 1997; Marino et al. 2008). The parameter prior range is split into N non-overlapping intervals of equal probability (i.e. width of an interval amounts 1/N if the uniform probability is assumed).
A random value of the (uniform) cumulative distribution function (cdf) is sampled from every interval and the corresponding value of the parameter is assessed from the sampled cdf values. In this way, N values of every model parameter are obtained. This procedure is repeated for all model parameters and the sampled parameters are combined together into N different (initial) parameter sets. Being computationally cheap (Gentle, 2003;
Keramat & Kielbasa, 1997; Sieber & Uhlenbrook, 2005), the LHS is rather convenient for calibration of hydrologic models, which are known for multidimensionality. For example, the required number of model runs for assessment of a parameter uncertainty bounds is reduced by 90% if the LHS is applied compared to random sampling (Sieber &
Uhlenbrook, 2005).
The number of parameter sets to be assigned to an optimisation algorithm i in current iteration (generation) t, Nti, depends on the number of sets allocated to ith algorithm in the previous iteration, t 1
Ni , and the number of sets which are generated by ith algorithm in previous iteration and participate in the current generation,
P
ti (Yilmaz et al., 2010):1
Ratio between
P
ti and Nit1 represents reproductive success of the ith algorithm. N denotes total number of parameter sets (size of population) and q denotes number of optimisation algorithms employed within the AMALGAM.Change in the number of parameter sets allocated to individual optimisation algorithms throughout parameter optimisation procedure is illustrated in Figure 29. In this example, the majority of the sets is in control of the GA (Genetic Algorithm) and DE (Differential Evolution) algorithms.
To prevent some optimisation algorithms from inactivating and, consequently, to preserve population diversity, a minimum number of parameter sets is allocated to an optimisation algorithm regardless of its reproductive success (Vrugt et al. 2009). For example, in Figure 29 it is shown that the AMS (Adaptive Metropolis Search) and PSO (Particle Swarm Optimiser) algorithms are assigned 5% of the total number of parameter sets, while majority of the set is evolved by the GA and DE algorithms14.
After evolving assigned parameter sets and commutating their fitness, parent and offspring sets are merged into population of size 2N and ranked according to the values of the objective functions. The best ranked set remains in the new population, while the remaining N-1 sets are selected according to values of the objective functions and crowding distance. The crowding distance denotes Euclidian distance of a parameter set to the remaining sets of the Pareto front. Namely, remaining parameter sets are sorted into several Pareto fronts, where the first Pareto front contains non-dominated sets, the second one non-dominated sets of the remaining sets, and so forth. Selected sets are appended to the new population based on the rank of the Pareto front, and the crowding distance. This means that after inclusion of members of the first Pareto front, the members of Pareto front of a lower rank (i.e. second, third, etc.) are appended to the new population until it reaches size of N. If all sets of the pth Pareto front cannot be included into the new population, the sets with larger crowding distance are preferred to preserve population diversity (Vrugt et al., 2009). If an optimised parameter estimate is outside the prior range, it is set equal to minimum or maximum parameter value, depending on whether lower or
14 These two optimisation algorithms (GA and DE) are in control of the evolution of most parameter sets of the 3DNet-Catch model.
upper limit on the parameter value is crossed. Once again, different number of sets is assigned to every optimisation algorithm, and the sets of new population are optimised in the next iteration.
Figure 29. Percentage of offspring (parameter sets) generated by four different optimisation algorithms: the semi-lumped BASIC version of the model, the Kolubara River catchment, calibration in the 1955-2013 period.
The procedure for parameter optimisation reported above is repeated until one of the convergence criteria is met: minimum relative change between consecutive values of the objective function(s) or parameter estimates, or maximum number of iterations (Madsen 2003; Blasone et al. 2007; Blasone 2007). In this research, the latter convergence criterion is adopted (maximum number of iterations is set to 20.000, Table 7). This criterion is selected for two reasons: (1) constrains on computational time and resources, and (2) in this way, all calibrations are performed under same conditions. Selected number of iterations is supported by the:
Results reported in the literature: e.g. Zhang et al. (2009) adopted 10.000 iterations
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
0 10 20 30 40 50 60 70 80
Iteration
Generated offspring [%]
GA PSO AMS DE
Analysis of change in objective function (NSE) with increasing number of iterations (Figure 30): the objective function reaches steady state after 10.000 iterations.
Another objective function, VE, reaches steady state after approximately 500 iterations (not shown here).
Figure 30. NSE values versus optimisation runs (offspring generations): the semi-lumped BASIC version of the model, the Kolubara River catchment, 1955-2013.
The MATLAB code for the AMALGAM algorithm is available from Washington University web site15.
This version of the AMALGAM contains four optimisation algorithms: Non-dominated Sorting Genetic Algorithm (NSGA-II), Differential Evolution (DE), Particle Swarm Optimisation (PSO) and Adaptive Metropolis Search (AMS). These algorithms are briefly described in the remaining of this chapter.
15 http://www.hydro.washington.edu/pub/blivneh/CONUS/misc/tools.uw.electric/MATLAB-Code-AMALGAM-Sequential-V1.2/
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
-0.6 -0.4 -0.2 0 0.2 0.4 0.6
Generation number
NSE
2.2.1. Optimisation algorithms in the AMALGAM employed in this research Non-dominated Sorting Genetic Algorithm (NSGA-II)
Genetic algorithms are based on three principles of the evolution theory: selection, crossover (recombination) and mutation. Uniform crossover operation results in offspring with genes containing sequences form both parents, and (polynomial) mutation results in new allelic material, what is rather important to preserve population diversity and prevent the algorithm of trapping in a local optimum (Vrugt et al., 2009; Weise, 2009). Parameters of this algorithm are given in Table 7.
In the AMALGAM, the mutation factor pm is equal to the reciprocal value of the number of free parameters (Vrugt et al., 2009). Since the 3DNet-Catch contains considerable number of free parameters, in this research pm is set to 0.1 in order to preserve diversity in the parameter sets.
Differential Evolution
Differential evolution implies recombination of existing parameter sets x to generate offspring as follows (Vrugt et al., 2009):
t 1 1t
2t 3t
scaling factor which determines the level of combination betweenr2
x andxr3. In the second equation, U is a random number in the [0, 1] interval and CR is the crossover
Particle Swarm Optimisation
Particle Swarm Optimisation emanate from the swam behaviour of a flock of birds or insects (Vrugt et al., 2009; Weise, 2009). In this algorithm a swarm of particles in the parameter space is simulated (Weise, 2009). Each particle (parameter set) is defined by its current position, xkt , and its velocity, vkt (these values are randomly initialised).
The particles change their position and velocity as follows (Vrugt et al., 2009):
kt 1 v kt 1 c r1 1
bestt kt
c r2 2
p bestt kt
where φ, c1 and c2 denote inertia factor, and cognitive and social factors of the particle, respectively. Values of these parameters used in this research are specified in Table 7.
Adaptive Metropolis Search
Adaptive Metropolis search is based on the random walk Metropolis-Hastings algorithm, which implies that a set x can be described by a target distribution π (Haario et al. 2001).
This algorithm consists of the following steps:
Initial sampling from the parameter space in order to obtain initial sample, x0. Sampling a candidate point y from a proposal distribution qt
x0 . Theproposal distribution is normal, with mean at current point xt and covariance that, unlike classical Metropolis-Hasting algorithm, depends on all previous states.
Calculation of the probability of acceptance of the sampled candidate point, α, which depends on the probability density π()::
Calculation of the covariance matrix and the proposal distribution.
Table 7. Parameters of the AMALGAM, GA, DE, PSO and AMS algorithms AMALGAM
Number of optimisation algorithms q 4
Size of the population 100
Number of iterations 20.000
Minimum percentage of sets allocated to an optimisation algorithm 5 NSGA II
Crossover probability pc 0.9
Crossover distribution index ηc 20
Mutation probability pm 0.1
Mutation distribution index ηm 20
DE
Scaling factor F From uniform distribution [0.6, 1]
Crossover constant CR From uniform distribution [0.2, 0.6]
PSO
Inertia factor φ 0.5 + U [0, 1] / 2
Weight for cognitive factor of particle c1 1.5
Weight for social factor of particle c2 1