1 Introduction

In the companion paper, the conceptual framework and model development for the newly proposed waste load scheduling (WLS) model was discussed. In the present paper, the method for solving the waste load scheduling problem is discussed along with the application of the model to a real life case study area. The mathematical formulation for WLS model was developed by treating it in an analogous way to a machine scheduling problem, thereby converting it to a standard sequencing and scheduling problem. A simple single machine scheduling problem belongs to the class of sequencing and scheduling problems. A typical sequencing and scheduling problem involves stage-wise decision making, and therefore, dynamic programming is more suitable to solve such type of problems. Dynamic programming (DP) has been widely and successfully applied to many machine scheduling problems. A good review of application of DP to various machine scheduling problems can be seen in Cheng and Sin (1990) and McCarthy and Liu (1993).

In water resources engineering, DP has been used to solve a wide variety of problems, such as water resources systems (Larson and Keckler 1969; Heidari et al. 1971), reservoir operation (Young 1967; Hall et al. 1968; Becker and Yeh 1974; Yakowitz 1982), water quality management (Liebmann and Lynn 1966; Shih and Krishnan 1969; Chang and Yeh 1973; Cardwell and Ellis 1993; Mujumdar and Saxena 2004); irrigation scheduling (Yaron et al. 1987; Sunantara and Ramirez 1997). A good review of application of DP to various water resources engineering problems can be found in Yakowitz (1982). A review of literature of similar works revealed that DP can be effectively used for solving various types of water resources engineering problems, when sequential decision making is the major criterion.

The proposed waste load scheduling problem is a typical sequencing and scheduling problem. The objective of the WLS problem is to determine an optimal sequence among the n number of point source polluters that maximizes the total waste load allocation. The problem therefore involves stage-wise decision making such that at each stage the decision variables will be the optimal sequence of polluters and their corresponding waste load allocation. As the problem requires stage-wise decision making, dynamic programming is possibly the best choice of the available models for solving the waste load scheduling model. The supplementary material consist a hypothetical waste load scheduling problem which is solved using dynamic programming technique (Supplementary Material S1).

2 Application: Case Study

Thambraparani River, located in the southern part of Tamil Nadu state of India was selected as a case study area to validate the proposed waste load allocation scheduling model. Figure 1 shows the index map of the case study area. Thambraparani flows for a distance of about 120 km and has a perennial source of water. Irrigation and drinking water supply take up a large portion of river water supply. Most of the towns situated in the catchment area have a partial to no sewerage system. This lack of an organized sewerage system makes the river more vulnerable since most of the sewage generated from various municipalities or towns are discharged directly into the river without proper treatment. Although the water quality in the river is within the permissible limits (Annual Report on Air and Water Quality Network 2003) the increase in population and urbanization will cause great stress on both water quantity and quality.

Fig. 1
figure 1

Index map of Thambraparani river basin (Source: Thambraparani Microlevel Study, IWS, Chennai)

In order to arrest the indiscriminate discharge of effluent into the Thambraparani River, TWAD (Tamil Nadu Water Supply and Drainage) Board has proposed to construct and install an underground sewerage system and sewage treatment plants for some of the major towns in the river basin (Microlevel Study of Thambraparani River 2004). When the system will be in operation the continuous discharge of effluent from waste water treatment plants may discharge directly into the river which may have a severe impact on the river water quality. This necessitates developing a waste load allocation program for the river basin so that the assimilative capacity of the river can be used for effluent discharge while still maintaining the river water quality to the desired standard levels. The only towns which have partial to full sewerage system are Tirunelveli, V.S. Puram, Ambasamudram, Cheranmahadevi, Palayamkottai, Melapalayam and Srivaikundam (Fig. 2). The data pertaining to the waste flow rate and waste load in terms of kg/d of BOD for the towns was determined based on their population size. Data on population for the various towns were collected from census data published by the Government of India. Table 1 gives the details of population, wastewater flow rate and raw waste load quantity for each town.

Fig. 2
figure 2

Schematic diagram of Thambraparani River with locations of point source polluters

Table 1 Population, wastewater flow rate and raw waste load details for the towns which are discharging the effluent directly into the river

3 Forward Dynamic Programming Algorithm for the Waste Load Scheduling Problem

Extending the analysis of WLS described in the example problem, the DP algorithm for the case study area for a period of one year can be developed as follows. The analysis was carried out by dividing a year into twelve seasons with length of each season in days being equal to the length of the corresponding month in days. Each season was accommodated with two schedules. This was done to ensure that the polluters get greater opportunity for effluent discharge in a season and also to minimize the effluent storage space. Let S = {1, 2, 3, … .. s} represent the set of seasons within a year and R = {1, 2, 3,  … , r} represent the set of possible number of schedules in a season. For the waste load scheduling problem, the stage represents the number of days elapsed in a schedule, the state variables at stage t will be the number of polluters remaining for effluent discharge, possible values of effluent processing time, and the accumulated effluent volume for the polluters. The decision variables at stage t will be the optimal sequence of polluters and the total waste load allocation for the optimal sequence. Hence the objective function for the DP recursive equation can be expressed as:

$$ W{L}_{t,r,s}^{*}= \max {\displaystyle \sum_{s=1}^S}{\displaystyle \sum_{r=1}^R}{\displaystyle \sum_{t=1}^T}\left[{W}_{t,r,s}\left({P}_i^{\left(t+1\right)-{e}_{j,t}},{e}_{j,t}\right)+{W}_{t-1,r,s}\left({S}_{k,r}\right)\right]\forall i,j,r,s $$
(1)

where \( {WL}_{t,r,s}^{*} \) is the optimal waste load allocation (in kg/d of BOD5) for stage t in schedule r and season s; \( {W}_{t,r,s}\left({P}_i^{\left(t+1\right)-{e}_{j,t}},{e}_{j,t}\right) \) represents the waste load allocation at stage t, for schedule r during season s as a function of the polluter discharging effluent on day (t + 1) - e j , t , possible effluent processing time values for stage t (e j , t ). W t - 1 , r , s (S k , r ) represents the waste load allocation for all the possible sequences up to stage t - 1. The recursive Eq. 1 is subjected to the following constraints.

3.1 Constraint on Effluent Discharge Time

A polluter is not allowed to discharge the effluent until the effluent discharged by previous polluter is completely assimilated by the river. Let \( {d}_{i,r,s}^k \) be the day on which polluter i discharges the effluent in schedule r, during season s, with k being the position of polluter i in scheduling sequence r. Let \( {d}_{j,r,s}^{k-1} \) be the day on which polluter j discharges the effluent in r, during season s, with k - 1 being the polluter’s position in the scheduling sequence, then the constraint on effluent discharge time can be written as:

$$ {d}_{i,r,s}^k\ge {d}_{j,r,s}^{k-1}+EP{T}_{j,r,s}\ \mathrm{and}\ i\ne j $$
(2)

where, EPT j , r , s is the effluent processing time for polluter j, within the schedule r and during season s.

3.2 Constraint on Schedule Length

According to this constraint, all polluters need to be accommodated within the predefined schedule length. In other words, the sum of EPTs for all the polluters should be equal to the total length of the schedule. This can be written as:

$$ EP{T}_{1,r,s}+EP{T}_{2,r,s}+\dots .+EP{T}_{n,r,s}=S{L}_r $$
(3)

SL r is the predefined length of a schedule r (i.e., one week, ten days or 15 days etc.) in days.

3.3 Constraint on Effluent Processing Time (EPT)

This constraint stipulates that each polluter will have a maximum and minimum possible EPT values. The minimum value \( \left({T}_r^{\mathit{\min}}\right) \) will be one day and the maximum value is given by \( {T}_r^{\mathit{\max}}={SL}_r-N\times {T}_r^{\mathit{\min}} \), where SL r is the length of schedule r in days and N is the total number of polluters. Mathematically, the constraint can be expressed as:

$$ {T}_r^{\mathit{\min}}\le EP{T}_{i,r,s}\le {T}_r^{\mathit{\max}} $$
(4)

3.4 Constraint on Effluent Storage Space

The constraint on effluent storage space will be applicable to only those polluters for whom there is a limitation for land acquisition. If Qe i is the effluent flow rate (in m3/d) for polluter i, \( {EST}_i^{\mathit{\max}} \)is the maximum duration for which polluter has to store the effluent, \( {Ar}_i^{\mathit{\max}} \)is the maximum area available (in m2) for polluter i for effluent storage and H is the depth of effluent storage unit (in m), then the constraint on effluent storage space can be written as:

$$ Q{e}_i\times ES{T}_i^{\mathit{\max}}\le A{r}_i^{\mathit{\max}}\times H $$
(5)

3.5 Constraint on Water Quality

It is important that the river water quality meets the water quality standard and this constraint is given in terms of DO. The DO is used as a surrogate for identifying the health of the river water. The effluent discharged by the polluters should meet the DO standards at all the m number of checkpoints along the river. Let [F t , r , s ] m × k denote the pollutant transfer coefficient matrix due to k number of polluters during stage t in schedule r and for season s. Let \( {\left[{DO}_s^{sat}\right]}_{m\times 1} \)be the saturation DO matrix for season s. Let \( {\left[{DO}_s^{des}\right]}_{m\times 1} \)be the desirable DO level matrix for season s. Let [D u , s ] m × 1be the DO deficit matrix due to non-point source pollution for season s. The constraint on meeting DO standard then can be expressed as:

$$ {\left[D{O}_s^{sat}\right]}_{m\times 1}-{\left[{F}_{t,r,s}\right]}_{m\times k}\times {\left[WL{A}_{t,r,s}\right]}_{k\times 1}-{\left[{D}_{u,s}\right]}_{m\times 1}\ge {\left[D{O}_s^{des}\right]}_{m\times 1} $$
(6)

where [WLA t , r , s ] k × 1 is the waste load allocation matrix for stage t, for schedule r during season s involving polluters in sequence S k .

3.6 Constraint on Treatment Level

The upper limit (maximum possible treatment level with available technology) and lower limit (minimum treatment level need to be prescribed by the PCA for all polluters considering the river condition and the season) on the treatment level. This can be expressed as:

$$ {x}_i^{\mathit{\min}}\le {x}_{i,r,s}\le {x}_i^{\mathit{\max}} $$
(7)

where x i , r , s is the treatment level for polluter i for schedule and during season s.

4 Results and Discussion

To demonstrate the environmental and long-term economic advantage of the proposed waste load scheduling, the results of the model were compared with the traditional water quality management methods, like seasonal effluent discharge program (Boner and Furland 1982; Reheis et al. 1982; Rossman 1989; Lence et al. 1990; Ng et al. 2006; Jha and Gu 2010) and effluent by-pass piping EBP (Graves et al. 1969). In both of these methods the control is applied directly to the waste water, similar to the WLS model, and hence it was felt appropriate to compare the proposed model with seasonal effluent discharge program (SEDP) and effluent by-pass piping (EBP) model. For all the models the desirable DO level at any checkpoint was taken to be 5 mg/L. For the waste load scheduling model the permissible BOD value for defining effluent processing time was taken to be 5 mg/L. Also for developing the schedule the year was divided into twelve seasons, each season being equivalent to the corresponding month. Again each season was divided into two schedules, the length of each schedule being equivalent to half of the number of days in a season. After solving the waste load scheduling optimization model, the results thus obtained were compared with other two models, i.e., seasonal effluent discharge program and effluent by-pass piping model. The models were compared for the total system cost, total waste load discharge into the river and resulting water quality (measured in terms of DO level) of the river, and the overall equity achieved in total cost allocation among the polluters.

4.1 Waste Load Allocation and River Water Quality

Upon solving the waste load scheduling optimization model, the season-wise waste load allocation for a typical year for the polluters were obtained which is shown in Table 2. The annual waste load allocation for the polluters under the three different water quality management programs is given in Table 3. For the EBP model it was found that for polluters P4 and P5, the cost of by-passing the entire effluent to reach R8 will be more economical when compared to constructing an effluent treatment plant. Similarly, P1 can save some money through by-passing some part of the effluent to reach R2. From the results in Table 3, it can be inferred that the proposed WLS model is more stringent in waste load allocation to the polluters when compared to SEDP and EBP models. A stringent waste load allocation for the polluters means that the total waste load discharge into the river will be considerably less, thereby having a relatively less negative impact on the river water quality.

Table 2 Optimal waste load scheduling for a typical year
Table 3 Annual waste load allocation (tons of BOD5) under SEDP, EBP and WLS program

Often in river water quality management problems, the pollution level of a river is measured in terms of available dissolved oxygen (DO). The DO is measured at various checkpoints in the river, to ensure that the DO level is above or equal to the desired level. For the case study river, the DO level is measured at eleven checkpoints along the river, whose locations are shown in Fig. 3. Among all the checkpoints, c8 (at mileage of 72 km) is the critical checkpoint, as the maximum DO deficit occurs at this point when all the polluters discharge their untreated waste load. Also the lowest stream discharge was observed during the month of April. If DO level at the critical checkpoint is satisfied, then it definitely will be satisfied at all the other checkpoints. Similarly, if DO level at all the checkpoints is satisfied during the critical month, then it can be safely assumed that it will be satisfied for the rest of the months. Considering these points, a plot of DO level at critical checkpoint for different months under different water quality management programs is shown in Fig. 4 (a) and (b) respectively. The variation of DO across the length of river for the critical month (i.e., April) is shown in Fig. 4 (b).

Fig. 3
figure 3

A schematic diagram of the river with point source polluters, tributary flows and details of checkpoints where DO is measured

Fig. 4
figure 4

(a) DO level at various checkpoints for the critical month of April (b) DO level at critical checkpoint (c8) for different months (c) Effluent storage space required for the polluters (assuming a depth of 5 m)

From Fig. 4 (b), it can be observed that the DO level under SEDP and EBP models, at critical checkpoint during the critical month is well below the desired DO level of 5 mg/L. This means the pollution control agency will have to employ some alternate water quality control measure (for example low flow augmentation) to bring the DO level to the desired level, which will incur extra cost to the polluters and pollution control agency. On the other hand, under the WLS model, the DO level is satisfied for all the months at critical checkpoint and also the DO level during the critical period is satisfied at all the checkpoints, thereby negating the necessity of employing any alternate water quality control measure. Hence from river water quality consideration it can be argued that the proposed WLS model performs relatively better compared to the SEDP model and EBP model. Also, as DO level at the critical checkpoint is well above the desired DO level of 5 mg/L for all the seasons, it can be surmised that slight variations in river discharge or waste load quantity will not have drastic reduction in DO level. The same cannot be said for the SEDP and EBP models. Therefore, WLS model can be considered as more robust from river water quality consideration.

4.2 Cost Comparison for the SEDP, EBP and WLS Model

Cost minimization is an essential objective for any water quality management program. The total cost for any polluter can be expressed as the sum of capital cost (which includes construction of effluent treatment plant, and land acquisition) and operation and maintenance (O&M) cost. For the present research work, the cost data for the effluent treatment plants were taken from Sato et al. (2007). To compare and contrast the three methods, all the costs were annualized using the annual discounting technique, by adapting a design period of 30 years for the ETPs and discounting rate of 10 %. The cost comparison for the three models is shown in Table 4. At first glance it would appear that the total system cost is higher for the proposed WLS model compared to the SEDP and EBP model. However, it should be noted that the annual waste load reduction (total annual untreated waste load minus total annual waste load discharge) will be significantly greater under WLS program. Therefore, if same level of waste load reduction is to be achieved under SEDP and EBP models, then a capital of Rs 16 million and Rs 22.6 million in excess will have to be invested under SEDP and EBP models, respectively. If this amount is added to the initially estimated annual cost, then the total system cost will come out as Rs 101.79 million for the SEDP model and Rs 104.05 million for the EBP model. Based on this observation it can be argued that the proposed WLS model is overall slightly more economical when compared to SEDP and EBP models. Finally, Fig. 4 (c) shows the land required by the polluters for effluent storage.

Table 4 Total annual cost under SEDP, EBP and WLS model

4.3 Comparison of Equity Level Under SEDP, EBP and WLS Model

Equity refers to the concept of fairness as perceived by the end users in any allocation problem. If the perception of fairness among the end users is uneven, then the overall equity level will be less, which eventually will give rise to conflicts. In water quality management problems conflicts can arise among the polluters if any individual or group of polluters feel that their overall cost allocation is proportionately greater. This level of conflict among the polluters can be assessed indirectly through inequity measures. The lesser the inequity measure, the greater will be the fairness in cost allocation among the polluters and the corresponding water quality management program will be preferred by both polluters and the pollution control agency (PCA). For the present research work therefore, the equity measure for the polluters was calculated using the method proposed by Burn and Yulianti (2001) and Murty et al. (2006), which is based on the principle that increased fairness occurs when the ratio of removal fraction at a source to the average removal is as close as possible to the ratio of the pollutant input at a source to the average pollutant input. Mathematically it can be expressed as:

$$ IEM={\displaystyle \sum_{i=1}^n}\left|\frac{x_i}{\overline{x}}-\frac{W_i}{\overline{W}}\right| $$
(8)

where, IEM is the inequity measure; \( \overset{-}{x} \) is the average removal level for n sources; x i is the treatment removal level for polluter i; W i is the waste input (or discharge) for polluter i; \( \overset{-}{W} \) is the average waste input. From Eq. (8) it can be seen that complete equity will occur when IEM is equal to zero. In other words, a water quality management program for which IEM is closer to zero can be considered as comparatively more equitable. For the present work Eq. (8) was slightly modified by substituting individual polluter’s cost and average cost in place of x i and \( \overset{-}{x} \), respectively. Table 5 gives the summary of results for overall inequity level under each of the water quality management programs. From the tabulated results it can be surmised that the proposed waste load scheduling model gives comparatively a fairer cost allocation among the polluters.

Table 5 Inequity measure under different waste load allocation program

5 Conclusions

From the results obtained, it can be concluded that the proposed waste load scheduling model can be considered one of the viable water quality control options. Comparing the results of the three models, it was found that the river water quality (measured in terms of DO level at a checkpoint) under the proposed method was relatively better when compared to SEDP and EBP models. Also, the overall inequity level under the proposed model was found to be less compared to SEDP and EBP models. The overall system cost was slightly higher under the proposed method when compared to under SEDP and EBP model. The reason for this is due to the extra cost incurred for purchasing land for effluent storage. This cost difference between the proposed model and the other two models, however, is offset by the greater quantity of waste load treated under the proposed model when compared to SEDP and EBP models. The conservative approach adopted by the proposed method towards waste load discharge into the river will have an overall positive impact on the river water quality in the long run. The proposed method can be considered very suitable when there is sufficient space available for effluent storage. Although in the present research paper a deterministic approach has been adopted, the method can be extended without much difficulty for stochastic conditions. Also, in the present research paper, the waste load scheduling model was solved by making an assumption that only one polluter can discharge effluent on any given day. This is, however not a limiting condition for the model and the condition can be relaxed, i.e., more than one polluters can discharge the effluent on same day, when (i) the number of polluters is such that the condition of one-day-one-polluter will result in longer schedule lengths, (ii) the river assimilative capacity is sufficiently greater, and (iii) there is a restriction on the storage space availability for the polluters. If the polluters are grouped, it will reduce the schedule length, which in turn will minimize the required effluent storage space.