|
Algorithm 1 Demand Calculation Function (
|
-
1:
(renewable vector) =
-
2:
-
3:
Defining variables ,
-
4:
for ihour time to the total number of hours do
-
5:
if ihour doesn’t belongs to interval
then
-
6:
computation
-
7:
end if
-
8:
end for
-
9:
for iappliance 1 to size of appliances configuration
do
-
10:
)
-
11:
end for
-
12:
-
13:
-
14:
Objective Function
-
Require:
configuration:
-
Ensure:
-
15:
initialisation (consume Hourly Energy)
-
16:
for iappliance 1 to size of appliance configuration do
-
17:
Set
-
18:
Set based on and
-
19:
for ihour time to the total number of hours do
-
20:
if ihour belongs to interval
then
-
21:
-
22:
else
-
23:
-
24:
end if
-
25:
end for
-
26:
end for
-
27:
-
28:
-
29:
-
30:
;
-
31:
-
32:
return
|