You are on page 1of 10

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/234136052

Parameter Estimation of Nonlinear Muskingum Models Using Nelder-Mead


Simplex Algorithm

Article  in  Journal of Hydrologic Engineering · November 2011


DOI: 10.1061/(ASCE)HE.1943-5584.0000379

CITATIONS READS
154 2,462

1 author:

Reza Barati
Water Authority
106 PUBLICATIONS   970 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Hydrology and Water Resources Engineering View project

Selection of appropriate sites for underground Dam View project

All content following this page was uploaded by Reza Barati on 02 June 2014.

The user has requested enhancement of the downloaded file.


Parameter Estimation of Nonlinear Muskingum Models
Using Nelder-Mead Simplex Algorithm
Reza Barati1

Abstract: The linear form of the Muskingum model has been widely applied to river flood routing. However, a nonlinear relationship
between weighted-flow and storage volume exists in most rivers, making the use of the linear Muskingum model inappropriate. On the
other hand, the application of the nonlinear Muskingum model suffers from hydrologic parameters estimation. The current study aims
at presenting the objective approach of the Nelder-Mead simplex (NMS) algorithm for the purpose of estimating the parameters of the
nonlinear Muskingum model. The performance of this algorithm is compared with other reported parameter estimation techniques together
with a historical example. Results of the implementation of this procedure indicate that the NMS algorithm is efficient for the estimating
parameters of the nonlinear Muskingum models. This algorithm is easy to be programmed, and it is quite efficient for finding an optimal
solution very quickly. Although this technique requires an initial guess for the parameter estimation, results of the sensitivity analysis of the
initial parameter values showed that in 84.8% of the cases, the optimum or near-optimum results are achieved. DOI: 10.1061/(ASCE)HE
.1943-5584.0000379. © 2011 American Society of Civil Engineers.
CE Database subject headings: Floods; Routing; Hydrologic models; Optimization; Algorithms.
Author keywords: Flood routing; Hydrologic models; Optimization; Algorithms.

Introduction plotted loop can be chosen as the correct value of X, and the slope
of the straight line fitted through the loop gives K.
The importance of flood routing in rivers has been vastly recog- Yoon and Padmanabhan (1993) shows that when the relation-
nized in hydrologic engineering practices. Field data scarcity often ship between ½XI t þ ð1  XÞOt  and St is not linear, use of a non-
prevents the use of the 1D Saint-Venant equations of gradually linear model may be more appropriate. In previous research, two
varied unsteady flow to route floods in rivers. One of the hydrologic forms of nonlinear Muskingum models have been recommended
routing techniques, the Muskingum method (McCarthy 1938), for taking into account the nonlinearity (Gill 1978; Singh and
has been frequently used to route floods in natural channels and Scarlatos 1987; Mohan 1997; Luo and Xie 2010) as
rivers. In the linear Muskingum model, the following continuity
and storage equations are used: St ¼ K½XI t þ ð1  XÞOt m ð3Þ

dSt ΔSt St ¼ K½XI m


t þ ð1  XÞOt  ð4Þ
m
≈ ¼ I t  Ot ð1Þ
dt Δt
These models have an additional parameter m ( = exponent power),
St ¼ K½XI t þ ð1  XÞOt  ð2Þ which can be determined by using alternative parameter estimation
methods. On the other hand, K with dimension of ½L3ð1mÞ T m  in
where St = channel storage at time t (L3 ); I t and Ot = rates of nonlinear models unlike the linear model does not describe the
the inflow and outflow at time t (L3 T 1 ); K = storage-time constant travel time of the flood wave. In addition, X does not have to be
for the river reach (T), which has a value close to the flow travel the same as in the linear model.
time through the river reach; X = dimensionless weighting factor Many methods have been proposed in the literature for estimat-
commonly varying between 0.0 and 0.3 for stream channels, and ing the hydrologic parameters for the nonlinear Muskingum models
between 0 and 0.5 for reservoir storage; and Δt = time step (T), (Gill 1978; Tung 1985; Yoon and Padmanabhan 1993; Mohan
which must be greater than 2KX on the basis of kinematic wave 1997; Kim et al. 2001; Das 2004; Geem 2006; Das 2007; Chu and
theory. Chang 2009; Luo and Xie 2010). Gill (1978) recommended the
Frequently, the parameters K and X in the linear Muskingum least squares method (LSM) to estimate the values of the three
model are graphically estimated by a trial-and-error procedure. parameters: K, X, and m. If more than a few time steps are included,
After X is assumed, the values of ½XI t þ ð1  XÞOt  are computed his algorithm could be very time-consuming. Tung (1985) sug-
by using observed data in both upstream and downstream and gested three techniques to calibrate the parameters by using various
plotted against St . The value of X that minimizes the width of the curve-fitting methods. He utilized the Hooke-Jeeves (HJ) pattern
1
search in conjunction with simple linear regression (LR), the
P.G. Researcher, Young Researchers Club, Mashhad Branch, Islamic conjugate gradient (CG), and the Davidon-Fletcher-Powell (DFP)
Azad Univ., Mashhad, Iran. E-mail: r88barati@gmail.com
algorithms. The performances of the methods were compared
Note. This manuscript was submitted on June 16, 2010; approved on
January 12, 2011; published online on January 14, 2011. Discussion period with Gill’s method, and HJ+CG and HJ+DFP techniques yield
open until April 1, 2012; separate discussions must be submitted for indi- better results (Geem 2006). Yoon and Padmanabhan (1993) pro-
vidual papers. This technical note is part of the Journal of Hydrologic En- posed a nonlinear technique with linearity determination. The
gineering, Vol. 16, No. 11, November 1, 2011. ©ASCE, ISSN 1084-0699/ recommended algorithm is an iterative procedure and includes the
2011/11-946–954/$25.00. nonlinear least squares regression (NONLR). Mohan (1997)

946 / JOURNAL OF HYDROLOGIC ENGINEERING © ASCE / NOVEMBER 2011

Downloaded 17 Dec 2011 to 35.8.11.2. Redistribution subject to ASCE license or copyright. Visit http://www.ascelibrary.org
  1=m  
proposed an alternative search technique, derived from genetic ΔSt 1 St 1
¼ þ I ð6Þ
algorithm (GA), for estimating the parameters of the models of Δt 1X K 1X t
Eqs. (3) and (4) and reported a better performance than other meth-
ods proposed in the literature. GA is heuristic iterative search algo-
Also, the next accumulated storage can be expressed as
rithm that attempts to find the optimal solution in a given decision
space derived from a search algorithm that mimics Darwinian Stþ1 ¼ St þ ΔSt ð7Þ
evolution and survival of the fittest in a natural environment
(Cheng et al. 2002). Kim et al. (2001) applied the harmony search
The solution procedure for the nonlinear model of Eq. (3) includes
(HS) algorithm to the same parameter calibration problem. Their
the following steps (Tung 1985; Kim et al. 2001; Geem 2006):
results show that HS estimation was better than GA and also
Step 1. Determine values of the hydrologic parameters by applying
did not require that the initial values of the design parameters were
optimization techniques. For the practical example data and NMS
close to the optimum. However, this method requires careful atten-
technique, the parameter vector is (K ¼ 0:5175, X ¼ 0:2869,
tion for the harmony memory considering rate and pitch adjusting
and m ¼ 1:8681).
rate. Das (2004) estimated parameters for linear and nonlinear
Step 2. Compute the initial storage volume by Eq. (3), where the
Muskingum models by using the Lagrange multiplier. This method
initial flow rate at downstream section is the same as the initial flow
transforms the constrained parameter optimization problem into an
rate at upstream section. For example, St ¼ 166:61.
unconstrained problem. The Lagrange multiplier estimates optimal
Step 3. Compute the time rate of change of the channel storage by
parameters by using the first-order necessary condition for optima.
Eq. (6). For example, ΔSt =Δt ¼ 1:4019, where Δt ¼ 6.
The results obtained by this method were not as good as the results
Step 4. Calculate the accumulated storage at the next time by
obtained by other researchers (Luo and Xie 2010). Geem (2006)
Eq. (7). For example, Stþ1 ¼ 175:02.
recommended the Broyden-Fletcher-Goldfarb-Shanno (BFGS) al-
Step 5. Compute the magnitude of the outflow at the next time by
gorithm to find the values of the three parameters in the nonlinear
Eq. (5). For example, Otþ1 ¼ 22:42.
Muskingum model. This technique found the best parameter values
These steps carry out unit total number of discharge hydrograph
compared to previous results in terms of the sum of the square
ordinates (N) are calculated. A similar procedure may be developed
deviation between the observed and routed outflows. However,
for the model given by Eq. (4).
BFGS requires initial value assumption for the K, X, and m param-
eters. Das (2007) offered a chance-constrained optimization-based
model for Muskingum model parameter estimation. This model is
very complex and requires massive computation for parameter es-
Nelder-Mead Simplex Algorithm
timation of the Muskingum model (Luo and Xie 2010). Chu and The Nelder-Mead simplex algorithm for unconstrained optimiza-
Chang (2009) used the particle swarm optimization (PSO) tech- tion has been used extensively to solve parameter estimation and
nique to estimate parameters for the nonlinear Muskingum model. other problems since its inception by Nelder and Mead (1965).
PSO does not demand any initial estimate of values of any of the In the past several years, the NMS technique has been successfully
parameters. However, the result obtained by PSO was not as good applied, including in hydrological modeling. For example, the
as the results obtained by other methods such as HS and BFGS. U.S. Army Corps of Engineers has used the NMS algorithm in
Luo and Xie (2010) recommended an immune clonal selection al- Hydrologic Engineering Center-Hydrologic Modeling System
gorithm (ICSA) to find the values of the three parameters in the (HEC-HMS) software as a search method for optimization of the
nonlinear Muskingum model. ICSA is an intelligent algorithm that hydrologic parameters (HEC-HMS 2000). In this software, optimi-
can efficiently overcome the prematurity and slow convergence zation of the hydrologic parameters [such as initial abstraction
speed of the traditional evolution algorithm. However, the sensitiv- and curve number in soil conservation service (SCS) loss model;
ity analysis is required for determination of the algorithm param- moisture deficit, hydraulic conductivity, and wetting front suction
eters such as the clonal scale, mutation probability, and crossover in the Green and Ampt loss model; and time of concentration and
probability. storage coefficient in Clark’s unit hydrograph (UH) model] can be
In previous research, including hydrological modeling, the done. Ouria and Toufigh (2009) presented the application of the
Nelder-Mead simplex (NMS) algorithm has been successfully NMS algorithm for unconfined seepage problems. Abida (2009)
applied (HEC-HMS 2000; Abida 2009; Ouria and Toufigh applied the NMS technique to estimate parameters required for
2009). In this study, the parameter estimation for the nonlinear routing floods through open compound channels.
Muskingum model is presented by using the NMS algorithm. The The NMS algorithm shares similarities with evolutionary com-
results of this algorithm are compared with other reported tech- putation techniques such as GA and PSO (Fan et al. 2006; Lasheen
niques (Gill 1978; Tung 1985; Mohan 1997; Kim et al. 2001; Geem et al. 2009; Zahara and Kao 2009). This method attempts to min-
2006; Luo and Xie 2010) through a historical example. Because the imize a scalar-valued nonlinear function of n real variables by using
nonlinear Muskingum model in Eq. (4) is not as popular as the one only function values, without any derivative information (Lagarias
in Eq. (3) (Geem 2006; Luo and Xie 2010), this paper will focus on et al. 1998). Thus, the NMS technique is classified in the general
the latter model for comparison purposes. class of direct search methods. In the NMS algorithm, simplex is a
geometric shape in n dimensions of nonzero volume that is the con-
vex hull of n þ 1 vertices (Lagarias et al. 1998). The algorithm is
Routing Procedure of Nonlinear Muskingum Model started by setting up an initial simplex. Therefore, NMS technique
By rearranging Eq. (3), the routed outflow Ot can be declared as uses an initial guess of the user to produce the initial simplex. The
  1=m   initial guess is used as one of the vertices of the simplex. The
1 St X n remaining vertices of the initial simplex are found by adding
Ot ¼  I ð5Þ ΔL (%) to each component of the initial guess vector. The oper-
1X K 1X t
ations of the NMS algorithm rescale the simplex by using four
By substituting Eq. (5) in Eq. (1), the time rate of change of the basic procedures: reflection, expansion, contraction, and shrinkage
storage volume can be achieved as (see Fig. 1).

JOURNAL OF HYDROLOGIC ENGINEERING © ASCE / NOVEMBER 2011 / 947

Downloaded 17 Dec 2011 to 35.8.11.2. Redistribution subject to ASCE license or copyright. Visit http://www.ascelibrary.org
b. Inside. If f r ≥ f nþ1 , compute the inside contraction point xcc
by

xcc ¼ x  γðx  xnþ1 Þ ð11Þ

Also calculate f cc ¼ f ðxcc Þ. If f cc < f nþ1 , accept xcc and terminate


the iteration; otherwise, continue with step 5.
Step 5. Shrink. Compute the n points by

vi ¼ x1 þ σðxi  x1 Þ; ð0 < σ < 1Þ ð12Þ

Also calculate f ðvi Þ, i ¼ 2; …; n þ 1. The unordered vertices of the


simplex at the next iteration are composed of x1 ; v2 ; …; vnþ1 .
The steps are symbolically illustrated in Fig. 2. It can be implied
that the parameters of ρ, χ, and γ = factors by which the volume of
the simplex is reformed by using of the Reflect, Expand, and Con-
tract steps, respectively. Also, a Shrink step reforms the volume of
the simplex by the parameter of σ (Nelder and Mead 1965). The
results of the iterations are either a single new vertex, which repla-
ces with the current worst point (xnþ1 ) in the set of vertices for the
next iteration, or a set of n new points that together with the current
Fig. 1. Flowchart of Nelder-Mead simplex algorithm best point (x1 ) form the simplex at the next iteration if a shrink is
executed (Lagarias et al. 1998). The iterations proceed until they
meet stopping criteria. The stopping criteria that are used here con-
Let f ðxÞ be the function for minimization, and xi denotes the list sist of (1) the maximum coordinate difference between the current
of points in the current simplex, i ¼ 1; …; n þ 1. Then, the NMS best point and the other points in the simplex is less than or equal to
technique procedure presented in Lagarias et al. (1998) can be ε1 , expressed as
done. This procedure contains the following steps: max ðkxi  x1 kÞ ≤ ε1 ð13Þ
Step 1. Order. Order the n þ 1 vertices to meet f ðx1 Þ ≤ 2≤i≤nþ1
f ðx2 Þ ≤    ≤ f ðxnþ1 Þ.
Step 2. Reflect. Compute the reflection point xr by where k · k = infinity-norm, x1 holds the vertex with the current
lowest value, and ε1 represents the tolerance; and (2) the corre-
xr ¼ x þ ρðx  xnþ1 Þ; ðρ > 0Þ ð8Þ sponding difference in function values is less than or equal to ε2
Pn (= tolerance for the difference in function values). Both criteria
where x ¼ ð1=nÞ i¼1 xi = centroid of the n best points.
must be satisfactory at the same time for each of iteration. On the
Also calculate f r ¼ f ðxr Þ. If f 1 ≤ f r < f n , accept the reflected
other hand, the iteration stops if either the maximum number of
point xr and terminate the iteration.
iterations or function evaluations are exceeded. The maximum
Step 3. Expand. If f r < f 1 , compute the expansion point xe by
numbers of these criteria are limited to 600 for three design param-
xe ¼ x þ χðxr  xÞ; ðχ > 1 and χ > ρÞ ð9Þ eters. For the calculations of the NMS approach, the fminsearch
function of MATLAB including this algorithm (Yang et al. 2005)
Also calculate f e ¼ f ðxe Þ. If f e < f r , accept xe , and terminate the was interfaced with a nonlinear Muskingum routing model to find
iteration; otherwise (if f e ≥ f r ), accept xr and terminate the the optimal values of the hydrologic parameters.
iteration.
Step 4. Contract. If f r ≥ f n , execute a contraction between x and
the better of xnþ1 and xr . Application Example and Results
a. Outside. If f n ≤ f r < f nþ1 , compute the outside contraction
point xc by For evaluation of NMS technique, a historical example is used. The
xc ¼ x þ γðxr  xÞ; ð0 < γ < 1Þ ð10Þ data set from Wilson (1974) is considered for illustration purpose.
These data are exhibited to have a nonlinear relationship between
Also calculate f c ¼ f ðxc Þ. If f c < f r , accept xc and terminate the ½XI t þ ð1  XÞOt  and St (Yoon and Padmanabhan 1993; Mohan
iteration; otherwise, continue with step 5. 1997). The objective function of the NMS algorithm is to minimize

Fig. 2. The illustration of new points in search space of Nelder-Mead simplex algorithm

948 / JOURNAL OF HYDROLOGIC ENGINEERING © ASCE / NOVEMBER 2011

Downloaded 17 Dec 2011 to 35.8.11.2. Redistribution subject to ASCE license or copyright. Visit http://www.ascelibrary.org
the sum of the squared deviations between the calculated and procedures are evaluated by using the following measures: (1) the
observed outflows sum of the square of the deviation between the computed and ob-
served outflows (SSQ [L6 T 2 ]); (2) the sum of the absolute value of
X
N
the deviations between the computed and observed outflows (SAD
min SSQ ¼ fOt  O
^ t g2 ð14Þ [L3 T 1 ]); and (3) the absolute value of the deviations of peak of
t¼1
computed and observed outflows (DPO [L3 T 1 ]). SAD and SSQ
where SSQ = sum of the square deviation of the observed outflow are measures of the bias and accuracy of the techniques, respec-
and computed outflow (L6 T 2 ); Ot = observed outflow at time tively (Mohan 1997). Because all of the methods have good results
t (L3 T 1 ); O
^ t = computed outflow at time t (L3 T 1 ); and N = total in terms of time to peak, the results of different methods are not
number of discharge hydrograph ordinates to be simulated. There- compared in this term. The performance criteria of the nonlinear
fore, the objective function of the NMS algorithm for the nonlinear Muskingum model for various parameter estimation methods and
model of Eq. (3) is given as the hydrologic parameters values are presented in Table 2. Because
SSQ is the objective function, it is the premier measure in Table 2.
N 
X   1=m   2 Other measures derived from the data may perform differently.
1 St X
min SSQ ¼ Ot   I The results indicate that SSQ from NMS give the lowest value
1X K 1X t
t¼1 (SSQ ¼ 36:76) than other methods such as HS, GA, HJ+DFP,
ð15Þ LSM, and ICSA and is as accurate as BFGS for the nonlinear model
of Eq. (3). If the effects of three measures are simultaneously con-
where I t = observed inflow at time t (L3 T 1 ); St = channel storage sidered, the algorithms such as GA, HS, BFGS, ICSA, and NMS
at time t (L3 ); and K, X, and m = design parameters. are challenged. GA gives lower SAD and DPO than other methods,
In the previous papers, different researchers have presented the but it shows far away SSQ from optimal solution than other algo-
routed outflows with a different number of digits after the decimal rithms. Between HS and ICSA, HS performed better because of
point while the results of the measures are sensitive to the number a lower value of SSQ. The comparison between NMS and BFGS
of digits after the decimal point. Barati (2010) indicates that the shows that NMS carries out better because of lower values of SAD
rounding off effects on measures was faded by rounding off with and DPO. Finally, NMS and HS are compared. HS resulted in a
three digits after decimal points. For true comparison of the results lower value of SAD, but NMS produced lower values of SSQ and
of different methods in Table 1, the routed outflows are represented DPO. However, the different subjects (such as the number of iter-
with three digits after decimal point accuracy. Columns 1–3 of ations for convergence, the time convergence, and the algorithm
Table 1 are the actual data (Wilson 1974); columns 4–10 show parameters) must be considered for comparison of different meth-
the routed flows by using Eq. (3), with the parameters estimated ods. For example, the comparison between NMS and HS shows
by LSM (Gill 1978), HJ+DFP (Tung 1985), GA (Mohan 1997), that NMS found the optimal solution in a maximum of 221 itera-
HS (Kim et al. 2001), BFGS (Geem 2006), ICSA (Luo and Xie tions, but HS needs about 4,500 iterations for convergence (Kim
2010), and NMS, respectively. Fig. 3 depicts these results. In ad- et al. 2001). Therefore, the algorithms such as NMS and BFGS
dition, the performance of NMS and the other parameter estimation have the shortest operating time for convergence rather than

Table 1. Comparison of Performance of Hydrologic Parameters Estimation Methods


Observed data (m3 s1 ) Routed outflow (m3 s1 )
Time (hr) Upstream Downstream LSM HJ+DFP GA HS BFGS ICSA NMS
0 22 22 22.000 22.000 22.000 22.000 22.000 22.000 22.000
6 23 21 22.000 22.000 22.000 22.000 22.000 22.000 22.000
12 35 21 22.814 22.427 22.393 22.418 22.422 22.419 22.422
18 71 26 29.682 26.689 26.369 26.576 26.612 26.585 26.611
24 103 34 39.304 34.847 34.206 34.390 34.460 34.442 34.455
30 111 44 47.977 44.665 44.180 44.111 44.175 44.200 44.166
36 109 55 58.352 56.939 56.999 56.827 56.864 56.912 56.853
42 100 66 67.526 67.683 68.237 68.055 68.069 68.122 68.056
48 86 75 75.130 76.280 77.189 77.085 77.080 77.124 77.069
54 71 82 80.733 82.218 83.295 83.339 83.325 83.346 83.315
60 59 85 83.492 84.697 85.714 85.920 85.905 85.898 85.899
66 47 84 82.968 83.476 84.228 84.546 84.538 84.507 84.535
72 39 80 80.129 79.785 80.180 80.581 80.579 80.527 80.580
78 32 73 74.454 73.339 73.307 73.701 73.706 73.644 73.711
84 28 64 66.971 65.478 65.073 65.394 65.400 65.338 65.408
90 24 54 57.758 56.503 55.824 55.988 55.989 55.941 55.999
96 22 44 47.627 47.482 46.709 46.671 46.658 46.634 46.670
102 21 36 36.968 38.727 38.034 37.776 37.745 37.752 37.757
108 20 30 27.661 31.379 30.918 30.507 30.462 30.495 30.472
114 19 25 21.569 25.902 25.721 25.273 25.224 25.269 25.230
120 19 22 19.005 22.136 22.164 21.779 21.736 21.779 21.740
126 18 19 19.000 20.181 20.260 20.019 19.993 20.020 19.995

JOURNAL OF HYDROLOGIC ENGINEERING © ASCE / NOVEMBER 2011 / 949

Downloaded 17 Dec 2011 to 35.8.11.2. Redistribution subject to ASCE license or copyright. Visit http://www.ascelibrary.org
Fig. 3. Difference between the routed and observed outflows for various methods

Table 2. Hydrologic Parameters Estimates and Comparative Statistics of The results of two group methods are sensitive to the algorithm
Example Data parameters or initial guess. The estimation of the algorithm param-
Parameters values Statistics values eters or initial values assumption for these techniques derived from
the data may be on the same or a different difficulty level.
SSQ SAD DPO
Furthermore, NMS finds better results [SSQ ¼ 245:58 for the
Method K X m ðm6 s2 Þ ðm3 s1 Þ ðm3 s1 Þ
parameter vector (K ¼ 0:4606, X ¼ 0:2287, and m ¼ 1:5012)]
LSM 0.0100 0.2500 2.3470 145.71 46.26 1.51 than [SSQ ¼ 1038:2 for the parameter vector (0.0500, 0.2200,
HJ+DFP 0.0764 0.2677 1.8978 45.62 24.92 0.30 2.3500)] of NONLR (Yoon and Padmanabhan 1993) and [SSQ ¼
GA 0.1033 0.2813 1.8282 38.24 23.00 0.71 264:8 for the parameter vector (0.1773, 0.2305, and 1.7105)] of GA
HS 0.0883 0.2873 1.8630 36.78 23.40 0.92 (Mohan 1997) for the nonlinear model of Eq. (4). Therefore, it can
BFGS 0.0863 0.2869 1.8679 36.76 23.47 0.91 be said that the performance of the NMS algorithm for parameter
ICSA 0.0884 0.2862 1.8624 36.80 23.40 0.90 estimation of nonlinear Muskingum models is as good as or better
NMS 0.0862 0.2869 1.8681 36.76 23.46 0.90 than the other methods.

Discussion
GA, HS, and ICSA. On the other hand, it is known that algorithms
such as GA, HS, and ICSA do not need initial value assumption for
the hydrologic parameters, but they do require careful considera- Discussion of Results—Effect of NMS Algorithm
tion when choosing the algorithm parameters, such as the crossover Coefficients
rate and mutation rate in GA; the harmony memory considering Four scalar parameters consist of coefficients of reflection (ρ), ex-
rate and pitch adjusting rate in HS; and the clonal scale, mutation pansion (χ), contraction (γ), and shrinkage (σ) must be indicated to
probability, and crossover probability in ICSA (Geem 2006; Barati define a complete NMS algorithm (Lagarias et al. 1998). On the
2010). In contrast, the methods such as HJ+DFP, BFGS, and NMS other hand, ΔL must be determined on the basis of the smallest
do require initial value assumption for K, X, and m parameters. number of function evaluations.

Table 3. Sensitivity Analysis of NMS Parameters in Terms of SSQ


σ ρ ¼ 1=2 ρ ¼ 2=3 ρ¼1
γ ¼ 0:25 γ ¼ 0:5 γ ¼ 0:75 χ¼2 χ¼3 χ¼4 χ¼2 χ¼3 χ¼4 χ¼2 χ¼3 χ¼4
0.25 — — 38.51 37.84 37.81 36.76 36.77 36.77 36.76 37.49 36.77
0.5 — — 38.51 37.84 37.81 36.76 36.77 36.77 36.76 37.49 36.77
0.75 — — 38.51 37.84 37.81 36.76 36.77 36.77 36.76 37.49 36.77
— 0.25 — 39.08 37.67 37.39 36.76 36.76 36.77 36.76 36.76 36.76
— 0.5 — 39.08 37.67 37.39 36.76 36.76 36.77 36.76 36.76 36.76
— 0.75 — 39.08 37.67 37.39 36.76 36.76 36.77 36.76 36.76 36.76
— — 0.25 38.65 37.55 37.46 36.78 36.76 36.76 36.76 36.76 36.76
— — 0.5 38.65 37.55 37.46 36.78 36.76 36.76 36.76 36.76 36.76
— — 0.75 38.65 37.55 37.46 36.78 36.76 36.76 36.76 36.76 36.76
Note: Initial guess (K ¼ 0:1, X ¼ 0:3, and m ¼ 1:75).

950 / JOURNAL OF HYDROLOGIC ENGINEERING © ASCE / NOVEMBER 2011

Downloaded 17 Dec 2011 to 35.8.11.2. Redistribution subject to ASCE license or copyright. Visit http://www.ascelibrary.org
Table 4. Mean and Minimum Number of Function Evaluations for Different Values of χ, γ, σ over Various Vectors of Initial Guess
σ Mean Minimum
γ ¼ 0:25 γ ¼ 0:5 γ ¼ 0:75 χ¼2 χ¼3 χ¼4 χ¼2 χ¼3 χ¼4
a a a
0.25 — — 275 275 354 131 182 354
0.5 — — 229a 275a 354a 131 182 354
0.75 — — 267a 275a 354a 131 182 354
— 0.25 — 201 221 225a 127 128 148
— 0.5 — 195 210 241a 127 128 148
— 0.75 — 197 209 242a 127 128 148
— — 0.25 353 345a 364a 272 261 282
— — 0.5 349 373a 364a 272 261 282
— — 0.75 353 374a 359a 272 261 282
Note: ρ ¼ 1.
a
This combination of NMS parameters failed to find the optimal solution for at least one of the initial values assumption of the hydrologic parameters.

To decide the final values for these parameters and ΔL, the of NMS in terms of SSQ for the parameter vector (K ¼ 0:1,
performance of the NMS technique with different parameter X ¼ 0:3, and m ¼ 1:75) as initial guess. It can be seen that in most
choices was investigated. A problem encountered in this procedure of cases SSQ was optimal (SSQ ¼ 36:76) for ρ ¼ 1. On the basis of
was that the size of the initial simplex had an effect on the speed of these results and the number of function evaluations, ρ ¼ 1 was
convergence; therefore, several vectors of initial guess and several selected. Table 4 summarizes the mean and minimum numbers of
ΔL of the initial simplex were used (Nelder and Mead 1965). function evaluations required for convergence over 10 vectors of
For all combinations of ρ ¼ ð1=2; 2=3; and 1Þ; χ ¼ ð2; 3; and 4Þ; initial guess. In calculation of the mean of the number of function
evaluations, the cases that failed to find the optimal solution are
γ ¼ ð0:25; 0:5; and 0:75Þ; and σ ¼ ð0:25; 0:5; and 0:75Þ over 10
omitted. It can be seen from Table 4 that the mean and minimum
vectors of initial guess of the hydrologic parameters have been op-
timized. Sensitivity analysis of NMS parameters indicates that the
results are more sensitive than ρ parameter. For example, Table 3
summarizes the results of sensitivity analysis of the key parameters

Fig. 4. Results of sensitivity analysis of ΔL on convergence of Nelder-


Mead simplex algorithm

Table 5. Mean and Minimum Number of Function Evaluations for


Different ΔL over Various Vectors of Initial Guess
Mean
ΔL
a
(%) (1, 2, 0.5, 0.5) (1, 3, 0.5, 0.5) (1, 4, 0.5, 0.5) (1, 2, 0.75, 0.5)
3 201 235 207 330
5 171 192 178 308
7 197 195 220 334
Minimum
ΔL
(%) (1, 2, 0.5, 0.5) (1, 3, 0.5, 0.5) (1, 4, 0.5, 0.5) (1, 2, 0.75, 0.5)
3 163 189 178 250
5 132 144 137 222
7 144 163 198 300 Fig. 5. Results of sensitivity analysis of routing parameters on model
a performance
(ρ, χ, γ, and σ).

JOURNAL OF HYDROLOGIC ENGINEERING © ASCE / NOVEMBER 2011 / 951

Downloaded 17 Dec 2011 to 35.8.11.2. Redistribution subject to ASCE license or copyright. Visit http://www.ascelibrary.org
numbers of function evaluations were minimized for χ ¼ 2, in a range that its effective factors can arise. According to results of
γ ¼ 0:5, and σ ¼ 0:5. The best set of parameters (ρ ¼ 1, χ ¼ 2, former researchers for Wilson’s data and Eq. (3), the ranges of K, X,
γ ¼ 0:5, and σ ¼ 0:5) have the minimum of the number of function and m parameters are as follows: K ¼ 0:01–0:2; X ¼ 0:2–0:3; and
evaluations for convergence, and this set resulted the optimal sol- m ¼ 1:5–2:5 (Gill 1978; Tung 1985; Yoon and Padmanabhan
ution in most of vectors of the initial guess. 1993; Mohan 1997; Kim et al. 2001; Geem 2006; and Luo and
For investigation of the effect of ΔL on the results, the mean of Xie 2010).
the number of function evaluations for 10 vectors of initial guess as In the first way, base value parameters have been determined;
the change of ΔL is presented in Fig. 4. Also the mean and mini- then the parameters in a specified range are changed, and the model
mum of the number of function evaluations for various ΔL and is run for the new conditions. In all cases, only one parameter is
NMS parameters for five vectors of initial guess are summarized changed and the rest remain unchanged. Here the base values are
in Table 5. It can be said that the number of function evaluations the optimized values of the parameters. In Fig. 5 the results of the
is smallest for ΔL ¼ 5 (%). sensitivity analysis for the nonlinear Muskingum model of Eq. (3)
In conclusion, because the universal choices used in the NMS have been illustrated. Fig. 5 demonstrates that a unique set of values
technique are ρ ¼ 1, χ ¼ 2, γ ¼ 0:5, and σ ¼ 0:5 (Nelder and for the hydrologic parameters resulted in minimum SSQ for the
Mead 1965; Lagarias et al. 1998; HEC-HMS 2000; Yang et al. historical example studied.
2005; Zahara and Kao 2009), it can be said that NMS does not In the second way, for the initial values K ¼ ð0:01; 0:05; 0:1;
require the determination of the algorithm parameters for each case 0:15; and 0:2Þ, X ¼ ð0:2; 0:225; 0:25; 0:275; and 0:3Þ, and m ¼
study. In other words, this set of parameters is best set for shortest ð1:5; 1:75; 2:0; 2:25; and 2:5Þ, the parameters have been optimized.
operating time of convergence. This set of coefficients correspond The results of this section are separated as four groups consisting
to a symmetric reflect step, an expansion step that is twice the of optimum, near optimal, far away optimal, and infeasible. The
length of the reflect step, and contraction steps that are half the model will be optimal if the optimum amount (SSQ ¼ 36:76) is
length of the reflect step. In a similar manner, the shrink step halves achieved. The model will be near optimal providing the maximum
the distance from the best vertex to each of the other vertices in the value of error limited to SSQ ¼ 36:77. In the infeasible group,
simplex (see Fig. 2). the model cannot properly run. At last, if the model can be run and
maximum value of error is not in the near optimal group, the re-
Discussion of Results—Effect of Initial Guess sults will be far away optimal. The results indicate that 50 cases
were optimal (SSQ ¼ 36:76), 56 cases were near optimal (SSQ ¼
For investigation of the effect of the initial guess for the hydrologic 36:7681, 36.7683, 36.7687, 36.7688, and 36.7691), 4 cases were
parameters on the objective function, the sensitivity analysis takes far away optimal (SSQ ¼ 36:7750, 36.7885, 36.7906, and 37.709),
place in two ways. The sensitivity analysis is true when takes place and 15 cases were infeasible (Table 6). This sensitivity analysis is

Table 6. Sensitivity Analysis of the Initial Guess of the Hydrologic Parameters in Terms of SSQ
m K
X ¼ 0:2 X ¼ 0:225 X ¼ 0:25 X ¼ 0:275 X ¼ 0:3 0.01 0.05 0.1 0.15 0.2
1.5 — — — — Inf. Inf. N-Opt. N-Opt. N-Opt.
1.75 — — — — Inf. N-Opt. N-Opt. N-Opt. N-Opt.
2 — — — — Opt. N-Opt. N-Opt. N-Opt. N-Opt.
2.25 — — — — N-Opt. Opt. F.A.Opt. N-Opt. N-Opt.
2.5 — — — — N-Opt. Opt. Opt. Opt. N-Opt.
— 1.5 — — — Inf. Inf. N-Opt. Opt. Opt.
— 1.75 — — — Inf. N-Opt. N-Opt. N-Opt. Opt.
— 2 — — — Opt. Opt. F.A.Opt. Opt. N-Opt.
— 2.25 — — — N-Opt. N-Opt. Opt. Opt. Opt.
— 2.5 — — — N-Opt. N-Opt. Opt. N-Opt. Opt.
— — 1.5 — — Inf. Inf. Opt. N-Opt. N-Opt.
— — 1.75 — — Inf. N-Opt. Opt. Opt. Opt.
— — 2 — — Opt. Opt. F.A.Opt. N-Opt. N-Opt.
— — 2.25 — — N-Opt. Opt. N-Opt. Opt. Opt.
— — 2.5 — — N-Opt. N-Opt. Opt. Opt. N-Opt.
— — — 1.5 — Inf. Inf. Opt. N-Opt. N-Opt.
— — — 1.75 — Inf. N-Opt. Opt. Opt. Opt.
— — — 2 — Opt. N-Opt. N-Opt. N-Opt. Opt.
— — — 2.25 — Opt. Opt. F.A.Opt. Opt. Opt.
— — — 2.5 — N-Opt. Opt. N-Opt. N-Opt. N-Opt.
— — — — 1.5 Inf. Inf. Opt. N-Opt. Opt.
— — — — 1.75 Inf. N-Opt. Opt. Opt. Opt.
— — — — 2 N-Opt. Opt. Opt. Opt. N-Opt.
— — — — 2.25 Opt. N-Opt. N-Opt. N-Opt. N-Opt.
— — — — 2.5 Opt. N-Opt. Opt. Opt. N-Opt.
Note: Inf. = infeasible; Opt. = optimal; N.-Opt. = near optimal; and F.A.Opt. = far away optimal.

952 / JOURNAL OF HYDROLOGIC ENGINEERING © ASCE / NOVEMBER 2011

Downloaded 17 Dec 2011 to 35.8.11.2. Redistribution subject to ASCE license or copyright. Visit http://www.ascelibrary.org
values (Table 6); (2) NMS produces improved results of SAD
and DPO (Table 2); (3) NMS provides acceptable results for the
model of Eq. (4) if BFGS is divergent (Geem 2006); and (4) BFGS
is commonly selected for smooth nonlinear problems, but NMS
is chosen effectively for either smooth nonlinear or nonsmooth
problems. In addition to higher accuracy, when compared with
algorithms such as GA, HS, and ICSA, NMS does not need deter-
mination of algorithm parameters for each case study. Furthermore,
because these methods randomly search for the optimal solution,
some uncertainties are included in these algorithms (Luo and Xie
2010). Also NMS has a shorter calculation time.
The NMS algorithm produces good results, does not need the
derivatives of the function, and deals with a population of points
instead of a single point. Moreover, it is quite efficient in finding the
optimal solution very quickly, easy to program, and requires very
little storage and information for execution. Because of its simplic-
ity and robustness, the NMS technique is much more efficient than
alternative traditional methods (Lasheen et al. 2009). However, it is
important to note that the NMS algorithm requires initial value as-
sumptions for the hydrologic parameters. The sensitivity analysis
for the initial guess of parameters in a range that is available for the
study shows that in 84.8% of the cases the optimum results are
Fig. 6. Progression of solution with number of iterations achieved after running two time optimizations. Eventually, consid-
ering that NMS is modeled by the MATLAB program that is widely
available for engineers, the users are able to evaluate the parameters
without knowing the exact details of optimization technique. Also,
conducted in the same manner as Geem (2006) with the difference good results are yielded for nonlinear Muskingum models. This
that a wider range of parameters is considered. By comparing the algorithm is one of the efficient approaches for estimating the
results of sensitivity analysis of BFGS and NMS, it is concluded nonlinear Muskingum model parameters. Furthermore, it is antici-
that NMS produces better results. In addition, except in infeasible pated that the NMS algorithm can be successfully applied to other
cases, the results of NMS are always improved, but BFGS results problems in hydrologic engineering.
are divergent in some cases. Investigation of the results of the Because optimization algorithms have only been compared for
sensitivity analysis also shows that in optimal cases the lower and Wilson’s data, in future researches these methods can be compared
upper bounds for the maximum number of iterations of vectors of for several flood events with a nonlinear relationship between
the initial guess are limited to 71 and 221, respectively. However, weighted flow and storage volume. Therefore, the best algorithm
all cases can be done during only 1 s. In Fig. 6, the improvement can be determined in the field conditions.
procedure of the best solution in the NMS algorithm as a number of
iterations for the lower and upper bounds is presented. Fig. 6 clearly
demonstrates that NMS technique produces good results even Acknowledgments
for the value of SSQ of the initial guess distant from optimal
solution (SSQ ¼ 36:76). The writer appreciatively acknowledges the valuable comments
In real calculations, the initial values can be adapted by a trial- offered by the editors and anonymous reviewers in improving the
and-error procedure to minimize the value of error (Geem 2006). technical contents of this paper. The author would like to thank the
For improvement of the result of NMS, the model can be run at Young Researchers Club, Mashhad Branch, Islamic Azad Univer-
least twice. In this way, after running one-time optimization, the sity, Mashhad, Iran, for financially supporting this research.
values obtained for the hydrologic parameters are considered as
the initial guess for the next run. Thus, finding the optimal solution
can be increased. For the data of the study, the optimum results are References
achieved in 84.8% of the cases.
Abida, H. (2009). “Identification of compound channel flow parameters.”
J. Hydrol. Hydromech., 57(3), 172–181.
Conclusions Barati, R. (2010). “Discussion of ‘Parameter estimation for nonlinear
Muskingum model based on immune clonal selection algorithm’ by
In the past, several parameter estimation methods have been Jungang Luo and Jiancang Xie.” J. Hydrol. Eng., 16(4), 391–393.
recommended to determine the parameter values for the nonlinear Cheng, C. T., Ou, C. P., and Chau, K. W. (2002). “Combining a fuzzy
Muskingum methods. In the present study, the Nelder-Mead optimal model with a genetic algorithm to solve multi-objective
simplex algorithm has been proposed for estimating the hydrologic rainfall-runoff model calibration.” J. Hydrol. (Amsterdam), 268(1–4),
72–86.
parameters. It found the best parameter values in terms of the min-
Chu, H. J., and Chang, L. C. (2009). “Applying particle swarm optimization
imal sum of the square deviation between the observed and routed
to parameter estimation of the nonlinear Muskingum model.” J. Hydrol.
outflows. The performance of this approach was compared with Eng., 14(9), 1024–1027.
other common methods by using different criteria. For the model Das, A. (2004). “Parameter estimation for Muskingum models.” J. Irrig.
of Eq. (3), this method is more accurate than other ones (only in one Drain. Eng., 130(2), 140–147.
case is NMS as accurate as BFGS). However, for the following Das, A. (2007). “Chance-constrained optimization-based parameter esti-
reasons NMS performance is better than BFGS: (1) NMS produces mation for Muskingum models.” J. Irrig. Drain. Eng., 133(5),
improved results of sensitivity analysis of the initial parameter 487–494.

JOURNAL OF HYDROLOGIC ENGINEERING © ASCE / NOVEMBER 2011 / 953

Downloaded 17 Dec 2011 to 35.8.11.2. Redistribution subject to ASCE license or copyright. Visit http://www.ascelibrary.org
Fan, S. K., Liang, Y. C., and Zahara, E. (2006). “A genetic algorithm and McCarthy, G. T. (1938). “The unit hydrograph and flood routing.” Proc.,
a particle swarm optimizer hybridized with Nelder-Mead simplex Conf. of the North Atlantic Division, U.S. Army Corps of Engineers,
search.” Comput. Ind. Eng., 50(4), 401–425. New London, CT.
Geem, Z. W. (2006). “Parameter estimation for the nonlinear Muskingum Mohan, S. (1997). “Parameter estimation of nonlinear Muskingum models
model using the BFGS technique.” J. Irrig. Drain. Eng., 132(5), using genetic algorithm.” J. Hydraul. Eng., 123(2), 137–142.
474–478. Nelder, J. A., and Mead, R. (1965). “A simplex method for function
Gill, M. A. (1978). “Flood routing by Muskingum method.” J. Hydrol. minimization.” Comput J. (UK), 7(4), 308–313.
(Amsterdam), 36(3–4), 353–363. Ouria, A., and Toufigha, M. M. (2009). “Application of Nelder-Mead
Hydrologic Engineering Center. (2000). Hydrologic modeling system simplex method for unconfined seepage problems.” Appl. Math.
HEC-HMS: Technical reference manual, U.S. Army Corps of Engi- Modell., 33(9), 3589–3598.
neers, Davis, CA.
Singh, V. P., and Scarlatos, P. D. (1987). “Analysis of nonlinear Muskingum
Kim, J. H., Geem, Z. W., and Kim, E. S. (2001). “Parameter estimation of
flood routing.” J. Hydraul. Eng., 113(1), 61–79.
the nonlinear Muskingum model using harmony search.” J. Am. Water
Tung, Y. K. (1985). “River flood routing by nonlinear Muskingum
Resour. Assoc., 37(5), 1131–1138.
Lagarias, J. C., Reeds, J. A., Wright, M. H., and Wright, P. E. (1998). method.” J. Hydraul. Eng., 111(12), 1447–1460.
“Convergence properties of the Nelder–Mead simplex method in low Wilson, E. M. (1974). Engineering hydrology, MacMillan, Hampshire, UK.
dimensions.” SIAM J. Optim., 9(1), 112–147. Yang, W., Cao, W., Chung, T., and Morris, J. (2005). Applied numerical
Lasheen, A. A., El-Garhy, A. M., Saad, E. M., and Eid, S. M. (2009). methods using MATLAB, Wiley, Hoboken, NJ.
“Using hybrid genetic and Nelder-Mead algorithm for decoupling of Yoon, J. W., and Padmanabhan, G. (1993). “Parameter estimation of linear
MIMO systems with application on two coupled distillation columns and nonlinear Muskingum models.” J. Water Resour. Plann. Manage.,
process.” Int. J. Math. Comput. Simul., 3(3), 146–157. 119(5), 600–610.
Luo, J., and Xie, J. (2010). “Parameter estimation for nonlinear Muskingum Zahara, E., and Kao, Y. T. (2009). “Hybrid Nelder–Mead simplex search
model based on immune clonal selection algorithm.” J. Hydrol. Eng., and particle swarm optimization for constrained engineering design
15(10), 844–851. problems.” Expert Syst. Appl., 36(2), 3880–3886.

954 / JOURNAL OF HYDROLOGIC ENGINEERING © ASCE / NOVEMBER 2011

View publication stats Downloaded 17 Dec 2011 to 35.8.11.2. Redistribution subject to ASCE license or copyright. Visit http://www.ascelibrary.org

You might also like