Mathematical Problems in Engineering

Mathematical Problems in Engineering / 2020 / Article

Research Article | Open Access

Volume 2020 |Article ID 3404951 | https://doi.org/10.1155/2020/3404951

M. Długosz, J. Baranowski, "Observer Design for Estimation of Nonobservable States in Buildings", Mathematical Problems in Engineering, vol. 2020, Article ID 3404951, 8 pages, 2020. https://doi.org/10.1155/2020/3404951

Observer Design for Estimation of Nonobservable States in Buildings

Academic Editor: Rafał Stanisławski
Received28 May 2020
Revised20 Aug 2020
Accepted21 Aug 2020
Published25 Sep 2020

Abstract

Efficient temperature control requires more than air temperature measurements. Relevant variables, such as wall, ceiling, and other construction temperature evolution are usually unmeasured. Estimation of such quantities is often difficult because they are not observable with respect to available data. Their availability however would allow efficient control design. In this paper, we propose a method for designing state observers that efficiently estimate not only observable but also nonobservable (but detectable) state variables. Our method uses contraction semigroup, to obtain observer with a monotonic error reduction. Proposed approach gives twice as fast estimation as pure simulation and avoids transitional error standard observer would have. Problem of state estimation in building control applications is an important one. Attractiveness of obtaining values of physically unmeasurable variables is easily visible, as it would allow more efficient methods of temperature control. In this paper, authors discuss the problem of such estimation using a lumped capacitance model. This type of model is usually only detectable but not observable. Methods of observer tuning for such systems are not discussed properly in the literature and require special consideration. In this paper, three approaches for estimation are compared: pure model, eigenvalue shifting, and contraction semigroup observer. Results are illustrated with numerical experiments.

1. Introduction

One of the currently important areas of control and electrical engineering is the problem of efficient energy usage in building installations [1, 2]. It is especially important because of economical reasons. While problem of industrial and office buildings is well known, the area of housing buildings was not extensively investigated. Practical approaches of home owners usually focus on thermal isolation and efficient heaters (either condensation gas furnaces or heat pumps). The idea of using dedicated control strategies for housing buildings is not yet popular; however, it is believed that it would lead to both increase in comfort and more efficient energy usage.

In order to formulate proper control algorithms, methods of modelling and estimation have been investigated. Sufficient models for building dynamics are obtained by the lumped capacitance method [3, 4] . Conveniently, they can be interpreted as electrical circuits. Different approaches include fractional calculus, finite elements, or thermal responses [57]. A comprehensive review of building modelling was performed by Davies [8]. Methods of simulation of heat transfers in buildings were reviewed by Clarke [9]. Methods of control of building systems were considered among the others by Wang [10] and also by Underwood and Yiki [11]. Methods of control for housing buildings were investigated in [12, 13].

It is obvious that control without information is not possible. In perfect conditions, we would measure all the relevant variables having full information about the system. If measurements are not complete and system is observable, then there is a plethora of methods for state estimation. Among the others are state observers, filters, recursive algorithms, hybrid algorithms, or optimisation approaches [1420].

Problem occurs when certain states of the system do not fulfill the observability requirement. In this paper, we present a methodology for estimating state under much weaker detectability condition. In such case, only asymptotic state estimation is possible. We present a contraction semigroup-based approach allowing estimation of the entire state vector (including nonobservable states) with continuous reduction of estimation error. We compare it with pure model and eigenvalue shifting approach.

The rest of the paper is organised as follows: we present an example of mathematical model of a room and show that it is detectable, but not observable. We then present three methods of constructing state estimator for a detectable system, including contraction semigroup-based approach. We then verify its application for the analysed system and present discussion of methods’ effectiveness.

2. Mathematical Model of a Room

For modelling of temperature evolution inside the building, the method of lumped thermal capacitance method was used. Every element that can influence the temperature is modelled with two resistors and one capacitor. The notations for the variables used in this article are as follows:(i): thermal capacity of i-th element inside the room , (ii): temperature of i-th element inside the room , (iii): thermal conductance of j-th element inside the room , (iv): thermal capacity of emitter material (v): thermal capacity of air inside the room (vi): outside air temperature (vii): inside air temperature (viii): temperatures “outside” floor, ceiling, and inside walls (ix): casual heat gains to space (x): power of thermal installation (xi): solar energy

The modelled system is a single room two walls of which are outside walls and two that are inside walls. Room surface is 63 m2, and its volume is 179.5 m3. Equations and their parameters are from [21]. The proposed model is consistent with real system ([11], p. 244). The electrical analogue of the system is presented in Figure 1. We assume, that the only measurement is the temperature inside the room.

The analysed model is presented in the form of vector matrix notation:where is the state matrix, is the control matrix, is the exogenous input matrix, is the output matrix, is the state, is the exogenous input, is the control, and is the output.

Matrix has most of its elements equal to zero, except

Other matrices take the following form:

In equation (1), matrix 8 and vector 10 temperatures , , and are interpreted as exogenous inputs, as they are not measured (usually such measurements are not available). They cannot be ignored, as they would introduce additional errors in the estimation. Frequently used simplification is to assume that these temperatures are equal to ([11], p. 88).

Assuming thatmatrices of the model have to be modified.

In the case of state matrix , the following elements are changedmatrix of exogenous inputs takes the following form:and vector of inputs is reduced to

For reminder of the paper, we will multiply the state equation (1) by obtaining standard state equations with , , and .

3. Analysis of Observability

As it is common with systems with real parameters and order grater than 3 using the standard Kalman condition for observability, i.e.,cannot be applied directly. The number of multiplications of rarely well-scaled coefficients often makes the matrix rank undeterminable. It is frequent that (in case of single output systems) determinant of the Kalman matrix is close to zero but results are inconclusive. For larger systems, it is more practical to use the extension of detectability condition, that is,

This criterion is much more numerically efficient, as the determination of matrix rank is much easier.

Using extension of detectability condition, one can easily determine that the system is not observable, as for two eigenvalues the rank is 5. The system is however detectable because it is asymptotically stable. It is enough for the construction of Luenberger observer. It is however problematic how to set the gains of the observer because the literature does not present appropriate criteria for such case. It is often suggested to decompose the system into observable and unobservable subspaces; however, such decomposition for our case is not practical. Another way to solve the problem with lack of observability was presented in article [12] where indistinguishable states were aggregated into one state. The decomposed system has its own observable state variables that cannot be used for the determination of values of physical state variables. We will now discuss three approaches for detectable system observer.

We will focus on the full-rank Luenberger observer, that is,

It is a known fact that for estimation error defined as , error dynamics evolves according to the following equation:and error of estimation will be a focus of the analysis.

4. Pure Model Estimation

This approach is popular in electric drive control and is effectively an open loop estimator. In such case, matrix gain and observer reduces to the following form:

The system is asymptotically stable, so the error estimation is as follows:

Pure model estimation does not use information about system outputs. That is why its dynamics is equal to the dynamics of the original system. Its merit is however that the estimate is not influenced by measurement errors.

5. Eigenvalue Shifting

Because the system is not observable, its eigenvalues cannot be placed at desired values; however, one can choose such gain that real parts of error dynamics matrix eigenvalues are shifted to the left as far as possible. Such gain is a solution of the following optimisation problem:

It is a typical min-max problem and comes with all its difficulties. Such problems are usually hard to solve using any simple method. After careful analysis of Nelder–Mead and genetic and other derivative-free algorithms, the best results were obtained with simulated annealing.

6. Contraction Semigroup Observer

This type of research was considered in earlier research (see [22], where it was focused on systems observable but with multiple outputs. This type of observer cannot be constructed for every kind of system, as it depends strongly on structural properties of matrix; among the others, it can be constructed for systems where error dynamics state matrix takes the form of symmetric, normal, or diagonally dominated Metzler matrix. However, this approach can be used for detectable systems with desired structure as it does not require specific placement of eigenvalues.

6.1. Motivation

It is a common conception that if linear systems, such ashave only real negative eigenvalues, it is well damped. It is usually explained that the absence of complex eigenvalues guarantees the lack of oscillations. Norm of the trajectory fulfills the following relation:

Moreover, the exponential stability of the system guarantees that the norm of fundamental matrix is bounded as follows:where .Let us consider the following matrix

It can be easily seen that this matrix has real, distinct eigenvalues, so its trajectories should be well damped. However, see Figure 2 for the plot of the norm of the trajectory of system 21 with the matrix 23 with the initial condition:

As one can see, the initial norm is multiplied by about 150 at . That is why additional analysis of damping of the system is necessary. It should be noticed that the bound 22 still holds. Unfortunately, the multiplier in general case can be arbitrarily large; in this case, it would be about few hundreds.

One can easily come to the conclusion that if error of the observer would behave in the similar way, the control quality would be seriously impaired. Moreover, analysis of these phenomena is desired because it is quite common for observers with high gains to generate large transitional errors. In the literature, it is called the peaking phenomena.

The best possible situation for the estimation quality would be for the error of estimation to decrease with time. In case of systems with linear error dynamics in order for this to happen, the evolution must behave as a contraction semigroup, that is, . It gives an exponential bound on the vanishing of error and guarantees that the error will not exceed the initial value.

6.2. Bound on the Matrix Exponential

In order to guarantee the fulfillment ofone needs to find a way to asses the value of matrix exponential norm. It is rather obvious that determination of such norm explicitly, especially as a function of observer parameters, is difficult, if not entirely impossible. Let us introduce the following.

Definition 1. (Damping coefficient). A real number will be called a damping coefficient of matrix exponential of ifNorm of the matrix exponential fulfills the following bound:The exact value of a damping coefficient depends on the norm used in Definition 1. For spectral norm, we haveFor more details on damping coefficient (under the name logarithmic norm), see [23]. As it can be seen if damping coefficient is negative, then matrix exponential of is a contraction semigroup.
In this paper, this methodology was used for design of the observer. The main idea was to find observer gain which would lead minimal damping coefficient, and if that coefficient would be negative, then this gain would be used. That proved to be the case, and the gain being the solution toThis optimisation problem was well conditioned and easily solvable with a Nelder–Mead algorithm.

7. Observer Comparison

In this section, comparison of observers obtained with three described methods is presented. For every case, the evolution of Euclidean norm of the system is analysed. For each case, plots of the norm are presented in linear and logarithmic scales. The principal reason for using both these scales is that, in all cases, error should vanish approximately exponentially. It is easily visible in the initial stages on the linear scale; however, when the error drops few orders of magnitude, the differences stop being visible. In logarithmic scale however, the exponential trend is visible as the straight line, and one can easily observe error behaviour for all orders of magnitude. It should be noted that because the times of integration of differential equations are long, special consideration has to be taken with the respect to solver. Initially, the Dormand–Prince 5(4) solver was used; however, it introduced artificial oscillations. It was replaced with a Kolpfstein–Shampine 1–5 solver, which is dedicated for stiff equations, and these oscillations were eliminated.

The first system presented is the estimator using only model. Its operation is illustrated in Figure 3. Figure 3(a) presents vanishing of the error in linear scale, and Figure 3(b) shows strictly exponential behaviour. It can be seen as the point of reference for other observers, which should at least produce some improvement.

The second observer analysed was based on eigenvalue shifting. Its operation is illustrated in Figure 4. It can be easily seen that peaking phenomena occur. The error norm has two maxima visible both in linear (Figure 4(a)) and logarithmic scales (Figure 4(b)). Initial error is multiplied by 10. In logarithmic scale, it can be seen that reduction to the order occurs faster than for pure model, and reduction of error from that is the the fastest up till order . The system however exhibits oscillations that make further reduction impossible. These oscillations are connected with a conjugate complex pair of eigenvalues:of the observer matrix . Appearance of complex eigenvalues is the consequence of the optimisation-based eigenvalue shifting approach.

The final analysed observer was based on obtaining contraction semigroup. Its operation is illustrated in Figure 5. As it can be seen, this observer does not introduce errors visible as in the case of the previous one. The observer is the fastest to reach the order of magnitude of and does not introduce transitional errors. What is important, the observer keeps the exponential vanishing of error throughout the simulation.

For comparison of observer performance, it is best to view the error behaviour at the same plot. Because the biggest difference is visible both for high (transitional error) and low (oscillations) orders of magnitude, trajectories are presented in the logarithmic scale in Figure 6. One can observe as follows:(i)Both eigenvalue shifting and contraction semigroup approach lead to improvement over pure model simulation.(ii)The fastest initial reduction (until order of ) is obtained with the contraction semigroup observer, which does not introduce initial errors.(iii)Eigenvalue shifting allows very quick reduction of the error to the order of . However, presence of oscillations stops the exponential vanishing at that level.(iv)Contraction semigroup observer keeps the exponential trend till the end of simulation, overtaking in error reduction.

8. Conclusions

Analysis of methods of observer parameter tuning shows advantages of contraction semigroup approach to others considered. However the problem of observer tuning for detectable systems is still open, as this approach can be applied only for a specific class of systems, which is not fully defined.

It should be noted that both proposed observer tuning methods have their strengths. Eigenvalue shifting observer allows quick reduction of error to relatively low values. Unfortunately it introduces transitional errors, which can lead to very completely unsuitable control. In extreme cases, it could lead to temperature oscillations in the building, which would lead to a drastic comfort reduction. Contraction semigroup observer guarantees that no transitional error will be greater than the initial one. This along with initial convergence suggests this observer as the suggested one for building control applications. Unfortunately, lack of observability of the system does not allow combination of the two—construction of the switching function based on available measurements is impossible.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The work was supported by AGH Subvention for Scientific Research.

References

  1. D. Y. Yamashita, I. Vechiu, and J.-P. Gaubert, “A review of hierarchical control for building microgrids,” Renewable and Sustainable Energy Reviews, vol. 118, p. 109523, 2020. View at: Publisher Site | Google Scholar
  2. S. Yang, M. P. Wan, W. Chen, B. F. Ng, and S. Dubey, “Model predictive control with adaptive machine-learning-based model for building energy efficiency and comfort optimization,” Applied Energy, vol. 271, p. 115147, 2020. View at: Publisher Site | Google Scholar
  3. G. Fraisse, C. Viardot, O. Lafabrie, and G. Achard, “Development of a simplified and accurate building model based on electrical analogy,” Energy and Buildings, vol. 34, no. 10, pp. 1017–1031, 2002. View at: Publisher Site | Google Scholar
  4. C. P. Underwood, “An improved lumped parameter method for building thermal modelling,” Energy and Buildings, vol. 79, pp. 191–201, 2014. View at: Publisher Site | Google Scholar
  5. M. Długosz and P. Skruch, “The application of fractional-order models for thermal process modelling inside buildings,” Journal of Building Physics, vol. 39, no. 5, pp. 440–451, 2016. View at: Publisher Site | Google Scholar
  6. A. W. van Schijndel, “Advanced HVAC modeling with FemLab/Simulink/MatLab,” Building Services Engineering Research and Technology, vol. 24, no. 4, pp. 289–300, 2003. View at: Publisher Site | Google Scholar
  7. G. P. Mitalas and D. G. Stephenson, “Room thermal response factors,” ASHRAE Transaction, Atlanda, GA, USA, 1967. View at: Google Scholar
  8. M. Davies, Building Heat Transfer, Wiley, Hoboken, NJ, USA, 2004.
  9. J. Clarke, Energy Simulation in Building Design, Butterworth-Heinemann, Oxford, UK, 2001.
  10. S. Wang, Intelligent Buildings and Building Automation, Taylor & Francis, Milton Park, UK, 2009.
  11. C. Underwood and F. Yik, Modelling Methods for Energy in Buildings, Blackwell Science, Hoboken, NJ, USA, 2004.
  12. M. Długosz, “Aggregation of state variables in an RC model,” Building Services Engineering Research and Technology, vol. 39, no. 1, pp. 66–80, 2018. View at: Publisher Site | Google Scholar
  13. P. Skruch and M. Długosz, “A sliding mode controller design for thermal comfort in buildings,” Engineering Transactions, vol. 67, no. 4, 2019. View at: Publisher Site | Google Scholar
  14. F. Ding, “State filtering and parameter estimation for state space systems with scarce measurements,” Signal Processing, vol. 104, pp. 369–380, 2014. View at: Publisher Site | Google Scholar
  15. F. Ding, “Combined state and least squares parameter estimation algorithms for dynamic systems,” Applied Mathematical Modelling, vol. 38, no. 1, pp. 403–412, 2014. View at: Publisher Site | Google Scholar
  16. X. Zhang, F. Ding, L. Xu, and E. Yang, “State filtering-based least squares parameter estimation for bilinear systems using the hierarchical identification principle,” IET Control Theory & Applications, vol. 12, no. 12, pp. 1704–1713, 2018. View at: Publisher Site | Google Scholar
  17. X. Zhang and F. Ding, “Adaptive parameter estimation for a general dynamical system with unknown states,” International Journal of Robust and Nonlinear Control, vol. 30, no. 4, pp. 1351–1372, 2020. View at: Publisher Site | Google Scholar
  18. X. Zhang, F. Ding, and L. Xu, “Recursive parameter estimation methods and convergence analysis for a special class of nonlinear systems,” International Journal of Robust and Nonlinear Control, vol. 30, no. 4, pp. 1373–1393, 2020. View at: Publisher Site | Google Scholar
  19. X. Zhang, F. Ding, and E. Yang, “State estimation for bilinear systems through minimizing the covariance matrix of the state estimation errors,” International Journal of Adaptive Control and Signal Processing, vol. 33, no. 7, pp. 1157–1173, 2019. View at: Publisher Site | Google Scholar
  20. X. Zhang, F. Ding, L. Xu, and E. Yang, “Highly computationally efficient state filter based on the delta operator,” International Journal of Adaptive Control and Signal Processing, vol. 33, no. 6, pp. 875–889, 2019. View at: Publisher Site | Google Scholar
  21. M. M. Gouda, S. Danaher, and C. P. Underwood, “Low-order model for the simulation of a building and its heating system,” Building Services Engineering Research and Technology, vol. 21, no. 3, pp. 199–208, 2000. View at: Publisher Site | Google Scholar
  22. J. Baranowski, “Tuning of strongly damped angular velocity observers,” Przegląd Elektrotechniczny, vol. 88, no. 6, pp. 181–187, 2012. View at: Google Scholar
  23. H. Guang-Da and L. Mingzhu, “The weighted logarithmic matrix norm and bounds of the matrix exponential,” Linear Algebra and Its Applications, vol. 390, pp. 145–154, 2004. View at: Publisher Site | Google Scholar

Copyright © 2020 M. Długosz and J. Baranowski. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


More related articles

 PDF Download Citation Citation
 Download other formatsMore
 Order printed copiesOrder
Views96
Downloads160
Citations

Related articles