|
Algorithm 3 Water Savings Algorithm |
Require: : Threshold value for optimization
-
1:
Load Data:
-
2:
-
3:
function calculate_saving()
-
4:
-
5:
-
6:
if then
-
7:
-
8:
-
9:
-
10:
-
11:
return
-
12:
else
-
13:
print “Optimization not achieved in ”,
-
14:
return 0
-
15:
end if
-
16:
end function
-
17:
function optimize_water_savings()
-
18:
calculate_saving function to each row
-
19:
-
20:
print “Total savings: ”, , “ liters/day”
-
21:
-
22:
-
23:
return ,
-
24:
end function
|