Introduction

Regulation of water resources system is an important task while formulating various important decision-making policies pertaining to planning, design, operation and maintenance of these systems. Each water resource system has its own kind of data collection and workflow techniques to define, review, identify, verify and execute efficient and effective operational plans. Several authors used different techniques to predict outcomes and regulate water resource systems by applying concepts of fuzzy logic. The notion of fuzzy set is the formation of conceptual framework for representation of a set of data at convenient point in many real-life applications. In general, a water resources system has a large set of data which require careful analysis for taking appropriate decisions pertaining to water allocation, quality and quantity management. These data should be reliable enough so that they can not only be used in optimal and justifiable manner but also should be communicated and processed effectively to all concerned stakeholders including end-users in an user-friendly manner.

A water resource system requires to reduce projected gaps between water supply and demand to fulfil future needs of water requirement for various beneficial uses. This is a complicated task that requires sound and reliable information about physical, hydrological and demographic characteristics of a water resource system/river basin. It is not only necessary to address complex socio-economic systems with different interest groups pursuing multiple and conflicting objectives but also deal inherent hydrological variability with uncertainty in data that complicate implementation of regulation policies of a water resource system. Recognizing these facts, several researchers have applied concepts of fuzzy logic, genetic algorithms (GAs) and artificial neural network (ANN) techniques in water resource management to overcome these uncertainties. The concepts of fuzzy logic have been used by assuming that it is a super set of conventional (or Boolean) logic. The traditional Boolean logic uses 0 or 1 to describe the membership relation between one specific object and the class of this kind of objects. When the object belongs to that class, the value of the characteristic function that describes the membership relation between one specific object and classification is 1, whereas the value is 0 when the specific object doesn’t belong to the class completely. Using fuzzy logic, it is easy to calculate the degree of an object to which it is a member. The grade of membership function can be achieved by adopting the concept of a membership function to assign a number ranging from zero (absolute not belonging) to unity (fully belonging) according to the degree of belongingness to each element.

In this paper, regulation policies of a water resources system has been formulated using concepts of fuzzy logic to incorporate uncertainty due to vagueness. The vagueness can be defined by deriving appropriate membership functions. The nature of uncertainty decides the fuzzy set to be used for representing the vagueness or uncertainty of the system. Multiple degrees of membership can prove to be key in decision-making process where infinite number of values between two extreme points exists. This paper deals with the application of fuzzy logic as a domain tool for the representation of the reservoir regulation problem by a set of predefined rules as specified by the decision maker. Finally, a case study has been presented as an extension of the operation to understand the characteristics and efficiency of the water resources system of Amaravathi dam located on the Amaravathi river under fuzzy environment to depict a general framework for regulating water resources systems and arriving at decisions and policies for water resources systems. Scenario analyses using concepts of fuzzy logic have identified/obtained various important/critical indicators to overcome uncertainties involved in water resource management. These indicators are useful to test the performance of alternative management policies which are very essential in dealing with complicated planning water resources problems and could help decision makers to obtain viable alternatives under uncertainty.

Literature review

Fuzzy set was introduced after Lotfi Zadeh (1965) and further developed by many authors. Fuzzy set is used to describe the lack of distinction between events occurring in a universe of discourse (i.e. the universe of all available information about a given problem). Zadeh has extended the idea of binary membership, i.e. no membership or full membership to “degree of membership” functions, where an element may consist of infinite number of values in between endpoints representing various degrees of membership. Degree of membership used in fuzzy logic concepts is function obeying plausible properties such as monotonicity, normality and symmetry. A fuzzy set can have a number of membership functions unlike a crisp set which has unique membership function. Thus, fuzzy sets are flexible in maximizing membership functions for a particular application and utility (Ross 2010). Several authors have used the concepts of fuzzy sets and fuzzy logic applications in combination with other soft computing techniques. Panigrahi and Mujumdar (2000) have applied fuzzy inference system (FIS) as a tool to optimize operations of reservoir systems. The application of fuzzy in spatial decision support system (SDSS) was enumerated by combining geographical information system (GIS) with particular objectives in water distribution networks (Makropoulos et al. 2003). Singh and Ghosh (2003a, b) have developed a fuzzy-based conceptual modelling framework for water quality management of a river basin. They also incorporated uncertainty aspects of river basin water quality management using Monte Carlo simulation analysis (2003b). Fuzzy logic in the application of material characterization and defect detection was introduced by Khanfar et al. (2003). Cimen and Saplioglu (2007) have evaluated flow of water through hydraulic structures using fuzzy logic concepts. Sert et al. (2007) have applied fuzzy multi-objective optimization for releasing water from reservoir for various beneficial uses. Altunkaynak et al. (2005) have demonstrated application of Takagi–Sugeno (TS) method to predict consumption rate of water in Istanbul, Turkey. Singh et al. (2007) have presented interactive fuzzy multi-objective linear programming (IFMOLP) model to maximize water quality of river Yamuna under optimum treatment cost.

A number of studies have also been presented to incorporate uncertainty in assessing water resources potential, water allocation, water quality, reservoir operation and allied field of study using multi-criteria decision-making methods (Chan et al. 2009; Flug et al. 2000; Mahmoud and Garcia 2000; Singh 2008; Singh and Shrivastava 2014; Singh et al. 2017; Srdjevic et al. 2004; Teodorovic 1999). Talon et al. (2014) enumerated the performance modelling on long-range collection of data using evidence theory and fuzzy logic. Srinivas et al. (2015) have presented fuzzy inference tool to develop a model for assessing groundwater quality in Bikaner district in Rajasthan, India. They considered various water quality parameters to evaluate water quality status in groundwater wells located in the region. They ranked suitability of these wells corresponding to drinking and irrigation uses so that decision makers can formulate appropriate policies for sustainable planning of groundwater resources with optimal treatment options in the region.

Though concepts of fuzzy logic have been applied in various water-related problems, above literature review clearly demonstrates that there has been a definite requirement for developing appropriate regulation policies for reservoir operations/management in formulating/acquiring sustainable development strategies for water resources systems especially under varying climatic and hydrological conditions in Indian context.

Background of the study

The concepts of fuzzy logic have been used in real-life applications of engineering and social sciences. A number of studies in the literature enumerates the application and usage of fuzzy logic as a tool for associating objective and subjective nature of a problem. This paper develops a general framework for regulating water resources systems to formulate appropriate policies for scientific decisions using fuzzy inference rule-based systems. It evaluates outflow of the system, with respect to a given set of input variables such as inflow (I), storage (S) and time of period (T), under varying climatic and hydrological conditions. Although the model is intended for the entire basin, due to lack of adequate and reliable data, the main targets of the study were limited to a practical case study on Amaravathi dam to demonstrate application of the proposed framework. This dam was constructed on Amaravathi river, which is one of the major tributaries of the river Cauvery, originating from western Ghats near Moonar at about 1554 metres above mean sea level (MSL). Amaravathi river system facilitates for double crops mainly paddy and sugarcane. The dam is located with latitude and longitude of 10o24′55.86″ North and 70o15′49.3″ East, respectively, which covers a vast catchment area of 829,440,000 square metre. The periodic inflow for this river system is contributed by monsoon rainfall which is generally received from both south-west Monsoon and north-east Monsoon though north-east Monsoon contributes higher rainfall/inflow than south-west monsoon. Amaravathi dam envisages stabilizing of existing irrigation system which also provides additional irrigation facilities to the surrounding districts of Tamil Nadu. The live storage capacity (LSC) of the dam is 110 million cubic metre (MCM). The inflow, storage and outflow of the dam change periodically due to change in demand which in turn depends upon method of irrigation, water usage habits by the stakeholders, type of crop cultivated, prevailing atmosphere and temperature, evaporation and requirement of hydropower generation. In order to control and increase the efficiency, different kinds of mathematical optimization techniques have been devised, which in turn controls, regulates and optimizes the outflow of any stream. However, the huge data requirement and inter-dependencies of various decision variables have made these techniques very complicated. The problem becomes further aggravated due to uncertainty and ambiguity associated with data measurement and its prediction that can be treated well using concepts of fuzzy logic. The subsequent sections of the paper explain about the problem formulation to regulate outflow in reservoir system in general and a practical case study of Amaravathi dam specifically wherein the inflow, storage and outflow variables are simulated under different conditions. The study has delineated the optimal outflow on the basis of three common methods for deductive inference of fuzzy rule-based system: Mamdani method, Sugeno models and Tsukamoto models. The results obtained from these methods were compared to derive conclusive recommendations for an accurate outflow.

Problem formulation

There are various techniques which have been used to describe uncertainties associated with a particular problem. They are possibility theory, evidence theory, imprecise probabilities theory, fuzzy sets etc. For a water resource system, water storage, inflow and outflow can be expressed as fuzzy sets due to their uncertain and ambiguous characteristics. The flow and storage data applicable for a particular dam or reservoir can be discretized for a given period. Panigrahi and Mujumdar (2000) have divided annual flow of reservoir systems into thirty-six periods in their study. Each period with the mean value of 10 days flow and storage, and last six periods were added with extra 1 day in order to compensate for 366 days in a year. Application of nonlinear mathematical approach used conventionally was difficult, when analysis and modelling were made for complicated systems that too with limited information on past data. In turn, fuzzy-based analysis can be used as a tool for modelling of water-related problems for varied field applications as discussed in the literature review. Modelling of a fuzzy system basically involves identification of premises and consequences of the system, discretization of discourse of universe into subsequent sets, specifying linguistic terms for the identified antecedent and consequent for each sets. Each set could be associated with a membership function (MF). Different kinds of membership function could be specified based on our system. Selection of specific kind of membership functions for modelling depends upon the intensive experimental analysis which in turn requires extensive data. The degree of membership functions can be derived using various techniques available in the literature such as inductive reasoning, entropy minimization screening method, batch least square algorithm, gradient methods, learning from examples and previous studies. A general fuzzy system consists of fuzzifier, rules, inference engine and defuzzifier as shown in Fig. 1.

Fig. 1
figure 1

Fuzzy logic system

For a water resource system, various membership functions have been used to classify linguistic terms to apply proper rule base and discretization process. They are triangular, trapezoidal, bell-shaped, Gaussian etc., which generally obeys monotonicity, normality and symmetry characteristics. Each kind of MF’s leads to different choice of overlap among different sets in a universe of discourse. For example, inflow could have different sets such as medium inflow (MI) and medium–high inflow (M–HI) which may overlap with different degree. The degree of overlap between different sets decides the membership value of inflow for a given set of antecedents. Based on the number of antecedents and consequents, fuzzy logic system could be named as x—input and y—output system. The proposed water resources system has been considered as three-input and single-output system. The membership function and classification for inflow, outflow and storage were derived using methods available in the literature. Some of the methods used for classification and developing fuzzy models were inductive reasoning, batch least squares algorithm (BLS), recursive least squares algorithm (RLS), gradient method (GM), learning from examples (LFE), modified learning from example (MLFE) and clustering method (CM). Cardinality or cardinal number is a metric which is useful in defining attribute of sets on the universe on which the sets were defined. Cardinal number gives the total number of elements in the universe. The collection of different elements in a universe combines to form a set. Power set is one which accommodates all possible collection of sets in the universe. The sets formed by collection of elements were also called as set theoretic forms. The number of universe of discourse and sets defined was based on the definition of the problem. In this study, water resources systems have four universe of discourse for inflow, storage and time of period considered as input and outflow as output. Each universe of discourse was divided into number of sets based on required number of membership functions (MF’s). The universe of inflow, storage and outflow were characterized based on the average of historical inflow, outflow and storage details of the dam. The sets were represented in linguistic terms in order to form appropriate rule base and inference system. In a universe, to define the membership of an element belongs to a set, characteristic functions or indicator functions were used. The characteristic function signifies the degree to which an element belongs to different sets defined in a universe which also attempts to describe vagueness and ambiguity that a particular set’s extent of boundary. Based on ample literatures, fuzzy classification and development methods range of membership functions (MF) for each universe of discourse were fixed. Figure 2 shows the range of membership function and its distribution for the universe of discourse inflow for the present case study of Amaravathi dam.

Fig. 2
figure 2

Membership function for the universe inflow

Figure 3 depicts range of membership function and its distribution for the universe of discourse storage, whereas Fig. 4 shows characteristics of membership function for the universe of discourse outflow for the present case study. The range and distribution of membership function for time of period have been considered as trapezoidal and triangular form in order to account for a particular period of flows and storage during a specified year. As mentioned earlier, each element from the universe of a fuzzy set was mapped to the universe of membership values using a function-theoretic form. This function maps fuzzy sets to a real numbered value on the interval 0–1. The inflow fuzzy sets were defined as VLI, LI, MI, HI and VHI on the universe inflow (I). Similarly LS, MS, HS and VHS were classified on the universe storage and VLO, LO, L-MO, MO, M-HO, HO, VHO and VVHO were classified on the universe outflow (O). The corresponding characteristic function and extent of the above fuzzy sets on the universes inflow (I), storage (S) and outflow (O) are listed in Tables 1, 2 and 3, respectively, for the present case study. The relationship between different sets of universes was established to represent logical connectivity between various sets in the universes. As the present study deals with more than one universe of discourse, function-theoretic aggregation and composition operations were carried out in relations for defining fuzzy sets of each universe in order to arrive at mapping between antecedents and consequents of the model. The relationship developed herein represents mapping of different sets of universes through composition operators which were used to form relations between different universe of discourse. Basic types of composition operators used for this study were max–min composition operator and max-product composition operator. In this problem, both kinds of operators were used and results were arrived which show similar same pattern of variation in outflow from the water resources system. The max–min operator introduced by Zadeh has been used to express the approximate and inductive reasoning of fuzzy decision-making of water resources system.

Fig. 3
figure 3

Membership function for the universe storage

Fig. 4
figure 4

Membership function for the universe outflow

Table 1 Membership function and extent–universe inflow (I)
Table 2 Membership function and extent–universe storage (S)
Table 3 Membership function and extent–universe outflow (O)

The fuzzy information on inflow, storage and outflow of reservoir system has been represented using well-structured fuzzy rules. The proportions of fuzzy rules express the logical connectivity. For example, if proportion M is assigned to a fuzzy set called “medium inflow (MI)”, then truth value of the proportion M is represented by Eq. (1):

$$ T(M) = \mu_{\text{MI}} (x),\; {\text{where}}\;0 \le \mu_{\text{MI}} \le 1 $$
(1)

Equation (1) indicates the degree of truth for the proportion \( M:x \in {\text{MI }} \) is equal to membership grade of x in the fuzzy set MI. The process of arriving at inference and learning of the structure for a basic “if–then” rule-based system involves the application of “implication connective” between different proportions defined for the process. The implication connector works based on a basic principle of a tool “modus ponens”. For example, IF inflow (I) is very high (VHI) and storage (S) is low (LS) and time period (T) is 1, THEN outflow (O) is low (LO) is a rule, this relation can be translated into relation between sets as \( R = \left( {\left( {\left( {{\text{VHI}} \times {\text{LO}}} \right) \cup \left( { - {\text{VHI}} \times {\text{O}}} \right)} \right) \cap \left( {\left( {{\text{LS}} \times {\text{LO}}} \right) \cup \left( { - {\text{LS X O}}} \right)} \right) \cap \left( {\left( {\text{T X LO}} \right) \cup \left( { - {\text{T X O}}} \right)} \right)} \right) \). For a different proportion of antecedents, consequent can be derived using the above relation R. If elements in each set of the universe are expressed as u, v, w and z corresponding to fuzzy sets very high (VHI) in the universe of inflow (I), low (LS) in the universe of storage (S), time period of 1 and low (LO) in the universe of outflow (O), respectively, then membership function for the relation R can be expressed as given in Eq. (2):

$$ \mu_{R} (u,v,w,z) = \hbox{max} [(\mu_{\text{VHI}} (u) \wedge \mu_{\text{LS}} (v) \wedge \mu_{ 1} (w)),((1 - \mu_{\text{VHI}} (u)) \wedge (1 - \mu_{\text{LS}} (v)) \wedge 1 - \mu_{1} (w))\} $$
(2)

Fuzzy rule-based systems

The outcome of fuzzy analysis can be expressed using inferential method to represent human knowledge of the subject. Typically, conclusion (consequent) can be derived if the fact (hypothesis) is known. As mentioned previously, approximate reasoning for arriving at theoretical foundation of imprecise proportions is the ultimate goal of fuzzy logic. For reasoning approximately fuzzy rule-based system in the form of “IF–THEN”, convenient antecedent–consequent form is used. All important inferences can be made from a set of canonical rule-based system. A typical representation of canonical form of a fuzzy rule-based system has been given in Table 4. If there are more than one antecedent, it requires conjunctive or disjunctive operator for linking them. The conjunctive operator and disjunctive operator follow operations of standard intersection and union operations, respectively. The regulation and optimization of water outflow from a water resources system require minimization of available resources based on given input variables such as inflow, storage and particular time period of the year. Generally, an intersection operator is used for minimization of flows and storage for a particular period of time.

Table 4 The canonical form for a fuzzy rule-based system

Table 4 represents canonical form of fuzzy rule base applicable to water resources system at Amaravathi, where \( A^{1} ,A^{2} ,,A^{r} ,B^{1} ,B^{2} , \ldots ,B^{r} ,C^{1} ,C^{2} , \ldots ,C^{r} , \;{\text{and}}\;D^{1} ,D^{2} , \ldots ,D^{r} .\) represent the set of antecedents in the universe of inflow (I), storage (S), time period (T) and outflow (O), respectively. The multiple antecedents can be aggregated using conjunctive operator. For example, \( {\text{IF}}\;{\text{inflow}}\;{\text{is}}A^{1} \;{\text{AND }}\;{\text{storage}}\;{\text{is}}\;B^{1} \;{\text{AND}}\;{\text{time}}\;{\text{Period}}\;{\text{is}}\;C^{1} \;{\text{THEN}}\;{\text{outflow}}\;{\text{is}}\;D^{1} \) is a fuzzy rule in rule-based system. The aggregation of antecedents using conjunctive operator is given in Eq. (3). Assuming \( R^{s} \) as new fuzzy subset

$$ R^{s} = A^{1} \cap B^{1} \cap C^{1} $$
(3)

which can also be expressed in the form of membership function as given in Eq. (4):

$$ \mu_{{R^{s} }} \left( {u,v,w} \right) = \hbox{min} \left[ {\left( {\mu_{{A^{1} }} \left( u \right),\mu_{{B^{1} }} \left( v \right),\mu_{{C^{1} }} \left( w \right)} \right)} \right] $$
(4)

In real-life situations, a rule-based system consists of more than one rule, therefore each rule in the rule-based system contributes in a different way to arrive at overall conclusion from the individual consequent. Thus, aggregation process is carried out to arrive at overall consequent using a disjunctive operator, which acts same as that of union operator as defined for a fuzzy set. A disjunctive operation used for aggregation of consequents is given in Eq. (5). Assuming \( Y^{s} \) as aggregated fuzzy output,

$$ Y^{s} = D^{1} \cup D^{2} \cup D^{3} \cup \ldots \ldots \ldots D^{r} $$
(5)

which can also be expressed in the form of membership function as given in Eq. (6):

$$ \mu_{{Y^{s} }} \left( z \right) = \hbox{max} \left[ {\left( {\mu_{{D^{1} }} \left( z \right),\mu_{{D^{2} }} \left( z \right),\mu_{{D^{3} }} \left( z \right), \ldots \ldots \ldots \ldots \mu_{{D^{r} }} \left( z \right)} \right)} \right] $$
(6)

Graphical techniques of inference

The mathematical procedures can be more decisive, if a decision process can be formulated with less number of rules. If number of rules in the process of decision-making increases, computation quickly becomes quiet onerous. The graphical form of inference has been quite useful in order to increase the computation efficiency. Jang et al. (1997) have suggested three common methods for deductive inference of fuzzy rule-based system: Mamdani method, Sugeno models and Tsukamoto models. For example, if a fuzzy rule system is expressed as

  • \( {\text{Rule}}1: {\text{IF}}\;{\text{Inflow}}\;{\text{is}}\;{\text{High }}\left( {\text{HI}} \right)\;{\text{and}}\;{\text{Storage}}\;{\text{is}}\;{\text{High}}\;\left( {\text{HS}} \right)\;{\text{and}}\;{\text{Time}}\;{\text{Period}}\;{\text{is}}\; 1 \) \( {\text{THEN}}\;{\text{Outflow}}\;{\text{is}}\;{\text{Low}} - {\text{Medium}}\left( {{\text{L}} - {\text{MO}}} \right) \)

  • \( {\text{Rule2}}:{\text{IF}}\;{\text{Inflow}}\;{\text{is}}\;{\text{Medium}}\; \left( {\text{MI}} \right)\;{\text{and }}\;{\text{Storage}}\; {\text{is}}\; {\text{Medium }}\left( {\text{MS}} \right)\;{\text{and}}\;{\text{Time}}\; {\text{Period }}\;{\text{is }}\; 2 \) \( {\text{THEN }}\;{\text{Outflow}}\; {\text{is}}\; {\text{Medium}}\left( {\text{MO}} \right) \)

where High (HI), High (HS), 1, Medium (MI), Low (LS) and 2 represent fuzzy sets of rule base 1 and 2 of the system, respectively. Two different cases of Mamdani method and Sugeno models have been used for inferring the outcome in the graphical technique. Figure 5 shows the graphical Mamdani (max–min) inference representation, where the symbols A11 and A12 refer as the antecedents part of the first fuzzy rule and symbol B1 indicates the consequent part of fuzzy first rule. Similarly, A21 and A22 refer to the antecedents of the fuzzy second rule and symbol B2 indicates the consequent of the fuzzy second rule. All antecedents were connected by conjunctive rule “AND” so minimum membership value from the antecedent truncates the membership function of the consequent. Also, the minimum membership value from the antecedent truncates the membership function of consequent for the second rule. Based on the connector used for aggregation of consequent membership function, the complete aggregation process has been carried out. The disjunctive (max) aggregation results have been obtained in the overall outer envelope of the aggregated membership function after combing rules 1 and 2. The defuzzification process has been carried out in order to get the final crisp output value of the aggregated membership function using weighted average method. The max-product implication technique has also been used on similar lines in which during truncation process instead of truncating the consequent membership function, scaling of the corresponding membership function takes place. It finally results the reduced size of the membership function as shown in Fig. 6. Both process of Mamdani (max–min) and (max-product) inference and implication process has produced almost comparable output after defuzzification process.

Fig. 5
figure 5

Graphical Mamdani (max–min) inference method

Fig. 6
figure 6

Graphical Mamdani (max-product) implication method

The Sugeno method was also applied to arrive at the regulation of outflow of water resource system. In fact, Sugeno method applied for the practical case study has produced more accurate regulatory flow as compared to Mamdani method. The basic definition, which differs in Sugeno method, is that output is represented as a function of inputs with following form:

  • \( IF\;{\text{Inflow }}\;{\text{is}}\; {\text{High}}\left( {\text{HI}} \right)\; {\text{and}}\;{\text{Storage}}\;{\text{is}}\;{\text{High}}\left( {\text{HS}} \right)\;{\text{and}}\;{\text{Time}}\;{\text{of}}\;{\text{Period}}\;{\text{is}}\;1. \)

  • \( {\text{THEN}}\;{\text{Outflow}}\;{\text{is}}\;{\text{Low}} - {\text{Medium}}\left( {{\text{L}} - {\text{MO}}} \right) = {\text{f}}\left( {{\text{HI}}, {\text{HS}}, 1} \right). \)

The Sugeno method with constant function is a special case of Mamdani method which is also called as zero-order Sugeno model. The behaviour of any fuzzy system can be determined by the degree of overlap between the membership function of the antecedents that determines the smoothness of the system. In the Sugeno method, each rule has a crisp output, so arrival at the aggregated output by defuzzification process is much easier than the Mamdani method. In this study, weighted average method of defuzzification process has been used to get the crisp values.

Case study: Amaravathi dam

Above-described general framework for the regulation of water resource system was applied to Amaravathi dam to study the effectiveness and efficiency of the framework. Details of inflow, outflow and storage were collected from Tamil Nadu Water Supply and Drainage (TWAD) Board. 4 years of flow data and storage data were collected. A fuzzy rule-based system was derived based on the classification of available data. The system of fuzzy relational equations was derived based on the aforementioned membership classification, set classification, relational operations and connectors. \( R^{r} \) has been taken as fuzzy relations where r denotes the number of total relations that defines the interconnection between fuzzy sets in the universe of discourse inflow (I), storage (S), time period (T) and outflow (O). A total of 36 periods were considered annually with each period averages 10 days flows and storages and last six periods averages 11 days in order to compensate for 366 days of a specified year. Let u, v, w and z be the elements in the universe inflow (I), storage (S), time period (T) and outflow (O), respectively, then fuzzy relational equation has been expressed as

  • $$ \tilde{R}^{1}:z^{1} = \left( {u_{{1^{1} }} \circ v_{{1^{2} }} \circ w_{{1^{3} }} } \right) \circ \tilde{R}^{1} $$
  • $$ \tilde{R}^{2}:z^{2} = \left( {u_{{2^{1} }} \circ v_{{2^{2} }} \circ w_{{2^{3} }} } \right) \circ \tilde{R}^{2} $$
  • $$ \tilde{R}^{3}:z^{3} = \left( {u_{{3^{1} }} \circ v_{{3^{2} }} \circ w_{{3^{3} }} } \right) \circ \tilde{R}^{3} $$
  • $$ \tilde{R}^{r} :z^{r} = \left( {u_{{r^{1} }} \circ v_{{r^{2} }} \circ w_{{r^{3} }} } \right) \circ \tilde{R}^{r} $$

Total number of 108 rules were derived from the existing data where \( r = 108 \;{\text{and}}\;u_{{r^{1} }} ,v_{{r^{2} }} ,w_{{r^{3} }} \). were data sets. The proposed fuzzy framework has been to derive following aggregated equation:

$$ z = ((u_{{1^{1} }} \circ v_{{1^{2} }} \circ w_{{1^{3} }} ) \circ \tilde{R}^{1} )\;{\text{OR((}}u_{{2^{1} }} \circ v_{{2^{2} }} \circ w_{{2^{3} }} )\circ \tilde{R}^{2} )\;{\text{OR}} \ldots {\text{OR}}((u_{{r^{1} }} \circ v_{{r^{2} }} \circ w_{{r^{3} }} ) \circ \tilde{R}^{r} )\;{\text{z}} = ({\text{u}} \circ {\text{v}} \circ {\text{w}}) \circ \tilde{R} $$

where \( \tilde{R} \) is defined by \( \tilde{R} = \tilde{R}^{1} \cup \tilde{R}^{2} \cup \ldots \tilde{R}^{r} . \)

The canonical rule base for the above case study has been expressed as

$$ R^{r} = {\text{IF}}\;{\text{Inflow}}\;{\text{is}}\;A^{q} \;{\text{AND}}\;{\text{Storage}}\;{\text{is}}\;A^{m} \; {\text{AND}}\;{\text{Time}}\;{\text{of}}\;{\text{Period}}\;{\text{is}}\;A^{n} $$
$$ {\text{THEN }}\;{\text{Outflow}}\;{\text{is}}\;{\text{B}}^{\text{p}} $$

where \( r = 108\; {\text{and}} \;q, m\; {\text{and}} \;p \) vary as given in Table 5 and \( n \;{\text{varies}}\;{\text{from}}\; 1\; {\text{to}}\; 36 \). The membership function ranges and classification have been obtained using inductive reasoning, batch least square algorithm (BLS), recursive least square algorithm (RLS), learning from examples (LFE) and modified learning from examples (MLFE).

Table 5 Membership functions classification and range

Results and discussion

MATLAB was used for modelling of water resources system presented in this paper. The systems process has been identified by set of 108 rules. A new set of inputs alone, i.e. inflow, storage and time period, was given as input for time period of 36 and outflow was evaluated as the output. The results were compared with the original outflow of the system. Both forms of Mamdani inference methods viz., max–min method and max-product method were used to obtain outflow of the system. It has been found that the outflow of the system obtained by Mamdani inference method is in good relationship with the actual outflow as shown in Fig. 7. It was observed that the outflow obtained from max–min inference method is same as that determined from max-product inference method.

Fig. 7
figure 7

Outflow comparison—actual and fuzzy inference

It is also interesting to note that outflow obtained from Sugeno constant method predicts outflow regulation very well for the given set of inputs. An average relative error percentage (AREP) was calculated for both Mamdani method and Sugeno constant model in order to consider the overall periodic prediction and regulatory deviation. The AREP values were obtained as 0.89 and 0.14 for Mamdani method and zero-order Sugeno model, respectively.

This paper presented a generic fuzzy inference system (FIS) that can be used to model operation of a reservoir and that can be used as an implementable reservoir policy. Previous studies that used FIS as a technique to model operation of a reservoir utilized models such as stochastic dynamic programming (SDP) that can be used as a base of knowledge for formulating fuzzy rules. In the present study, fuzzy rules were formulated based on the past data available from the particular dam itself. In general, fuzzy rules that are arrived based on utilization of conventional optimization techniques such as SDP cannot be substituted, even though formulating FIS based on a particular dam can offer a chance for reservoir operators to involve in formulating the rule base for FIS. In this way, utilization of FIS may increase the participation of local authorities and personnel to arrive at the policies that are more acceptable when compared to the policies that are arrived based on more complicated optimization models. However, FIS has limitations of dimensionality problems due to increase in number of fuzzy sets.

Conclusions

A generic FIS was formulated in this study in order to understand its applicability to regulate water resources system. FIS formulated in this study utilizes past data from the dam itself in order to arrive at the knowledge base to formulate fuzzy rules. Utilization of past data and transferring the data to fuzzy rules could cause effective participation of local authorities itself. Increase in the participation of local authorities and personnel could result in enhanced and best utilization of water resources. Different needs can be satisfied by implementing simplistic approaches such as FIS described in this study.

Results obtained from Mamdani inference method and Sugeno inference constant model suggest satisfactory regulation of water for the case study of Amaravathi dam. Further, Sugeno first-order model was obtained by relating outflow as a function of inflow, storage and time period. A linear equation obtained using genetic algorithm (GA) as a tool provides a large difference with the AREP value as of 2.72. The outflow obtained using Sugeno constant model has been found with very good correlation as compared to the Mamdani method with actual regulatory policies carried for outflows in the dam. The Sugeno model also reduces time required for aggregation of consequents. In the Sugeno model, each rule has a crisp output, so aggregation of output was done by weighted average method to obtain overall output of the system. Further regulation and optimization can be obtained by accumulation of further knowledge of the system to attain the maximum wisdom of the system. The framework developed in this paper explains about the problem formulation to regulate outflow in a reservoir system in general and a case study of Amaravathi dam specifically wherein the inflow, storage and outflow variables are simulated under different conditions. The study has delineated the optimal outflow on the basis of three common methods for deductive inference of fuzzy rule-based system: Mamdani method, Sugeno models and Tsukamoto models. The results obtained from these methods were compared to derive conclusive recommendations for an accurate outflow which will be very useful to assess performance of different alternatives to be adopted for allocation and transfer of water from the dam for different beneficial usages under economic, social and environmental constraints.

Even though, this study has developed a generic model to regulate water resources system. The results obtained is sensitive to the type of membership function utilized. Thus, FIS has limitations of dimensionality problems due to increase in number of fuzzy sets. This opens up future scope of studies to define appropriate membership functions and defuzzification methods.