This project supposes a (simplified) dynamic system that models the heating of a house as illustrated in the figure below; inspired by [1].
-
$T_A$ ...temperature of the attic -
$T_S$ ...temperature of the surrounding -
$T_E$ ...temperature of the earth -
$T_H$ ...temperature of the heater -
$T_M$ ...temperature of the main floor -
$k_1,k_2,k_3,k_4,k_5$ ...coefficients of heat transfer
Based on Newton's law of cooling, this situation can be modeled by a system of two linear ODEs:
The goal is to design a Kalman filter to accommodate inaccurate temperature measurements.
Kalman filter can be summarized using the following equations:
To tackle the aforementioned problem, I employ Euler's method to approximate the ODEs. Based on these approximations, I generate true and noisy temperature measurements. Subsequently, I apply the Kalman filter. The figure below displays one outcome of the simulation. For further details, please refer to the file newton_cooling.ipynb
.