Introduction

Design and operation of hydraulic structures mainly rely on the amount of discharge reaching these structures. Quantification of discharge passing through a river section is of utmost importance in river engineering practices, water management, water distribution systems, design of hydraulic structures and water quality monitoring. Therefore, accurate estimation of streamflow is of utmost importance in water resource engineering. Streamflow estimation is generally accomplished through developing stage–discharge relationship at the gauging site so that measured stage may be converted into discharge as direct measurement of discharge in a river is very costly and time-consuming process. Generally, a single-valued relationship is fitted to the observed data of stage and discharge. The single-valued stage–discharge relationship usually performs well in estimation of discharge in case of steady flow but may lead to inaccurate estimation of discharge if significant unsteadiness is introduced in the flow as in case of flood waves (Herschy 1995; Zakwan et al. 2017a).

When a flood wave propagates through a river corresponding to same stage higher discharges are observed during rising stage than in falling stages resulting in looped rating curves. This affect is popularly known as hysteresis in stage–discharge relationship. Several methods have been proposed by various researchers to account for hysteresis affect in discharge rating curves. However, Jones (1916) formula is the most acceptable approach to account hysteresis affect in rating curves. Fread (1975) Faye and Cherry (1980) also proposed models which could mimic the looped rating curves efficiently, but their scope was limited as application of these models required information on channel slope, Manning roughness coefficient and cross-sectional geometry. Many researchers have commented on the logic behind Jones formula but the logical aspect behind the Jones formula was justified by Perumal and Ranga Raju (1999) by suggesting that the Jones formula is based on approximate convection–diffusion (ACD) equation. Several modifications in the Jones formula has been proposed (Perumal et al. 2004), but the extensive requirement of hydraulic parameters could limit their application (Petersen-Øverleir 2006). Petersen-Øverleir (2006) proposed a simple approach based on Jones formula and nonlinear regression which requires only stage–discharge data and time of measurement, to model the hysteresis-affected rating curves. Petersen-Øverleir (2006) successfully applied this approach for various gauging sites affected by hysteresis in USA.

Tawfik et al. (1997) applied a three-layer back propagation artificial neural network (ANN) to model the hysteresis-affected rating curves of two sites Melut and Malakal of river White Nile. Based on the comparative analysis of Boyer’s approach, falling and rising approach and ANN modelling, they concluded ANN-based modelling as the most accurate among the three. Analysing the stage–discharge data of 1993 flood for four stations in middle Mississippi Westphal et al. (1999) reported that the rating curves at these sites were affected by hysteresis. They developed single-valued stage–discharge rating curves using power law and second-degree polynomial and found that these approaches could not satisfactorily mimic the discharge rating curves in case of floods. Jain and Chalisgaonkar (2000) used back propagation feed forward ANN for modelling hypothetical looped rating curves. However, using the same data set as by Jain and Chalisgaonkar (2000), Sudheer and Jain (2003) demonstrated that radial basis function (RBF) neural network are much superior to back propagation neural network in modelling the hysteresis-affected rating curves. Goel and Pal (2011) used support vector machine (SVM) to model the hypothetical looped rating curve by dividing the data set into rising and falling stages. However, training complex ANN periodically is a cumbersome task. Therefore, the present paper proposes a very simple spreadsheet-based optimization approach to model the hysteresis-affected rating curves.

Rating curve: Continuous measurement of discharge is very costly and time consuming; therefore, in majority of the streams, estimation of discharge is generally accomplished by establishing a single-valued relation between stage and discharge which may be presented as

$$Q_{n} = K\left( {h - a} \right)^{n}$$
(1)

Qn = steady state discharge in stream; h = stage height; a = a constant representing the gauge reading corresponding to zero discharge; K and n are the rating curve constants.

However, the above relationship is incapable of modelling the unsteady flows; therefore, Jones formula is used to incorporate unsteady flow affects which may be presented as

$$Q = Q_{n} \sqrt {1 + \frac{1}{SC}\frac{\partial h}{\partial t}}$$
(2)

where S = bottom slope and C = flood wave celerity.

Equation (2) may also be presented as

$$Q = K\left( {h - a} \right)^{n} \sqrt {1 + x\frac{\partial h}{\partial t}}$$
(3)

where \(x = \frac{1}{\text{SC}}\).

Equation (3) is much similar to the nonlinear regression equation used by Petersen-Øverleir (2006) to model the hysteresis rating curves. In the present paper, Eq. (3) has been used to model the hysteresis-affected rating curves. The four parameters in Eq. (3) were determined by using nonlinear optimization approaches generalized reduced gradient (GRG) and genetic algorithm (GA). Brief description of these approaches is as follows.

GRG technique

Lasdon et al. (1978) developed GRG optimization code to solve complex nonlinear programming problems. GRG technique is basically a nonlinear extension of simplex method of linear programming that determines the search direction and performs a line search to solve system of nonlinear equations at each step. GRG technique has been found to be one of the most reliable approach to solve highly complex nonlinear programming problems (Lasdon and Smith 1992). Depending on the available storage, GRG technique involves either of the two techniques viz. Quasi-Newton method or Conjugate Gradient method to determine the search direction. However, the Quasi-Newton method is the default choice which maintains an approximation to the Hessian matrix and requires more storage space.

Strong graphical interface and ease in use has attracted the researchers towards the application of spreadsheet to solve engineering problems over the years. Analysis of hydraulic design projects was carried out on spreadsheet by Weiss and Gulliver (2001). GRG technique was applied by Bhattacharjya (2011) to obtain the optimal solution of groundwater flow inverse problem. Che et al. (2014) found GRG solver as reliable as general algebraic modelling system (GAMS) to determine optimal unit hydrographs of watersheds. Muzzammil et al. (2015) applied GRG technique to model the discharge rating curve. Zakwan and Muzzammil (2016) applied GRG technique to model the nonlinear form of Muskingum flood routing equation demonstrating that nonlinear form of Muskingum flood routing equation estimates the outflow more accurately. Zakwan et al. (2016) used GRG technique to estimate the parameters of various infiltration models. Recently, Zakwan et al. (2017b) compared the performance of GRG solver and GA for establishing stage discharge curve in case of steady flow and reported the same result for either optimization technique.

Genetic algorithm

Genetic algorithm was developed by Holland (1975); however, it became popular after Goldberg (1989). Genetic algorithm is a form of biologically inspired optimization technique and comes under the stochastic class of optimization technique. GA is capable of handling wide variety optimization problem with continuous or discontinuous objective functions. Darwin’s rule of survival of the fittest was the source of inspiration behind the development of this algorithm (Haupt and Haupt 2004; Pandey et al. 2018). In this algorithm, random population of solutions is generated to start the search and the population evolves through operators based on natural genetic variation and natural selection. In GA at each step, parents are selected from current population based on the selection rules; these parents then combine to generate elite children, crossover children and mutation children. GA differs from other heuristic search algorithms as in this algorithm search is conducted based on population information that consist of a subset of solutions. The population of chromosomes is updated till convergence, or until a specified number of updates are completed.

Data

Data of two gauging sites downstream of Buford dam in Chattahoochee River, Georgia, USA, has been considered in the present study. The data sets correspond to the flood wave that propagated through these sites on 23 March 1976. On Littles Ferry Bridge, the stage discharge data were available at every 10-min interval, while for Georgia Highway 141 the stage discharge data were available at every 5-min interval. About 25% data were used for the validation of results for both the sites. The ranges of the stage discharge data for these sites are presented in Table 1.

Table 1 Statistical characteristics of flood data

Analysis, results and discussion

In the present paper, two data sets affected by hysteresis were considered. The stage–discharge for the two sites was established using simple single-valued relationship as well as the Jones method. The parameters in simple rating curve and Jones method were estimated using spreadsheet-based optimization technique and genetic algorithm. For calibration and validation of results using GRG technique, simple rating curve (Eq. 1) and Jones formula (Eq. 3) were modelled on spreadsheet. The parameters in these equations were estimated by minimizing the sum of square of error (Eq. 4) and are reported in Table 2.

$${\text{SSE}} = \mathop \sum \limits_{i = 1}^{N} \left[ {X - Y} \right]^{2}$$
(4)

where X is the observed discharge, and Y is the estimated discharge.

Table 2 Hysteresis rating curve parameters for two sites by different method

The estimated discharge by the two approaches was assessed quantitatively as well as qualitatively. Quantitative analysis was carried on the following basis

$${\text{Root}}\;{\text{mean}}\;{\text{square}}\;\left( {\text{RMSE}} \right) = \sqrt {\frac{{\mathop \sum \nolimits_{i = 1}^{n} (X - Y)^{2} }}{N}}$$
(5)
$${\text{Correlation}}\;{\text{coefficient}}\;\left( r \right) = \frac{{N\left( {\sum XY} \right) - (\sum X)(\sum Y)}}{{\sqrt {(N(\sum (Y^{2} } ) - \left( {\sum Y} \right)^{2} )(N\left( {\sum X} \right) - \left( {\sum X)^{2} } \right)}}$$
(6)
$${\text{Modified}}\;{\text{Index}}\;{\text{of}}\;{\text{Agreement}}\;\left( {\text{IA}} \right) = \left[ {1 - \frac{{\mathop \sum \nolimits_{i = 1}^{N} \left| {X - Y} \right|}}{{\mathop \sum \nolimits_{i = 1}^{N} \left| {X - \overline{X} } \right| + \left| {Y - \overline{X} } \right|}}} \right]$$
(7)

where X is the observed discharge, Y is the estimated discharge, and \(\overline{X}\) is the average discharge.

The results of quantitative analysis during calibration and validation are presented in Tables 3 and 4 respectively. Appraisal of Tables 3 and 4 reveals that the discharge estimated by Jones formula was found to be more accurate than the conventional method of establishing simple rating curves for either sites. The results of qualitative analysis are presented in Figs. 1 and 2 which shows that nonlinear optimization techniques GRG and GA quite satisfactorily mimic the hysteresis effect in the rating curves of the two sites. Further, the spreadsheet-based optimization GRG technique results in as efficient estimation of discharge as genetic algorithm. Application of GRG technique does not require complex parameter tuning or knowledge of programming language which is a major advantage of using GRG over the genetic algorithm.

Table 3 Performance indices for two sites during calibration
Table 4 Performance indices for two sites during validation
Fig. 1
figure 1

Tracing the looped rating curve of Littles Ferry Bridge using GRG

Fig. 2
figure 2

Tracing the looped rating curve of Georgia Highway 141 using GRG

Conclusion

In this paper, discharge rating curves were established for two sites that were affected by hysteresis. The rating curve was modelled by single-valued simple rating approach and the Jones formula. The discharge estimated by Jones formula was found to be more accurate than the simple rating curve approach. Further, the Jones formula was modelled using GRG technique and GA. It has been found that the spreadsheet-based optimization GRG technique results in as efficient estimation of discharge as genetic algorithm. However, GRG technique is a very simple spreadsheet-based optimization technique which does not require complex parameter tuning and could prove beneficial to the hydrometric departments as most of the hydrometric departments assemble their data on spreadsheets.