# Intelligent Reasoning Rules for Home Energy Management (IRRHEM): Algeria Case Study
## 3 Case Study and Simulation
### IRRREM Scenarios
#### 3.2.1 First Scenario (Without IRRHEM Intervention)  
The amount of energy consumed is directly related to the activities of family members, thanks to which it is possible to know the electrical devices used. What distinguishes the energy consumption in this scenario is the presence of many disadvantages, such as the non-exploitation of natural resources (e.g., sunlight) as well as the random exploitation of electrical devices (Tables 7 and 8). Additionally, to calculate the energy consumption (P\({}_{ap}\) (W)) by family members over a period (T (hours)), there are mathematical formulas in the literature such as:  
\[E_{ap}(Wh)=P_{ap}.T\]  
\begin{table}
\begin{tabular}{l l l l} \hline \hline
**Place** & **Electrical Equipment** & **Number (N)** & **Power (P\({}_{ap}\))** \\ \hline \multirow{4}{*}{Bathroom} & Electric water boiler & 1 & 1800 \\  & Washing machine & 1 & 240 \\  & Economic lamp & 2 & 25 \\ Hall & Economic lamp & 3 & 25 \\  & Air conditioner (8000 BTU) & 1 & 900 \\ Living room & Economic lamp & 3 & 25 \\  & Home internet router & 1 & 7 \\  & Refrigerator combi (250 L) & 1 & 175 \\ Kitchen & Economic lamp & 2 & 25 \\  & Microwave & 1 & 1125 \\  & Camera & 1 & 20 \\ Garage & Electric car & 1 & 3000 \\  & Economic lamp & 4 & 25 \\  & Air conditioner (6000 BTU) & 1 & 700 \\ Room & Iron & 1 & 800 \\  & Economic lamp & 2 & 25 \\ \hline \hline \end{tabular}
\end{table}
Table 6: Electrical equipment.  
\begin{table}
\begin{tabular}{l l l l l l} \hline \hline
**Family Member** & **Age** & **Function** & **Preference** & **Event/Activity** \\ \hline \multirow{4}{*}{Father} & \multirow{4}{*}{45} & \multirow{4}{*}{Employee} & \(\bullet\) & 25 \({}^{\circ}\)C \(\leq\) & \multirow{4}{*}{\(\bullet\)} & Sleeping \\  & & & Temperature \(\leq\) & \(\bullet\) & Waking up from sleep \\  & & & 28 \({}^{\circ}\)C & & \(\bullet\) & Going to the bathroom \\  & & & & Illumination \(\geq\) & \(\bullet\) & Going to the bathroom \\  & & & & Illumination \(\geq\) & \(\bullet\) & Gauge to the bathroom \\  & & & & Illumination \(\geq\) & \(\bullet\) & Fair prayer \\  & & & & Illumination \(\geq\) & \(\bullet\) & Reading the Koran \\  & & & & 20 Linux & \(\bullet\) & House cleaning \\  & & & & 27 \({}^{\circ}\)C \(\leq\) & \(\bullet\) & Sleeping \\  & & & & Temperature \(\leq\) & \(\bullet\) & At school \\ Boy & 16 & High school & 29 \({}^{\circ}\)C & & \(\bullet\) & Returning from school \\  & & & & Illumination \(\geq\) & \(\bullet\) & and going to the dining \\  & & & & 15 Linux & room \\  & & & & 27 \({}^{\circ}\)C \(\leq\) & \\ Girl & 13 & A student in middle & Temperature: & \(\bullet\) & Sleeping \\  & & & \(\leq\) 30 \({}^{\circ}\)C & \(\bullet\) & At school \\  & & & & Illumination \(\geq\) & \(\bullet\) & Going to the kitchen \\  & & & & 15 Linux & \\ \hline \hline \end{tabular}
\end{table}
Table 5: Family members concerned with the study.  
It is also possible to calculate the energy consumed by a number of devices of the same type using the following rule:  
\[E_{apt}(Wh)=E_{ap}.N \tag{2}\]  
The total power is calculated by the following mathematical rule:  
\[E_{t}(Wh)=\sum_{i=1}^{n}E_{apt}(i) \tag{3}\]  
where \"\(i\)\" is the equipment type.  
The average values of the climate data in the period from 00 h: 00 m: 00 s to 00 h: 59 m: 59 s are: horizontal radiation (W/m\({}^{2}\)) 0, temperature 20 \({}^{\circ}\)C, and humidity 65% [40].  
The average values of the climate data in the period from 11 h: 00 m: 00 s to 11 h: 59 m: 59 s are: horizontal radiation (W/m\({}^{2}\)) 0, temperature 29 \({}^{\circ}\)C, and humidity 80% [40].