The present invention relates generally to controlling heating, ventilation and air conditioning (HVAC) systems in buildings, and more particularly to maximizing comfort for building occupants.
The comfort of building occupants must be maximized while minimizing energy costs. Most conventional strategies for operating HVAC systems:
(i) Do not consider the entire system. For instance, the control over multiple rooms in the building is usually decoupled to yield smaller loops over which the control actions are independently solved. This approach fails to consider the full coupling between the subsystems and can lead to poor performance.
(ii) Do not consider thermal and humidity dynamics of the building that predict the evolution of temperature humidity over time.
(iii) Do not consider occupant comfort metrics, such as a predicted mean vote (PMV), or thermal comfort zones during the determination of the operational strategies, and instead employ set-point based strategies. This can lead to increased energy consumption and discomfort for the occupants.
Most model based optimization approaches for determining the HVAC operational strategies:
(i) Employ linear programming for the optimization, which can fail to fully model the complete dynamics of the system.
(ii) Do not include constraints on thermal comfort, such as the PMV, and instead rely on set-points for temperature. This can result in increased energy costs.
(iii) When the PMV is used, the model is simplified by linearizing the system equation, which leads to inaccuracies in estimating the true comfort of the occupants. This can result in increased discomfort for the occupants.
Thus, there is a need to optimize a building HVAC system, and to consider accurate models of occupant comfort and building thermal and humidity dynamics.
The embodiments of the invention provide a method for determining an optimal operation of a HVAC system by minimizing energy consumption, while maximizing occupant comfort. The building dynamics are modeled using differential equations that control an evolution of temperatures and humidity in rooms. An energy consumption of the HVAC system is modeled using steady state equations, or differential equations. The occupant comfort is measured using comfort indices such as a predicted mean vote (PMV).
The PMV determinations involve conditional statements, which result in nonsmooth behavior. Several embodiments for reformulating the conditional statements to computationally tractable forms that are suitable for optimization are provided. A nonlinear program incorporating sparse linear algebra is used to ensure computational efficiency of the method.
Building Representation
Input
As shown in
Forecast 401 of hourly weather pattern.
Equipment heat load forecast 402 for each room.
Prediction 403 of the occupant heat loads.
Comfort requirements 404 for the occupants.
Objectives 405 of the optimization.
The method uses objectives for the optimization 405 and a model 406.
The steps of the method as described herein can be performed in a processor connected to a memory, and input and output interfaces as known in the art.
Output
Output 420 of the method includes a time profile of control variables in the model which can include: compressor frequency, air flow rate from each room through the conditioner, and the evolution of the temperatures of the room, temperatures of the walls and humidity in the rooms as a result of choice of prescribed control actions. All temperatures are in degrees centigrade.
Room Dynamics Model
In the preferred embodiment, the dynamics of the room are modeled as a set of differential equations. A linear resistive capacity circuit modeling the room temperature dynamics is shown in
where Tz is the temperature of the room in degrees centigrade, Tw is the temperature of wall in the room, Cz is the heat capacity of the room air in Joules (J) per kilogram (kg), Rzw is the resistance for heat transfer between the zone air and the walls of the zone, Too is the ambient air temperature, Cp is the specific heat capacity of air in (J/kg/K), {dot over (m)}vent is the flow rate of ventilation air in (kg/s), {dot over (Q)}sen is a rate of sensible heat generated by equipment, occupants in the room and solar radiation through windows, {dot over (Q)}sen,hvac is a rate of sensible heat transferred to the room air from the indoor air conditioning unit. The dot above the variables indicates the first derivative with respect to time.
The linear resistive capacity circuit modeling the temperature dynamics of the room wall is shown in
where Cw is the heat capacity of the wall in (J/k), Rwoa is the resistance for heat transfer between the wall and ambient air and {dot over (Q)}inv is the rate of heat transfer from solar radiation to the wall in (W).
The linear resistive capacity circuit modeling the room humidity dynamics is shown in
where hz is the specific humidity of zone air in (kg/kg), ρ is the density of air, Va is the volume of air in the room, L is the latent heat of evaporation of water in (J/kg), {dot over (Q)}lat is the rate of latent heat generated by equipment and occupants in the room in (W) and {dot over (Q)}lat,hvac is the rate of latent heat added to the room air by the indoor air conditioning unit.
Predicted Mean Vote
In the preferred embodiment, a predicted mean vote (PMV) is used to measure the occupant comfort, see ANSI/ASHRAE Standard 55-2010, Thermal Environmental Conditions for Human Occupancy. The PMV includes parameters that influence comfort: temperature, relative humidity, air velocity, metabolic rate, mean radiant temperature, and clothing insulation. The PMV measures the thermal comfort of the occupants on a scale of −3 to +−3 with: −3: very cold, −2: cold, −1: slightly cool, 0: neutral, +1: slightly warm, +2: warm, +3: hot. The typical range for different building types is prescribed in the American Society of Heating, Refrigerating and Air-Conditioning Engineers (ASHRAE) standard ISO 7730:2005.
The PMV is determined by the following equations:
where Tz is the temperature of the room, hz is the absolute specific humidity in the room, M is the metabolic rate in (W/m2), W is the effective mechanical power in (W/m2), Icl is the clothing insulation in (m2k/W), fcl is the clothing area factor,
In the PMV model equations, M, W, Icl, fcl are parameters that are specified by the type of activity, e.g., sedentary office work, vigorous workout, that occurs in the room and clothing insulation material that is worn by the occupants in the room. These are not decision variables in the optimization problem. Although Eq. (7) has conditional statement, the value of fcl can be determined a priori for the entire period over which the optimization is performed.
However, Eq. (6) involves conditional statements involving the decision variables in the optimization problem Tz, Tcl. One approach to handle this is to add binary variables to the optimization problem and express the conditional statement as
zε{0,1}
2.38|Tcl−Tz|0.25≧(12.1√{square root over (var)})z
h
c=(2.38|Tcl−Tz|0.25)z+12.1√{square root over (var)}(1−z). (9)
If z=1 in Eq. (9), then the first condition in Eq. (6) is enforced and consequently, hc=2.38|Tcl−Tz|0.25. If z=0, then the second conditional in Eq. (6) is enforced and consequently, hc=12.1√{square root over (var)}. With this modification, the optimization problem using PMV indices and Eq. (9) will fall in the class of mixed integer nonlinear programs (MINLPs), which are typically computationally complex.
To address the computational intractability of binary variable based modeling, while still retaining the original PMV formulation, we pose the conditional statement as
h
c=max(2.38|Tcl−Tz|0.25,12.1√{square root over (var)}). (10)
This expresses the conditional statement in Eq. (6) but does not allow continuous optimization because Eq. (10) is not smooth. To address this concern, we first consider the following exact reformulation:
It can be verified in Eq. (11) that if the first conditional in Eq. (6) holds, then hc=2.38|Tcl−Tz|0.25. On the other hand, if the second conditional in Eq. (6) holds, then hc=12.1√{square root over (var)}. Eq. (11) is differentiable everywhere except at 2.38|Tcl−Tz|0.25=12.1√{square root over (var)} because the square root function is not differentiable at 0. This point of non-differentiability is problematic for continuous optimization. To address this concern, the smoothing procedure is applied to Eq. (11) as
where τ>0 is the smoothing parameter. For all τ>0. Eq. (12) is differentiable everywhere and the continuous optimization algorithms can be readily applied. Because the smoothing parameter τ>0 has to be driven to zero to recover Eq. (6), the method solves a sequence of optimization problem where the value of the smoothing parameter is monotonically decreased. This provides an accurate method for handling the nonsmooth conditional in Eq. (6) and uses continuous optimization algorithms, which are computationally efficient.
A third approach handles the nonsmooth conditionals in Eq. (10) by writing the max operator as
In Eq. (13), if the first conditional of Eq. (6) is satisfied, then
z=1 and hc=2.38|Tcl−Tz|0.25
holds. If the second conditional in Eq. (6) is satisfied, then
z=0 and hc=12.1√{square root over (var)},
This formulation is still not convenient for optimization. Therefore, we replace the minimization in Eq. (13) with the first order stationary conditions as
−2.38|Tcl−Tz|0.25+12.1√{square root over (var)}−λ+v=0
λ≧0⊥z≧0
v≧0⊥z≦1
h
c=(2.38|Tcl−Tz|0.25)z+12.1√{square root over (var)}(1−z). (14)
In Eq. (14), λ≧0⊥z≧0 is a complementarity constraint equivalent to λ, z≧0, λz=0, In other words, λ=0 or z=0. Similarly, the other complementarity condition v≧0⊥z≦1 implies that v=0 or z=1. When these two conditions are taken together it can be seen that λ, v>0 cannot occur since the complementarity conditions will imply that z=0 and z=1. If the first conditional in Eq. (6) holds, then v=12.1√{square root over (var)}−2.38|Tcl−Tz|0.25 and λ=0, which implies that z=1 and hc=2.38|Tcl−Tz|0.25 holds. The case of the second conditional in Eq. (6) holding can be similarly verified.
Complementarity conditions are difficult to handle within optimization problems. A conventional approach relaxes the conditional statements
−2.38|Tcl−Tz|0.25+12.1√{square root over (var)}−λ+v=0
λ,z≧0,λz≦τ
v≧0,z≦1,v(1−z)≦τ
h
c=(2.38|Tcl−Tz|0.25)z+12.1√{square root over (var)}(1−z) (15)
where τ>0 is a relaxation parameter. For all τ>0, Eq. (15) provides a strictly feasible interior to the optimization problems and continuous optimization can be readily applied. Because the smoothing parameter τ>0 has to be driven to zero to recover Eq. (6), the method solves a sequence of optimization problem where the value of the smoothing parameter is monotonically decreased. This provides an accurate method for handling the nonsmooth conditional in Eq. (6) and uses continuous optimization, which is computationally efficient.
A fourth approach to handle the conditionals in Eq. (6) is to simplify the equations. Typically, the temperature difference between the zone air and clothing in the room |Tz−Tcl| is less than 5 degrees C. Further, in air conditioned rooms, the relative velocity of the air var is typically 0.1 m/s. For these conditions, it can be assumed that the second conditional is satisfied and consequently, we simplify the conditionals in Eq. (6) as
h
c=12.1√{square root over (var)}. (16)
Building Dynamics and Occupant Comfort Model
In the preferred embodiment, the dynamical model for a building includes N: rooms and N, walls represented as
where the differential variables the subscript i denotes a quantity associated with a room, subscript j denotes a quantity associated with a wall, subscript ij denotes a quantity associated with room i and wall j and notation j:i˜j denotes the set of (i,j) that such that room i has wall j. In the above, Tz,i represent the air temperature in room i, Tw,j represents the temperature of wall j, {dot over (Q)}sen,i represents the rate of sensible heat generation from equipment, occupants and solar radiation through windows, {dot over (Q)}sen,hvac represent the rate of sensible heating delivered by the air conditioner in room i, {dot over (m)}vent,i is the ventilation air flow rate from room i, Cz,i is the heat capacity of air in room i and Rzw,ij is the resistance for heat transfer between air in room i and wall j.
The thermal dynamics of the wall in the building are represented as
where Cw,j represents the heat capacity of wall j, Rwoa,j represents the resistance for heat transfer between the wall j and the outside air, {dot over (Q)}inv,i is the rate of heat gain on wall j from solar radiation, and notation i:i˜j denotes the set of (i,j) that such that room i has wall j.
The humidity dynamics of the rooms in the building are represented as
where hz,i is the humidity of the air in room i, Va,i is the volume of air in room i, {dot over (Q)}lat,i is the rate of heat generated by equipment, occupants in room i, and {dot over (Q)}lat,hvac,i is the rate of latent heat delivered by the air conditioner in room i.
The occupant comfort model for all rooms in the building is represented as
where for room i, PMVi is the predicted mean vote index for occupants in the room, Mi is the metabolic rate in (W/m2) for occupants in the room, Wi is the effective mechanical power in (W/m2) in the room, Icl,i is the clothing insulation in (m2K/W) in the room, fcl,i is the clothing area factor in the room,
HVAC Outdoor and Indoor Unit
In the preferred embodiment, the outdoor and indoor units are modeled as
where, Phvac is the amount of electric power consumed by the HVAC outdoor unit, {dot over (Q)}all,hvac is the total heating delivered by the HVAC unit, Cf is the compressor frequency of the HVAC unit, a0, a1, a2, b0, b1, b2 are constants, Xcond is the amount of condensation in the outdoor unit, ΔX is the difference in specific humidity between the inlet and outlet of the outdoor unit, {dot over (m)}hvac,i is the mass flow rate of air from the room air conditioners, hout is the specific humidity of air at outlet of outdoor unit, RHout is the relative humidity of air at outlet of outdoor unit, ΔH is the difference in specific enthalpy between the inlet and outlet of the outdoor unit, Hz,i is the specific enthalpy of the return air from the air conditioner in room i, Hout is the specific enthalpy of the air supplied by the outdoor unit to the rooms, BPF is the bypass factor of the outdoor unit, Tcond is the condensation temperature at the outdoor unit.
Typically, RHout is selected to 95%, BPF is selected to 0.2 and Tcond is selected to 5 deg C.
The model in Eq. (25) applies for a single outdoor unit, and can be extended to the case of multiple outdoor units.
Comfort Optimization Formulation
In the preferred embodiment, the optimization minimizes the electric power consumption of the outdoor unit as,
In Eq. (26), a smoothing formulation is used to model the conditional statements in the PMV calculation. The comfort requirement is formulated as upper and lower limits on the PMV for each room. The values of +0.5 and −0.5 are typically used when the building is occupied. The compressor frequency is limited to be within 10 Hz˜80 Hz, and the mass flow rates are also limited based on the capacity of the fans in the individual air conditioning units. In addition, limits such as non-negativity of temperatures, humidity and other quantities from physical considerations are included in the optimization formulation.
There are a number of parameters whose values for the period of the optimization are provided. These parameters are:
As described above, the minimization problem in Eq. (26), based on smoothing formulation, is well behaved for τ>0, but the smoothing parameter has to be decreased to 0 to recover a solution to the original problem. The procedure for solving this problem is shown in
For simplicity of this description, the building dynamics model is represented as
where x the set of differential variables corresponds to
The differential equations correspond to Equations (17)-(19). The algebraic equations correspond to Equations (20)-(21), (23)-(25) and the smoothing formulation (26). With this representation, the optimization problem in Eq. (26) can be recast as
where x,
The limits are assumed to be function of time because different bounds can be specified based on the occupancy conditions. The optimization problem in Eq. (28) is an instance of optimal control problem. These problems are generally solved by discretizing the differential and algebraic equations, which are now imposed at a finite set of time instances instead of all time instants in [0, T].
Discretization schemes, such as the explicit Euler, implicit Euler, Runge-Kutta methods, or collocation schemes can be used. With such a discretization, the problem in Eq. (28) is reduced to a nonlinear program with finite number of variables and constraints.
In the preferred embodiment, the optimal control problem is Eq. (28) is discretized using an implicit Euler scheme as
where Δt is the time step of the discretization and NT=T/Δt are the number of discretization steps in the optimization. The optimization problem in Eq. (29) is very sparse and appropriate use of spare linear algebra can reduce the computational complexity.
In the preferred embodiment, the optimization problem in (29) is solved using nonlinear programming algorithms that use sparse linear algebra techniques.
In another embodiment the conditional equations in PMV calculation is formulated using complementarity constraints
In another embodiment, the conditional equations in PMV calculation is formulated using binary variables as the Mixed Integer Nonlinear Programming (MINLP)
In another embodiment, comfort optimization is formulated using simplification of the conditional equations in PMV calculation as,
Although the invention has been described by way of examples of preferred embodiments, it is to be understood that various other adaptations and modifications can be made within the spirit and scope of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention.