METHOD AND SYSTEM FOR SCALABLE EMBEDDED MODEL PREDICTIVE CONTROL OF HVAC SYSTEMS

Information

  • Patent Application
  • 20240230130
  • Publication Number
    20240230130
  • Date Filed
    December 28, 2022
    2 years ago
  • Date Published
    July 11, 2024
    7 months ago
  • CPC
    • F24F11/46
    • F24F11/63
    • F24F2110/10
  • International Classifications
    • F24F11/46
    • F24F11/63
Abstract
A physics model of a building is linearized around an operating point. Measurements received from sensors define a system state of the HVAC system. The linearized physics model is used as an equality constraint for a model predictive controller that determines a next control input to the HVAC system based on the system state by solving an optimization problem for a time horizon of size N. A constraint matrix H of the equality constraint is decomposed into factors of U and V matrices such that UUT and VTV are both diagonal matrices. An objective function of the model predictive controller is optimized by iteratively solving a linear system of equations that includes inverses of UUT and VTV to determining a sequence of inputs for a horizon of the model predictive controller. A first input of the sequence of inputs to is used to control the HVAC system.
Description
SUMMARY

The present disclosure is directed to identifying suitable models for model predictive control of building heating, ventilation, and air conditioning, e.g., scalable models that can be solved in real-time. In one embodiment, a physics model of a building is determined. The physics model is linearized around an operating point. The linearized physics model defines thermodynamic relationships between zones of the building and a heating, ventilation, and air-conditioning (HVAC) system. Measurements received from sensors define a system state of the HVAC system. The linearized physics model is used as an equality constraint for a model predictive controller that determines a next control input to the HVAC system based on the system state by solving an optimization problem for a time horizon of size N. A constraint matrix H of the equality constraint into factors of a first matrix U and a second matrix V such that UUT and VTV are both diagonal matrices. An objective function of the model predictive controller is optimized by iteratively solving a linear system of equations that includes inverses of UUT and VTV to determining a sequence of inputs for a horizon of the model predictive controller. A first input of the sequence of inputs to is input to control the HVAC system.


These and other features and aspects of various embodiments may be understood in view of the following detailed discussion and accompanying drawings.





BRIEF DESCRIPTION OF THE DRAWINGS

The discussion below makes reference to the following figures, wherein the same reference number may be used to identify the similar/same component in multiple figures. The figures are not necessarily to scale.



FIG. 1 is a block diagram depicting a model used to demonstrate configuration of a controller according to example embodiments;



FIGS. 2A and 2B are a block diagrams showing the physics relationships used in modeling a building according to an example embodiment;



FIGS. 3 and 4 are graphs comparing computational time of an algorithm according to an example embodiment with existing algorithms;



FIGS. 5 and 6 are graphs showing Model Predictive Control of Van der Pole Oscillator by an algorithm according to an example embodiment; and



FIG. 7 is a block diagram of an apparatus and system according to an example embodiment.





DETAILED DESCRIPTION

The present disclosure is generally related to heating, ventilation, and air-conditioning (HVAC) systems. Embodiments include a method and system that use an efficient optimization framework based on first order method with a novel factorization. This framework increases the computational efficiency and the scalability for solving large-scale model predictive building control problems with computationally expensive models.


1. INTRODUCTION

According to recent estimates, residential and commercial buildings account for nearly 40% of energy usage in the United States. Most of this energy provides services to occupants, the greatest chunk of which can be associated with cooling and heating of spaces for occupant comfort and satisfaction. Better management of HVAC control systems can improve indoor thermal conditions and lead to more pleasant living spaces, better working conditions, and safer environments. Specific examples include better productivity in offices, better learning performance and pupil attendance in classrooms, and more recently, mitigation of transmission of COVID-19 in office buildings and hospitals. These can be achieved through a combination of heating and cooling for the indoor environment, more outdoor air circulation, and stricter standards for space pressure control, but may come at the cost of increasing the energy consumption for buildings and contributing to more carbon emission and less energy efficiency.


The problem quickly scales up for a large number of buildings where the HVAC control system can play the part of a variable load in a coordinated and integrated grid. To mitigate and manage, advanced controls, implemented as a supervisory control system, can be used to serve multiple end-use cases such as load shifting, demand response, and islanding. Model predictive control (MPC) is a particularly powerful approach for handling hard constraints for state and control inputs in nonlinear multivariable control systems. Generally, MPC is implemented as a controller that uses a current system state to determine a sequence of inputs for a horizon, generally a time horizon of size N. A first input of the sequence of inputs is applied to the control the HVAC system, after which the MPC controller uses the next system state at the next time to predict the inputs and resulting states over the next time horizon.


In simulation studies as well as field studies without time or budget constraints on the modeling process, MPC is the standard for comfort-oriented and energy-efficient building control, as long as a model of the plant exists or can be formulated and identified. MPC can reduce the cost by predicting the dynamically evolving temperature and humidity profile of the building based on the inside/outside influence and by optimal changing the temperature/humidity profile based on price structures to shift the energy load from peak hours to off-peak hours. This is considerably more efficient than heuristics based control approaches which do not predict the future model, varying model parameters or time-varying cost functions.


In practice, MPC has not found much use in consumer products due to implementability and dependability, where factors to consider include implementation of advanced numerical optimization algorithms on resource-limited embedded computing platforms and the associated complexity of verification. This challenge comes from a requirement of the use of ultra-reliable hardware and software architectures and low-cost hardware in consumer products. Solving a single optimization problem for a large building on low cost embedded controllers is infeasible using state of the art optimization methods. Common methods such as interior point and active set methods and more recently first order all have limitations when deployed in low computing devices. Interior point methods have scalability issue and require solvers that are not compatible with edge implementation. In first order methods, solving the linear system of equations or KKT matrix requires performing a large matrix inversion in a loop which creates the bottleneck for low computing implementation.


To deal with this problem regarding matrix inversion, direct and indirect approaches have been adopted. A direct approach computes the factors in a first iteration and then reuses them in subsequent iterations. An LDL decomposition is a method of choice in such applications. For large scale problems, the direct methods become prohibitive and indirect methods such as Preconditioned Conjugate Gradient (PCG) are iterative methods and provide an approximate solution and hence compromise on the quality of solution.


In this disclosure, we show a computationally efficient and scalable solution for solving large-scale model predictive building control problem. For purposes of this disclosure, large-scale models include those with four or more zones that are independently controllable and include a combination of central HVAC components, e.g., chillers, and zone-specific components, e.g., dampers, heaters, etc.


2. System Model

In FIG. 1, a block diagram depicts a model 100 of a building and HVAC system used to demonstrate development of an MPC controller according to example embodiments. The illustrated model 100 is provided for purposes of illustration and not limitation. The proposed methodology described further below can be adapted to a variety of different systems and architectures with minimal effort. For example, while the illustrated example shows five independently controlled zones 110, this can be extended to more or fewer zones. Further, this can be extended to multiple buildings that share HVAC services. While there may be no direct thermal interaction between zones of physically separate buildings, there can be thermal considerations worth considering when modeling the commonly shared HVAC services and components, e.g., heat loss or gain between buildings in thermal fluid pipes.


In the example model 100, a central cooling system 102 regulates the supply air temperature. A supply fan 104 controls the total airflow rate. The supply air 106 (central chilled) is divided equally between five separate zones 110 and is fed to each individual zone 110 via a variable air volume (VAV) reheat box 108. Each VAV reheat box 108 includes a heating unit (e.g., heating coil) and dampers. The reheat boxes 108 control zone-specific supply temperatures and flow rates to comply with the thermostat set points of each individual zone 110. The return air 112 from the zones is mixed with a fraction of outside air to achieve ventilation requirements. We use a thermal resistance-capacitance (RC) model to track average zone-level temperatures and neglect humidity.


2.1 Dynamics for Zone Temperatures

In FIG. 2A, a diagram shows part of a building layout used to demonstrate the physics equations used in modeling the building. In FIG. 2B, a diagram shows an RC-network model representation for a zone (excluding the heater). We consider a thermal zone i with temperature Tz,i and thermal capacitance Ci. Suppose there is a neighboring wall with temperature Twall,j and thermal capacitance Cwall,j, has thermal interactions with the zone i represented by a thermal resistance Rij.


Applying Kirchhoff's law, in continuous time the total heat load on a thermal node i for n zone building can be expressed via the following differential equations











C
i




dT

z
,
i


dt


=








j


𝒩

wall
,
i








T

wall
,
j


-

T

z
,
i




R
ij



+


Q
.


tot
,
i







(

1

a

)














C

wall
,
j





dT

wall
,
j


dt


=







l


𝒩

z
,
j








T

z
,
l


-

T

wall
,
j




R
lj







(

1

b

)














Q
.


tot
,
i


=



Q
.


occ
,
i


+


Q
.


sol
,
i


+


Q
.


hvac
,
i


+


Q
.


other
,
i







(

1

c

)















Q
.


hvac
,
i


=



m
.


z
,
i





c
pa

(


T

supp
,
h
,
i


-

T
zi


)



,




(

1

d

)














Q
.


sol
,
i


=


A
w
i



η
sol






(

1

e

)







where custom-characterwall,i are the neighboring walls of a zone i which has thermal interactions with it. Similarly, custom-characterz,j are the neighboring zones of a wall j. For example, custom-characterz,1={1, 2} and custom-characterwall,2={1, 5, 8, 9} in the arrangement shown in FIG. 2A. We considered the ambient temperature as Tz,6. The total thermal current on a zone i comprises of {dot over (Q)}occ,i representing, occupant thermal load, {dot over (Q)}sol,i solar irradiation, {dot over (Q)}hvac,i heat due to supply air entering the room and {dot over (Q)}other,i other stochastic disturbances (equivalent to a process noise in state space form). Tsupp,h,i represents the supply air temperature entering the zone i with specific heat capacity Cpa, and Awi, ηsol are window area for zone i and measured solar irradiance respectively. The variable {dot over (m)}z,i is the supply airflow for zone i.


2.2 Dynamics of the HVAC and VAV Boxes

Typically a commercial HVAC systems have a central unit supplying air to several distributed components. Without loss of generality, we can also assume that each of these components are controlled by fine-tuned proportional-integral (PI) controllers as is common practice in commercial buildings. Looking at FIG. 1, the supply air with temperature Tsupp,c is distributed to all the zones, where it is reheated to Tsupp,h,i by a water-based heating coil associated with zone i.


We consider a PI controlled water-based cooling coil system that manipulates the water flow rate {dot over (m)}w,c in order to track a desired supply air temperature (cooling):












m
˙


w
,
c


(

t
+

Δ

t


)

=



k
p

(



T


sup

p

,
c


(
t
)

-


T

c

s


(
t
)


)

+


k
i





0
t



(


T

supp
,
c


-

T

c

s



)


d

t








(
2
)







The dynamics of cooling supply is given by:











d

d

t


[


ρ
a


V


c

p

a




T

supp
,
c



]

=




m
˙


w
,
c





c

p

w


[


T

w
,

i

n



-

T

w
,
out



]


-


(






i




m
˙


z
,
i



)




c

p

a


[


T

supp
,
c


-

T

m

i

x



]







(
3
)







where, ρa is the density of air at 27° C., V is the volume of the heat exchanger, Tw,in, Tw,out are the water side temperatures and Tmix is the inlet temperature of the cooling coil. On a side note, Cpa may be considered to be constant and not vary with respect to air temperature. If we account for the temperature variation of Cpa in (3), then (3) is a nonlinear differential equation. For simplicity, depending on the temperature range, we assumed that Cpa is constant.


Further, Tmix is the mixed air temperature at the inlet of cooling system. Assuming no heat loss or gain in the ducts, the mixed air temperature is calculated as:










T

m

i

x


=



r

m

i

x




T

a

m

b



+


(

1
-

r

m

i

x



)



T

z
,

a

v

g









(

4

a

)













T

z
,
avg


=


1
n








i
=
1

n



t

z
,
i







(

4

b

)







from all the room exhausts Tz,avg plus outside air given some mixing ratio rmix. The supply air with temperature Tsupp,c is distributed to all five zones, in each of which it is reheated to Tsupp,h.i by a water-based heating coil associated with zone i and controlled by a PI controller:












m
˙


w
,
h
,
i


(

t
+

Δ

t


)

=



k

p
.
i


(


-


T


sup

p

,
h
,
i


(
t
)


+


T


z

s

,
i


(
t
)


)

+


k


i

n

t

,
i






0
t



(


-

T


sup

p

,
h
,
i



-

T


z

s

,
i



)


d

t








(
5
)







where kp, kp,i and ki, kint,i are PI controller gains for central cooling and reheat boxes, respectively.











d

d

t


[


ρ
a



Vc
pa



T

supp
,
h
,
i



]

=




m
˙


w
,
h
,
i





c
pw

[


T

w
,

i

n

,
i


-

T

w
,
out
,
i



]


-



m
˙


z
,
i





c
pa

[


T


sup

p

,
h
,
i


-

T

supp
,
c



]







(
6
)







3. Technical Approach
3.1 Identifying a Suitable Model for Model Predictive Control

For each iteration of the control problem, we identify a locally linear model (e.g., linearized around a current operating point) using the states x, control inputs u, time-varying disturbances d. The output of the surrogate model is the future state prediction xt+1:







x

t
+
1


=

f

(


x
t

,

u
t

,

d
t


)





where f is the nonlinear dynamics for combined HVAC and zone models explained earlier. Here, f is linearized as follows:







x

t
+
1


=




Σ



k
=
0


M
x




A
k



x

t
-
k



+



Σ



k
=
0


M
u




B
k



u

t
-
k



+



Σ



k
=
0


M
d




C
k



d

t
-
k








where Ak=∇xf∈custom-characterNx×Nx, Bk=∇uf∈custom-characterNx×Nu, and Ck=∇df∈custom-characterNx×Nd are learnable parameter matrices for state, control input and disturbance, respectively and ∇xf represents the Jacobian matrix (derivative with respect to state x) and ∇uf represents the Jacobian matrix (derivative with respect to state u).


3.2 Problem Formulation of Model Predictive Control

Model Predictive Control (MPC) is often formulated as sparse or dense Quadratic Programming (QP) problem. We consider MPC formulation of a linear and time-invariant system










minimize








k
=
0


N
-
1




x
k



Q


x
k


+


x
k




Q
N



x
N


+


u
k



R


u
k






(

7

a

)













subject


to



x

k
+
1



=


A


x
k


+

B


u
k


+

C


d
k







(

7

b

)













x
min



x
k



x
max





(

7

c

)













u
min



u
k



u
max





(

7

d

)













x
N

=

χ
f





(

7

e

)













x
0

=

x

(
0
)





(

7

f

)







where xkcustom-characternx and ukcustom-characterun are state and control input vectors, respectively. The states and control input of system are subject to polyhedral constraints and are bounded by their respective minimum and maximum values. The matrices Q∈S+nx and R∈S++nu are state and control penalty costs at each stage horizon, respectively, whereas QN∈S+nx is the terminal stage cost.


It is a common practice to formulate MPC problem as a box constrained quadratic programming problem and then apply optimization methods to solve this problem. Alternating Direction Method of Multiplier (ADMM) is one of famous optimization method and various solvers for MPC applications are developed on the basis of this approach. In contrary to common practice, we formulate the MPC problem as a standard quadratic problem (e.g., mathematical optimization problem involving quadratic objective function) where we minimize a quadratic objective function subject to a set of linear equality and inequality constraints. Such formulation can be obtained by introducing the slack variable for corresponding lower and upper bounds constraints (7c) and (7d) of state and input of the system. equations (1)-(4):










minimize
:


1
2



Z
T


P

z

+


q
T


z





(

8

a

)














subject


to

:






H


z


+
s

=
b




(

8

b

)












s

0




(

8

c

)







where the variable z∈custom-charactern is the new unknown variable, P∈custom-character+n + and q∈custom-charactern are corresponding objective function costs, H∈custom-characternxm is the compact constraint matrix, and s∈custom-characterm the slack variable. The transformation of variables from (7) to (8) is defined as follows:






z
=


[


x
0

,


,

x
N

,

u
0

,


,

u

N
-
1



]







We rewrite the objective of (8) by defining P=diag {Q1, Q2, . . . , QN, R1, . . . , RN} and q=[Q1xfQ2xf. . . QNxfON×nu]τ. The equality constraint associated with (7b) in MPC formulation can be casted as







A

e

q


=

[




-
I
































A



-
I















B
















A



-
I















B



















































A



-
I















B



]





whereas the inequality constraint (7c) and (7d) is Aineq=I(N+1)×nx+N×nu.


The new equality constraint of reformulated quadratic program is defined as H=[Aeq−AineqAineq]τand the transformed system matrix b is given as






b
=



[





-
x



(
0
)





0

N
×

n
x







-

x
min


×

1

N
+
1







-

u
min


×

1
N






x
max

×

1

N
+
1







u
max

×

1
N





]

T

.





4. SOLVING THE MPC PROBLEM

Motivated by the need of solving real-time MPC for finite horizon in large scale buildings and multi-building installations, we aim to solve this problem in a computationally efficient manner. For purposes of this disclosure, “real-time” refers to a system that can respond with control inputs sufficiently fast enough so that the system state does not change significantly (e.g., <5%) from when the measurements are made to when the inputs are applied. For example, a convergence time on the order of minutes (e.g., <5 minutes) for the control calculations can be sufficient for many HVAC applications.


Furthermore, it is desirable that a system achieve real-time performance on inexpensive and/or readily available computer equipment, such as embedded controllers, consumer grade computers, etc. In this way, and organization can maintain internal control of HVAC systems without reliance on cloud computing or other external services, which removes a possible security risk and can ensure data privacy. For example, a security policy can be implemented that prevents the controller nodes from connecting to the Internet or significantly reduces Internet access.


The ability to run advanced HVAC control on relatively lower-performance devices (e.g., single board computers) can also make parallel-computing implementations economically feasible. Generally, parallel computing or parallelism involves multiple controllers that cooperatively execute control functions, such as by providing redundancy and/or load sharing. Parallelism can provide, among other things, increase in performance by subdividing computing tasks and increase reliability by operating redundant/backup computing nodes. Parallel computing nodes can also be physically distributed around an installation (e.g., placed in multiple different buildings) which can add another layer of resilience to the control system. This can increase adoption of advanced MPC controllers which will lead to increased operational HVAC efficiencies. Scalability of the models to large installations (e.g., multiple building campuses with shared HVAC resources) can further increase the payback resulting from these efficiencies.


We disclose a first order method in conjunction with a novel UV factorization method to increase the scalability and reduce the computational complexity for solving large- scale MPC problems.


4.1 Decomposition of Constraint Matrix

As a first step in this solution, we decompose the constraint matrix H=UV ∈custom-charactermxn into two factors (U∈custom-characternxo, custom-characternxm custom-characteroxm) in such a way that UUτand VτV are both diagonal. Here o is the number of non-zero elements of H. The factor U contains a single non-zero element in each column, whereas V contains a single non-zero entry in each row. These factors can be computed as follows:









U

=
Δ








k
=
1

o



H


i
k

,

j
k





e

i
k




f
k







(
9
)












V

=
Δ








k
=
1

o



f
k



g

j
k








(
10
)







where ekk=1m custom-characterm, fkk=1o custom-charactero and gkk=1n custom-charactern are standard basis and Hik,jk are the non-zero elements of H. Based on this decomposition the MPC problem (8) can be reformulated as










minimize
:


1
2



z
T


P

z

+


q
T


z





(

11

a

)














subject


to
:

Uy

+
s

=
b




(

11

b

)












y
=
Vz




(

11

c

)












z
=
w




(

11

d

)












s

0




(

11

e

)







where y∈custom-characterm and w∈custom-charactern are auxiliary variables in (11c) and (11d), respectively. In order to solve (11) we apply Augmented Lagrangian Method and the corresponding Lagrangian for (11) is given as:












(

s
,
w
,
y
,
z

)

=



1
/
2




z



P

z

+


q



z

+


λ
1


(

Uy
+
s
-
b

)

+


λ
2


(

y
-

V

z


)

+


λ
2


(

z
-
w

)

+


μ
2



(





Uy
+
s
-
b



2
2

+




y
-
Vz



2
2

+




z
-
w



2
2


)







(
12
)







where λ1custom-characterm, λ2custom-charactern and λ3custom-charactern are the corresponding Lagrange multipliers associated with (11b), (11c) and (11d), respectively, and μ is a constant penalty weight. The closed form solution of iterative steps of the algorithm can be computed by minimizing the Lagrangian function with respective to the corresponding variable and freezing the other variables at their previous values.










z

k
+
1


=





arg

min





z







(


w
k

,

s
k

,

y
k

,
z
,

λ
1
k

,

λ
2
k

,

λ
3
k


)









y

k
+
1


=





arg

min





y







(


w
k

,

s
k

,

y
k

,
z
,

λ
1
k

,

λ
2
k

,

λ
3
k


)









w

k
+
1


=





arg

min





w







(

w
,

s
k

,

y
k

,

z

k
+
1


,

λ
1
k

,

λ
2
k

,

λ
3
k


)









s

k
+
1


=





arg

min






s

0








(


w

k
+
1


,
s
,

y

k
+
1


,

z

k
+
1



)









The update for each of the variables can be computed by finding the following closed form solution. The updates for Lagrangian multipliers are also easy to compute.










z

k
+
1


=



(

P
+

μ


V



V

+

μ

I


)


-
1


[


-
q

+

V

(


λ
2

+

μ

y


)

-

λ
2

+

μ

w


]





(
13
)













y

k
+
1


=



(

I
+


U



U


)


-
1


[



U


(



-

μ

-
1





λ
1


-
s
+
b

)

-


μ

-
1




λ
2


+

V

z


]





(
14
)













w

k
+
1


=

z
-


μ

-
1




λ
3







(
15
)














s

k
+
1


=

max
(

0
,



-

μ

-
1





λ
1


+
b
-

U

y





]




(
16
)







4.2 Solving the Linear System

The variable updates in (13) and (14) involves solving the linear system of equations in each iteration. This system remains constant throughout the iterative steps, hence it is computationally beneficial to find the factors in first iteration and then reuse them in subsequent iterative steps. Since, we are dealing with large-scale and highly sparse system, the traditional factorization techniques becomes computationally prohibitive. The inherent structure of MPC problem and reformulation introduced in (11) provides a computationally efficient approach to deal with this problem. Based on this decomposition, the (P+μVτV+μI) term in in equation (13) is diagonal and it easy to compute the inverse of this term. Additionally, the term UτU in (14) is apparently not diagonal, but we will apply matrix inversion lemma to make this term diagonal. According to matrix inversion lemma








(

I
+

U

V


)


-
1


=

I
-



U

(

I
+

V

U


)


-
1



V






we can write (I+UτU)−1 as follows:











(

I
+


U



U


)


-
1


=

I
-




U


(

I
+

U


U




)


-
1



U






(
17
)







In equation (17), the term (I+UUτ) becomes diagonal which is easy to compute.












Algorithm IFMPC Inverse free algorithm


for solving large-scale MPC problems















Input: (P, q, H, b), fixed μ > 0, and initial points w ∈ custom-character  , z ∈ custom-character  , y ∈ custom-character  ,


s ∈ custom-character








 1:
Construct a UV decomposition based on non-zero elements of H


 2:
Ui := I − UT(I + UUT)−1U


 3:
Vi := (P + μVTV + μI)−1


 4:
repeat


 5:
 z ← Vi [(−q + VT2 + μy) − λ3 + μw]


 6:
 y ← Ui [UT (−μ−1λ1 − s + b) − μ−1λ2 + Vz]


 7:
 w ← z − μ−1λ3


 8:
 s ← max(0, −μ−1λ1 + b − Uy)


 9:
 λ1 ← λ1 + μ(Uy + s − b)


10:
 λ2 ← λ2 + μ(y − Vz)


11:
 λ3 ← λ3 + μ(z − x)


12:
until stopping criterion is met







Output: z* ← z, s* ← s, y* ← y









4.3 Inverse-Free Algorithm for MPC

By finding the closed form solution of primal variables and Lagrange multipliers updates in previous discussion, we converge to Algorithm 1 for dealing with large-scale real-time MPC problem. A brief description of each step of the algorithm is provided in this section. The algorithm takes P, q, H, and b as input.

    • Step 1: A UV decomposition of constraint matrix H is computed.
    • Steps 2 and 3: We compute the multiplication factors in these steps. These steps are easy to compute as it involves inverse of diagonal matrix.
    • Steps 5 and 8: The steps update the primal variables of (11) by using the closed form solution given in (13),(14)(15)(16)
    • Steps 9 and 11: Updates for Lagrange multipliers is provided.


The algorithm returns the optimal values of variables as output when a satisfactory termination criterion is met. In this algorithm we use the following stopping criteria.













Hx
+
s
-
b





<


ε

a

b

s


+


ε
rel


max


{




Hx





,



b






}







(

18

a

)
















Px
+


H



λ

+
q





<


ε

a

b

s


+


ε
rel


max


{




Px




,





H



λ





,



q





}







(

18

b

)







where εabs=10−4 and εrel=10−3 are default absolute and relative tolerance values, respectively.


The proposed algorithm is computationally efficient, requires less memory and amenable for warm-start. The algorithm is well suited for model predictive control applications as it exploits the sparsity structure of this problem and uses only the non-zero elements for operations. Moreover, the warm-start feature of this algorithm is very important in MPC problem as it requires to compute the factors only in first horizon of time and then it can be reused for the whole horizon.


5. Simulation Studies to Validate the Approach

5.1 Comparison with ADMM algorithm of box-constrained QP


In order to evaluate the performance of proposed formulation and algorithm, we generate random MPC problem instances and vary the size of problem (by increasing the number of states) and compare the computational performance of proposed algorithm with a commonly used Alternating Direction Method of Multipliers (ADMM) method on a box-constrained formulation of MPC. In these instances, we use 10 control inputs and solve the problem for 50 horizons. As illustrated in FIG. 3, the proposed method outperforms the state-of-art approach and performance gain increases exponentially as the problem size increases.


The performance of proposed algorithm to be at least 20x times faster than IPOPT, as seen in the graph of FIG. 4. A Van der Pole oscillator is an example of a non-linear self-oscillatory system and can be used as a test case system for evaluating a controller. The system of equations for Van der Pole Oscillator is given as follows:











x
˙

1

=




x
1

(

1
-

x
2


)

2

-

x
2

+
u









x
˙

2

=

x
1








The initial states are







[




x
1






x
2




]

=

[



0




1



]





and control input is −0.75≤u≤1. In FIGS. 5 and 6, graphs show states and control inputs for Model Predictive Control of Van der Pole Oscillator using the proposed algorithm.


Note that the embodiments above can be implemented in multi-zone HVAC systems that are centrally controlled. In FIG. 7, a block diagram illustrates a system 700 according to an example embodiment. The system pertains to one or more buildings 702 that are divided into a number of zones 704-706 that correspond to physical partitions of the buildings 702 whose states (e.g., temperature, humidity) are governed by thermodynamic relations between the zones 704-706 and throughout the buildings 702 as a whole (e.g., solar irradiance on the buildings 702). Note that, for purposes of the description of this system 700, the zones 704-706 may include both separate partitions with individual controlled components/sensors and centralized controlled components/sensors that directly affect multiple zones. For example, the central cooler 102 and supply fan 104 shown in FIG. 1 may be considered part of Zone 0, the control of which affects all of Zones 1-5. Also note that the buildings 702 may encompass multiple structures that use a common HVAC system.


The system 700 uses conventional HVAC components (e.g., compressors, evaporators, chillers, heaters, VAV boxes, solar-thermal collectors, underground or underwater heat exchangers, fans, dehumidifiers, humidifiers, etc.) to affect the movement of heat through the buildings 702, and any of those HVAC components that can be affected by an input signal are indicated as controlled components 708-710 which are each associated with one of the zones 704-706. Each of the zones 704-706 includes sensors 712-714 (e.g., temperature sensors, flow sensors, humidity sensors, solar radiation sensors, etc.) that gather state data that can be fed into a centralized controller 720. Other sources of data 718 may also be used as state inputs to the controller 720, such as occupancy sensors, Internet-accessible weather data, etc. Generally, the inputs to the controlled components 708-710 affect the state variables measured by the sensors 712-714, and each controlled component 708-710 may primarily affect the zone in which the component is located, and secondarily affect other zones, e.g., via heat transfer through inter-zone boundaries.


The controller 720 may include conventional computing hardware such as a central processing unit (CPU) 721, memory 722, input/output (I/O) interfaces 723, and a non-volatile data storage unit 724 (e.g., hard disk drives, solid state drives). The controller 720 includes an external data interface 726 that receives state information from the sensors 712-714 and sends inputs to controlled components 708-710. The data storage unit 724 stores a linear physics model 728 of the building that defines thermodynamic relationships between the zones of the building and the HVAC system. The linear physics model 728 may be stored, for example, as a data file that is loaded into memory by a program and contains parameters that can be used to update the model 728 as described herein.


During operation of the system 700, e.g., when the system 700 is actively controlling the building HVAC, physics-based model 728 is used to determine control inputs to the controlled components 708-710, as well as having their parameters jointly updated at the same time based on a series of previous states and inputs. These control inputs and parameter updates may be calculated using an optimized MPC controller 730 that utilizes algorithms described above. For example, the processor 721 uses the linear physics model as an equality constraint for MPC computation by the MPC controller 730 that determines a next control input to the HVAC system based on a system state. The MPC controller 730 decomposes a constraint matrix H of the equality constraint into a factor of a first matrix U and a second matrix V such that UUτand VTV are both diagonal matrices.


The MPC controller 730 minimizes an objective function of the MPC computation by iteratively solving a linear system of equations that includes inverses of UUτand VτV to update state and control variables of the MPC computation. The MPC controller 730 determines a current input based on the minimization of the objective function and applying the current input to control the HVAC system. Note that various optimized math libraries 732 such as matrix libraries can be used to efficiently solve the above noted matrix operations such as inverses. Generally, even a relatively large system can be controlled by this type of MPC controller 730 using low-powered computing hardware, e.g., a single board computer such as a Raspberry Pi™.


The various embodiments described above may be implemented using circuitry, firmware, and/or software modules that interact to provide particular results. One of skill in the arts can readily implement such described functionality, either at a modular level or as a whole, using knowledge generally known in the art. For example, the flowcharts and control diagrams illustrated herein may be used to create computer-readable instructions/code for execution by a hardware processor. Such instructions may be stored on a non-transitory computer-readable medium and transferred to the processor for execution as is known in the art. The structures and procedures shown above are only a representative example of embodiments that can be used to provide the functions described hereinabove.


The various embodiments described above may be implemented using circuitry, firmware, and/or software modules that interact to provide particular results. One of skill in the arts can readily implement such described functionality, either at a modular level or as a whole, using knowledge generally known in the art. For example, the diagrams and algorithms illustrated herein may be used to create computer-readable instructions/code for execution by a processor. Such instructions may be stored on a non-transitory computer-readable medium and transferred to the processor for execution as is known in the art. The structures and procedures shown above are only a representative example of embodiments that can be used to provide the functions described hereinabove.


Unless otherwise indicated, all numbers expressing feature sizes, amounts, and physical properties used in the specification and claims are to be understood as being modified in all instances by the term “about.” Accordingly, unless indicated to the contrary, the numerical parameters set forth in the foregoing specification and attached claims are approximations that can vary depending upon the desired properties sought to be obtained by those skilled in the art utilizing the teachings disclosed herein. The use of numerical ranges by endpoints includes all numbers within that range (e.g., 1 to 5 includes 1, 1.5, 2, 2.75, 3, 3.80, 4, and 5) and any range within that range.


The foregoing description has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the embodiments to the precise form disclosed. Many modifications and variations are possible in light of the above teachings. Any or all features of the disclosed embodiments can be applied individually or in any combination and are not meant to be limiting, but purely illustrative. It is intended that the scope of the invention be limited not with this detailed description, but rather, determined by the claims appended hereto.

Claims
  • 1. A method comprising: determining a physics model of a building and linearizing the physics model around an operating point, the linearized physics model defining thermodynamic relationships between zones of the building and a heating, ventilation, and air-conditioning (HVAC) system;receiving measurements from sensors, the measurements defining a system state of the HVAC system;using the linearized physics model as an equality constraint for a model predictive controller that determines a next control input to the HVAC system based on the system state by solving an optimization problem for a time horizon of size N;decomposing a constraint matrix H of the equality constraint into factors of a first matrix U and a second matrix V such that UUτand VτV are both diagonal matrices;optimizing an objective function of the model predictive controller by iteratively solving a linear system of equations that includes inverses of UUτand VτV to determining a sequence of inputs for a horizon of the model predictive controller; andapplying a first input of the sequence of inputs to control the HVAC system.
  • 2. The method of claim 1, wherein an augmented Lagrangian method is used to optimize the objective function in view of the equality constraint and other equality and inequality constraint.
  • 3. The method of claim 1, wherein optimizing the objective function of the model predictive controller comprises finding, in a first iteration a first factor comprising the inverse of the diagonal matrix UUT and a second factor comprising the inverse of the diagonal matrix VτV and reusing the first and second factors in subsequent iterative steps.
  • 4. The method of claim 3, wherein the iterations involve using the first and second factor to update primal variables of the model predictive controller and Langrangian multipliers.
  • 5. The method of claim 1, wherein the model predictive controller is formatted as a quadratic problem that involves optimizing a quadratic objective function subject to a set of linear equality and linear inequality constraints.
  • 6. The method of claim 5, wherein the set of linear inequality constraints comprise upper and lower bound constraints on states and control inputs.
  • 7. The method of claim 6, wherein the upper and lower bound constraints on states comprise zone temperature bounds and the upper and lower bound constraints on control inputs comprise control input bounds.
  • 8. The method of claim 1, wherein the receiving of the measurements, the determination of the sequence of inputs, and the applying of the first input to control the HVAC system occurs in real-time on one or more local computing devices.
  • 9. The method of claim 8, further comprising implementing a security policy wherein the one or more local computing devices determine the sequence of inputs independently of a cloud computing service.
  • 10. The method of claim 8, wherein the one or more local computing devices comprises two or more local computing devices that cooperatively execute the model predictive controller.
  • 11. A system comprising: a heating, ventilation, and air-conditioning (HVAC) system of a building comprising two or more zones;sensors that measure a system state of the HVAC system; anda hardware controller configured via instructions to: determine a physics model that is linearized around an operating point, the linearized physics model defining thermodynamic relationships between the two or more zones of the building;use the linearized physics model as an equality constraint for a model predictive controller that determines a next control input to the HVAC system based on the system state;decompose a constraint matrix H of the equality constraint into factors of a first matrix U and a second matrix V such that UUτand VτV are both diagonal matrices;optimize an objective function of the model predictive controller by iteratively solving a linear system of equations that includes inverses of UUτand VτV to determining a sequence of inputs for a horizon of the model predictive controller; andapply a first input of the sequence of inputs to control the HVAC system.
  • 12. The system of claim 11, wherein an augmented Lagrangian method is used to optimize the objective function in view of the equality constraint and other equality and inequality constraint.
  • 13. The system of claim 11, wherein optimizing the objective function of the model predictive controller comprises finding, in a first iteration a first factor comprising the inverse of the diagonal matrix UUτand a second factor comprising the inverse of the diagonal matrix VτV and reusing the first and second factors in subsequent iterative steps.
  • 14. The system of claim 13, wherein the iterations involve using the first and second factor to update primal variables of the model predictive controller and Langrangian multipliers.
  • 15. The system of claim 11, wherein the model predictive controller is formatted as a quadratic problem that involves optimizing a quadratic objective function subject to a set of linear equality and linear inequality constraints.
  • 16. The system of claim 15, wherein the set of linearity inequality constraints comprise upper and lower bound constraints on states and control inputs.
  • 17. The system of claim 11, the measuring of the system state, the determination of the sequence of inputs, and the applying of the first input to control the HVAC system occurs in real-time occurs in real-time.
  • 18. The system of claim 11, wherein the HVAC system services two or more buildings, and wherein the linear physics model defines the thermodynamic relationships between zones of the two or more buildings.
  • 19. The system of claim 11, wherein the hardware controller comprises two or more controllers that cooperatively execute the instructions.
  • 20. The system of claim 11, wherein the instructions further cause the hardware controller to determine the sequence of inputs independently of a cloud computing service.