Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
VARIABLE REFRIGERANT FLOW SYSTEM WITH MULTI-LEVEL MODEL PREDICTIVE CONTROL
Document Type and Number:
WIPO Patent Application WO/2018/005670
Kind Code:
A1
Abstract:
A model predictive control system is used to optimize energy cost in a variable refrigerant flow (VRF) system. The VRF system includes an outdoor subsystem and a plurality of indoor subsystems. The model predictive control system includes a high-level model predictive controller (MPC) and a plurality of low-level indoor MFCs. The high-level MFC performs a high-level optimization to generate an optimal indoor subsystem load profi le for each of the plurality of indoor subsystems. The optimal indoor subsystem load profiles optimize energy cost. Each of the low-level indoor MFCs performs a low-level optimization to generate optimal indoor setpoints for one or more indoor VRF units of the corresponding indoor subsystem. The indoor setpoints can include temperature setpoints and/or refrigerant flow setpoints for the indoor VRF units.

Inventors:
PATEL NISHITH R (US)
ELLIS MATTHEW J (US)
WENZEL MICHAEL J (US)
TURNEY ROBERT D (US)
LENHARDT BRETT M (US)
Application Number:
PCT/US2017/039798
Publication Date:
January 04, 2018
Filing Date:
June 28, 2017
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
JOHNSON CONTROLS TECH CO (US)
International Classes:
G05B13/04; G05B15/02; G05B17/02
Foreign References:
US20160098022A12016-04-07
US201715405236A2017-01-12
US201715405234A2017-01-12
US201715426962A2017-02-07
US201715473496A2017-03-29
US201514717593A2015-05-20
US201514634609A2015-02-27
US9235657B12016-01-12
Other References:
MOROSAN P D ET AL: "Building temperature regulation using a distributed model predictive control", ENERGY AND BUILDINGS, LAUSANNE, CH, vol. 42, no. 9, 1 September 2010 (2010-09-01), pages 1445 - 1452, XP027060500, ISSN: 0378-7788, [retrieved on 20100521]
YUDONG MA ET AL: "Predictive Control for Energy Efficient Buildings with Thermal Storage: Modeling, Stimulation, and Experiments", IEEE CONTROL SYSTEMS, IEEE, USA, vol. 32, no. 1, 1 February 2012 (2012-02-01), pages 44 - 64, XP011452765, ISSN: 1066-033X, DOI: 10.1109/MCS.2011.2172532
ABDUL AFRAM ET AL: "Theory and applications of HVAC control systems - A review of model predictive control (MPC)", BUILDING AND ENVIRONMENT, vol. 72, 1 February 2014 (2014-02-01), GB, pages 343 - 355, XP055404171, ISSN: 0360-1323, DOI: 10.1016/j.buildenv.2013.11.016
Attorney, Agent or Firm:
ZIEBERT, Joseph N. et al. (US)
Download PDF:
Claims:
WHAT IS CLAIMED IS:

1 . A model predictive control system for optimizing energy cost in a variable refrigerant flow (VRF) system including an outdoor subsystem and a plurality of indoor subsystems, the model predictive control system comprising;

a high-level model predictive controller configured to perform a high-level optimization to generate an optimal indoor subsystem load profile for each of the plurality of indoor subsystems, wherein the optimal indoor subsystem load profiles optimize the energy cost; and

a plurality of low-level indoor model predictive controllers, each corresponding to one of the indoor subsystems and configured to perform a low-level optimization to generate optimal indoor setpoints for one or more indoor VRF units of the corresponding indoor subsystem using the optimal indoor subsystem load profile for the corresponding indoor subsystem;

wherein each of the plurality of low-level indoor model predictive controllers is configured to operate the indoor VRF units of the corresponding indoor subsystem using the optimal indoor setpoints.

2. The model predictive control system of Claim 1, wherein:

each of the optimal indoor subsystem load profiles comprises a thermal energy allocation to one of the indoor subsystems at each of a plurality of time steps in an optimization period; and

each low-level indoor model predictive controller is configured to use the thermal energy allocation to the corresponding indoor subsystem as an optimization constraint when performing the low-level optimization.

3. The model predictive control system of Claim 1, wherein the optimal indoor setpoints comprise at least one of:

refrigerant flow setpoints for each of the indoor VRF units; and

temperature setpoints for one or more building zones controlled by the indoor VRF units.

4. The model predictive control system of Claim 1, wherein:

each indoor subsystem comprises a plurality of building zones; and each of the low-level indoor model predictive controllers is configured to generate optimal indoor temperature setpoints for each of the plurality of building zones in the corresponding indoor subsystem.

5. The model predictive control system of Claim 1 , wherein;

each indoor subsystem comprises a plurality of indoor VRF units; and

each of the low-level indoor model predictive controllers is configured to:

generate optimal refrigerant flow decisions for each of the plurality of indoor VRF units in the corresponding indoor subsystem, and

use the optimal refrigerant flow decisions to calculate at least one of flow setpoints, temperature setpoints, and valve setpoints for each of the plurality of indoor VRF units.

6. The model predictive control system of Claim 5, wherein each of the low-level indoor model predictive controllers is configured to:

identify a relationship between thermal energy load and refrigerant flow for each of the indoor VRF units in the corresponding indoor subsystem, and

use the identified relationships between thermal energy load and refrigerant flow to generate the optimal refrigerant flow decisions for each of the indoor VET units in the corresponding indoor subsystem.

7. The model predictive control system of Claim 1, wherein:

the high-level model predictive controller is configured to generate predicted temperature profiles for each indoor subsystem resulting from the optimal indoor subsystem load profiles; and

the low-level indoor model predictive controllers are configured to generate the optimal indoor setpoints by minimizing an error between indoor subsystem temperatures and the predicted temperature profiles.

8. The model predictive control system of Claim 1, wherein each of the indoor subsystems represents a separate building thermally decoupled from one another such that no direct heat exchange occurs between the indoor subsystems.

9. The model predictive control system of Claim 1, wherein the high-level model predictive controller is configured to generate an optimal outdoor unit demand profile for the outdoor subsystem;

the system further comprising a low-level outdoor model predictive controller configured to perform a low-level optimization to generate optimal outdoor setpoints for one or more outdoor VRF units of the outdoor subsystem subject to a demand constraint based on the optimal outdoor unit demand profile;

wherein the low-level outdoor model predictive controller is configured to use the optimal outdoor setpoints to operate the outdoor VRF units.

10. The model predictive control system of Claim 1, wherein the high-level model predictive controller is configured to determine:

an optimal thermal energy allocation to each of the plurality of indoor subsystems at each of a plurality of time steps in an optimization period, and

an optimal thermal energy or refrigerant state allocation of the outdoor subsystem at each of the plurality of time steps in the optimization period.

11. A method for optimizing energy cost in a variable refrigerant flow (VRF) system including an outdoor subsystem and a plurality of indoor subsystems, the method comprising:

performing a high-level optimization at a high-level model predictive controller to generate an optimal indoor subsystem load profile for each of the plurality of indoor subsystems, wherein the optimal indoor subsystem load profiles optimize the energy cost, providing the optimal indoor subsystem load profiles from the high-level model predictive controller to a plurality of low-level indoor model predictive controllers, each of the low-level indoor model predictive controllers corresponding to one of the plurality of indoor subsystems;

performing a low-level optimization at each of the low-level indoor model predictive controllers to generate optimal indoor setpoints for one or more indoor VRF units of the corresponding indoor subsystem using the optimal indoor subsystem load profile for the corresponding indoor subsystem; and

using the optimal indoor setpoints to operate the indoor VRF units in each of the plurality of indoor subsystems.

12. The method of Claim 1 1, wherein:

each of the optimal indoor subsystem load profiles comprises a thermal energy allocation to one of the indoor subsystems at each of a plurality of time steps in an optimization period; and

performing the low-level optimization comprises using the thermal energy allocation to the corresponding indoor subsystem as an optimization constraint.

13. The method of Claim 1 1, wherein the optimal indoor setpoints comprise at least one of:

refrigerant flow setpoints for each of the indoor VRF units; and

temperature setpoints for one or more building zones controlled by the indoor VRF units.

14. The method of Claim 1 1, wherein:

each indoor subsystem comprises a plurality of building zones; and

performing the low-level optimization comprises generating optimal indoor temperature setpoints for each of the plurality of building zones in the corresponding indoor subsystem.

15. The method of Claim 11, wherein:

each indoor subsystem comprises a plurality of indoor VRF units; and

performing the low-level optimization comprises:

generating optimal refrigerant flow decisions for each of the plurality of indoor VRF units in the corresponding indoor subsystem; and

using the optimal refrigerant flow decisions to calculate at least one of flow setpoints, temperature setpoints, and valve setpoints for each of the plurality of indoor VRF units.

16. The method of Claim 15, wherein performing the low-level optimization comprises: identifying a relationship between thermal energy load and refrigerant flow for each of the indoor VRF units in the corresponding indoor subsystem; and

using the identified relationships between thermal energy load and refrigerant flow to generate the optimal refrigerant fl ow decisions for each of the indoor VRF units in the corresponding indoor subsystem.

17. The method of Claim 1 1, wherein:

performing the high-level optimization comprises generating predicted temperature profiles for each indoor subsystem resulting from the optimal indoor subsystem load profiles; and

performing the low-level optimization comprises generating the optimal indoor setpoints by minimizing an error between indoor subsystem temperatures and the predicted temperature profiles.

18. The method of Claim 11, wherein performing the high-level optimization comprises generating an optimal outdoor unit demand profile for the outdoor subsystem, the method further comprising:

performing a low-level optimization at a low-level outdoor model predictive controller to generate optimal outdoor setpoints for one or more outdoor VRF units of the outdoor subsystem subject to a demand constraint based on the optimal outdoor unit demand profile; and

using the optimal outdoor setpoints to operate the outdoor VRF units.

19. The method of Claim 11, wherein performing the high-level optimization comprises determining:

an optimal thermal energy allocation to each of the plurality of indoor subsystems at each of a plurality of time steps in an optimization period, and

an optimal thermal energy or refrigerant state allocation of the outdoor subsystem at each of the plurality of time steps in the optimization peri od.

20. A variable refrigerant flow (VRF) system comprising:

a plurality of indoor subsystems, each indoor subsystem comprising one or more indoor VRF units;

an outdoor subsystem comprising one or more outdoor VRF units;

a high-level model predictive controller configured to perform a high-level optimization to generate an optimal indoor subsystem load profile for each of the plurality of indoor subsystems, wherein the optimal indoor subsystem load profiles optimize energy- cost; and

a plurality of low-level indoor model predictive controllers, each corresponding to one of the indoor subsystems and configured to perform a low-level optimization to generate optimal indoor setpoints for the indoor VRF units of the corresponding indoor subsystem using the optimal indoor subsystem load profile for the corresponding indoor subsystem.

Description:
VARIABLE REFRIGERANT FLOW SYSTEM WITH MULTI-LEVEL MODEL PREDICTIVE CONTROL

CRO S S -REFERENCE TO RELATED PATENT APPLICATION

[0001] This application claims the benefit of and priority to LI.S. Provisional Patent Application No. 62/357,338 filed June 30, 2016, the entire disclosure of which is incorporated by reference herein.

BACKGROUND

[0002] The present disclosure relates generally to a model predictive control (MPC) system for a building heating, ventilation, and air conditioning (HVAC) system. The present disclosure relates more particularly to a MPC system for optimizing energy cost in a variable refrigerant flow (VRF) system including an outdoor subsystem and a plurality of indoor subsystems,

[0003] Commercial buildings consume approximately 20% of the total U.S. energy consumption and account for roughly $200 billion per year in primary energy expenditures. The Energy Information Administration projects that commercial floor space and primary energy consumption will continue to grow into the future. Average energy prices, on the other hand, are expected to remain relatively stable. Therefore, the amount spent on energy in commercial buildings will continue to increase significantly. Given the significance of these energy cost values and their projected growth, buildings have become a prime target for control strategies designed to reduce consumption or improve efficiency, particularly in the area of temperature control.

[0004] Many HVAC systems in commercial buildings and educational facilities use simple on/off and proportional-integral-derivative (PID) controllers for control of their equipment. They rely on temperature controllers whose only goal is to converge to the desired temperature set point and stay there, within some tolerance. However, a better goal is to minimize total energy consumption or minimize total energy cost. In a utility market with time-varying prices, there exists the potential for cost savings by temporally shifting heating or cooling loads using some form of energy storage. To achieve these savings, predictive optimization can be used with a model of the system to forecast the future load. Load shifting decreases the burden on power plants during peak hours, allowing them to operate more efficiently. Furthermore, chillers operate more efficiently at night when the cooling water temperature is lower.

[0005] MPC is a method of advanced process control that has been highly successful over the past two decades. MPC uses a model of the system that relates the inputs (control actions) to outputs (process measurements). The model i s used to predict the process variables based on the actions taken by the controller over a period of time called the horizon. At each step, MPC solves an online optimization problem using this model to determine a sequence of control actions that achieve an objective such as minimizing tracking error or input usage while respecting process constraints such as equipment capacity and safety bounds. The first control action in the sequence is implemented and the optimization problem is solved again at the next step after new measurements are obtained. In economic MPC, the objective in the optimization problem is to minimize total cost.

[0006] Economically optimal control systems have not been deployed widely in the HVAC industr . One fundamental obstacle to the successful deployment of MPC in HVAC systems is the large number of building zones. To implement MPC in HVAC systems, it may be desirable to solve the optimization problem in a reasonably short time (e.g., on the order of a few minutes). Campus-wi de implementations may contain hundreds of buil dings and zones. A single, combined control system for these applications is impractical and undesirable since the resulting single optimization problem is too large to solve in real time.

SUMMARY

[0007] One implementation of the present disclosure is a model predictive control system for optimizing energy cost in a variable refrigerant flow (V F) system. The VRF system includes an outdoor subsystem and a plurality of indoor subsystems. The model predictive control system includes a high-level model predictive controller (MPC) and a plurality of low-level indoor MPCs. The high-level MPC is configured to perform a high-level optimization to generate an optimal indoor subsystem load profile for each of the plurality of indoor subsystems. The optimal indoor subsystem load profiles optimize the energy cost. Each of the low-level indoor MPCs corresponds to one of the indoor subsystems and is configured to perform a low-level optimization to generate optimal indoor setpoints for one or more indoor VRF units of the corresponding indoor subsystem using the optimal indoor subsystem load profile for the corresponding indoor subsystem. Each of the low-level indoor MPCs is configured to operate the indoor VRF units of the corresponding indoor subsystem using the optimal indoor setpoints.

[0008] In some embodiments, each of the optimal indoor subsystem load profiles includes a thermal energy allocation to one of the indoor subsystems at each of a plurality of time steps in an optimization period. In some embodiments, each low-level indoor MPC is configured to use the thermal energy allocation to the corresponding indoor subsystem as an optimization constraint when performing the low-level optimization.

[0009] In some embodiments, the optimal indoor setpoints include at least one of refrigerant flow setpoints for each of the indoor VRF units and temperature setpoints for one or more building zones controlled by the indoor VRF units.

[OOlOj In some embodiments, each indoor subsystem includes a plurality of building zones. Each of the low-level indoor MPCs can be configured to generate optimal indoor temperature setpoints for each of the plurality of building zones in the corresponding indoor subsystem.

[0011] In some embodiments, each indoor subsystem includes a plurality of indoor VRF units. Each of the low-level indoor MPCs can be configured to generate optimal refrigerant flow decisions for each of the plurality of indoor VRF units in the corresponding indoor subsystem and use the optimal refrigerant flow decisions to calculate at least one of flow setpoints, temperature setpoints, and valve setpoints for each of the plurality of indoor VRF units.

[0012] In some embodiments, each of the low-level indoor MPCs is configured to identify a relationship between thermal energy load and refrigerant flow for each of the indoor VRF units in the corresponding indoor subsystem. Each of the low-level indoor MPCs can use the identified relationships between thermal energy load and refrigerant flow to generate the optimal refrigerant flow decisions for each of the indoor VRF units in the corresponding indoor subsystem.

[0013] In some embodiments, the high-level MPC is configured to generate predicted temperature profiles for each indoor subsystem resulting from the optimal indoor subsystem load profiles. In some embodiments, the low-level indoor MPCs are configured to generate the optimal indoor setpoints by minimizing an error between indoor subsystem temperatures and the predicted temperature profiles. [0014] In some embodiments, each of the indoor subsystems represents a separate building thermally decoupled from one another such that no direct heat exchange occurs between the indoor subsystems.

[0015] In some embodiments, the high-level MPC is configured to generate an optimal outdoor unit demand profile for the outdoor subsystem. The system can include a low-level outdoor MPC configured to perform a low-level optimization to generate optimal outdoor setpoints for one or more outdoor VRF units of the outdoor subsystem subject to a demand constraint based on the optimal outdoor unit demand profile. The low-level outdoor MPC can be configured to use the optimal outdoor setpoints to operate the outdoor VRF units.

[0016] In some embodiments, the high-level MPC is configured to determine an optimal thermal energy allocation to each of the plurality of indoor subsystems at each of a plurality of time steps in an optimization period and an optimal thermal energy or refrigerant state allocation of the outdoor subsystem at each of the plurality of time steps in the optimization period.

[0017] Another implementation of the present disclosure is a method for optimizing energy cost in a variable refrigerant flow (VRF) system. The VRF system includes an outdoor subsystem and a plurality of indoor subsystems. The method includes performing a high-level optimization at a high-level model predictive controller (MPC) to generate an optimal indoor subsystem load profile for each of the plurality of indoor subsystems. The optimal indoor subsystem load profiles optimize the energy cost. The method includes providing the optimal indoor subsystem load profiles from the high-level MPC to a plurality of low-level indoor MFCs. Each of the low-level indoor MPCs corresponds to one of the plurality of indoor subsystems. The method includes performing a low-level optimization at each of the low-level indoor MPCs to generate optimal indoor setpoints for one or more indoor VRF units of the corresponding indoor subsystem using the optimal indoor subsystem load profile for the corresponding indoor subsystem. The method includes using the optimal indoor setpoints to operate the indoor VRF units in each of the plurality of indoor subsystems.

[0018] In some embodiments, each of the optimal indoor subsystem load profiles includes a thermal energy allocation to one of the indoor subsystems at each of a plurality of time steps in an optimization period. In some embodiments, performing the low-level optimization includes using the thermal energy allocation to the corresponding indoor subsystem as an optimization constraint.

[0019] In some embodiments, the optimal indoor setpoints include at least one of refrigerant flow setpoints for each of the indoor VRF units and temperature setpoints for one or more building zones controlled by the indoor VRF units,

[0020] In some embodiments, each indoor subsystem includes a plurality of building zones. Performing the low-level optimization can include generating optimal indoor temperature setpoints for each of the plurality of building zones in the corresponding indoor subsystem.

[0021] In some embodiments, each indoor subsystem includes a plurality of indoor VRF units. Performing the low-level optimization can include generating optimal refrigerant flow decisions for each of the plurality of indoor VRF units in the corresponding indoor subsystem and using the optimal refrigerant flow decisions to calculate at least one of flow setpoints, temperature setpoints, and valve setpoints for each of the plurality of indoor VRF units.

[0022] In some embodiments, performing the low-level optimization includes identifying a relationship between thermal energy load and refrigerant flow for each of the indoor VRF units in the corresponding indoor subsystem and using the identified relationships between thermal energy load and refrigerant flow to generate the optimal refrigerant flow decisions for each of the indoor VRF units in the corresponding indoor subsystem.

[0023] In some embodiments, performing the high-level optimization includes generating predicted temperature profiles for each indoor subsystem resulting from the optimal indoor subsystem load profiles. In some embodiments, performing the low-level optimization includes generating the optimal indoor setpoints by minimizing an error between indoor subsystem temperatures and the predicted temperature profiles.

[0024] In some embodiments, performing the high-level optimization includes generating an optimal outdoor unit demand profile for the outdoor subsystem. The method can further include performing a low-level optimization at a low-level outdoor model predictive controller to generate optimal outdoor setpoints for one or more outdoor VRF units of the outdoor subsystem subject to a demand constraint based on the optimal outdoor unit demand profile. The method can further include using the optimal outdoor setpoints to operate the outdoor VRF units. [0025] In some embodiments, performing the high-level optimization includes

determining an optimal thermal energy allocation to each of the plurality of indoor subsystems at each of a plurality of time steps in an optimization period and an optimal thermal energy or refrigerant state allocation of the outdoor subsystem at each of the plurality of time steps in the optimization period.

[0026] Another implementation of the present disclosure is a variable refrigerant flow (VRF) system. The VRF system includes a plurality of indoor subsystems, an outdoor subsystem, a high-level model predictive controller (MPC), and a plurality of low-level indoor MFCs. Each indoor subsystem includes one or more indoor VRF units. The outdoor subsystem includes one or more outdoor VRF units. The high-level MPC is configured to perform a high-level optimization to generate an optimal indoor subsystem load profile for each of the plurality of indoor subsystems. The optimal indoor subsystem load profiles optimize energy cost. Each low-level indoor MPC corresponds to one of the indoor subsystems and is configured to perform a low-level optimization to generate optimal indoor setpoints for the indoor VRF ' units of the corresponding indoor subsystem using the optimal indoor subsystem load profile for the corresponding indoor subsystem.

[0027] Those skilled in the art will appreciate that the summary is illustrative only and is not intended to be in any way limiting. Other aspects, inventive features, and advantages of the devices and/or processes described herein, as defined solely by the claims, will become apparent in the detailed description set forth herein and taken in conjunction with the accompanying drawings,

BRIEF DESCRIPTION OF THE DRAWINGS

[0028] FIGS. 1A-1B are drawings of a variable refrigerant flow (VRF) system having one or more outdoor VRF units and a plurality of indoor VRF units, according to some embodiments.

[0029] FIG. 2A is a diagram illustrating the operation of the VRF system of FIGS. 1A-1B in a cooling mode, according to some embodiments.

[0030] FIG. 2B is a directed graph illustrating the balance of refrigerant states when the VRF system operates in the cooling mode, according to some embodiments.

[0031] FIG. 3A is a diagram illustrating the operation of the VRF system of FIGS. 1A-1B in a heating mode, according to some embodiments. [0032] FIG. 3B is a directed graph illustrating the balance of refrigerant states when the VRF system operates in the heating mode, according to some embodiments.

[0033] FIG. 4A is a diagram illustrating the operation of the VRF system of FIGS. 1 A-1 B in a combined heating and cooling mode, according to some embodiments.

[0034] FIG. 4B is a directed graph illustrating the balance of refrigerant states when the VRF system operates in the combined heating and cooling mode, according to some embodiments.

[0035] FIG. 5 is a block diagram of a control system for multiple VRF systems, according to some embodiments,

[0036] FIG. 6 is a block diagram of a distributed model predictive control system with a high-level model-predictive controller, several low-level indoor model predictive controllers, and a low-level outdoor model predictive controller, according to some embodiments.

[0037] FIG. 7 is a block diagram illustrating the high-level model predictive controller of FIG. 6 in greater detail, according to some embodiments.

[0038] FIG. 8 is a block diagram illustrating one of the low-level indoor model predictive controllers of FIG. 6 in greater detail, according to some embodiments.

[0039] FIG. 9 is a flow diagram of a high-level and distributed low-level model predictive control technique which can be used to optimize energy cost in the MPC system of FIG. 6 when indoor subsystem loads are used as constraints in the low-level optimizations, according to some embodiments.

[0040] FIG. 10 is another flow diagram of a high-level and distributed low-level model predictive control technique which can be used to optimize energy cost in the MPC sy stem of FIG. 6 when the low-level optimizations track temperature profiles provided by the high- level optimization, according to some embodiments.

DETAILED DESCRIPTION

[0041] Referring generally to the FIGURES, a model predictive control (MPC) system for a variable refrigerant flow (VRF ' ) system is shown, according to some embodiments. MPC is a control technique that uses a model of a controlled system to relate system inputs (e.g., control actions, setpoints, etc.) to system states and system outputs (e.g., measurements, process variables, etc.). The model can be used to predict the system states and system outputs based on the actions taken by a controller at each time step during an optimization period. At each time step, MPC solves an online optimization problem using the system model to determine a sequence of control actions that achieve an objective (e.g., minimizing tracking error, minimizing energy cost, etc.) while respecting process constraints such as equipment capacity and safety bounds (e.g., temperature constraints, equipment switching constraints, etc.). The first control action in the sequence is implemented and the optimization problem is solved again at the next time step after new measurements are obtained.

[0042] The MPC system described herein can optimize (e.g., minimize) the total cost of energy used to provide heating and/or cooling to a building or campus. Numerous studies have shown that MPC outperforms existing control systems due to its ability to forecast into the future and anticipate events before they occur. MPC enables shifting of the energy load from peak hours to off-peak hours by using the mass of the building for passive thermal energy storage (TES). Energy costs can be decreased by concentrating equipment usage to times of low resource prices, all while maintaining comfort limits within each building.

[0043] In some embodiments, the MPC system includes a MPC layer and a regulatory layer. The MPC layer can receive measurements from the regulatory layer and provide setpoints to the regulatory layer. The MPC layer can generate optimal values for various decision variables including, for example, zone temperature setpoints, refrigerant flow rates, and equipment on/off decisions. The MPC layer can determine the optimal values of the decision variables using system models such a zone temperature to cooling/heating duty model, a cooling/heating duty to temperature setpoint model, and equipment models. The MPC layer can determine the optimal values of the decision variables by performing an optimization process subject to several constraints. The constraints can include comfort bounds on the zone air temperatures, equipment capacity constraints, refrigerant balance constraints, and rate of change bounds on the equipment of the regulatory layer.

[0044] Solving a single MPC problem to determine the optimal values for all of the decision variables can be difficult for large-scale applications. For example, some VRF systems can include thousands of discrete zones and thousands of unique HVAC devices. The discrete decisions (e.g., turning equipment on/off) can result in a mixed integer optimization problem, which further increases complexity. Due to the difficulty and computational complexity of the MPC problem, the MPC layer can decompose the overall MPC problem into smaller, more manageable, optimization problems.

[0045] The distributed MPC system can decompose the overall MPC problem into a high- level optimization problem and a low-level optimization problem. The high-level problem can be solved by a high-level model predictive controller to determine a load profile for each of a plurality of low-level indoor subsystems and a demand profile for an outdoor subsystem. The indoor subsystems can include indoor VRF units, whereas the outdoor subsystem can include outdoor VRF units. In some embodiments, the high-level controller uses aggregate low-level models for each indoor subsystem to reduce computational complexity. The high-level controller can determine load profiles that optimize (e.g., minimize) the total operational cost of the MPC system over the optimization period. Each load profile can include a load value for each time step in the optimization period. The high-level controller can provide the load profiles to a plurality of low-level indoor model- predictive controllers. The low-level indoor controllers can use the load profiles as constraints defining maximum permissible load values for each indoor subsystem for each time step in the optimization period.

[0046] The low-level optimization problem can be further decomposed into a low-level outdoor optimization problem and one or more low-level indoor optimization problems. Each low-level indoor problem can be solved by one of low -level indoor controllers to determine zone temperature setpoints and/or refrigerant flow setpoints for the indoor VRF units. Each low-level indoor controller can determine the zone temperature setpoints and/or refrigerant flow setpoints that optimize (e.g., minimize) the energy consumption of the corresponding indoor subsystem while maintaining zone temperatures within defined temperature limits and without exceeding the load values provided by the high-level controller. Alternatively, each low-level indoor controller can determine temperature setpoints and/or refrigerant flow setpoints that track the average indoor subsystem temperatures (e.g., predicted subsystem temperature states) from the high-level optimization problem. These and other components of the MPC system are described in greater detail below.

Variable Refrigerant Flow System

[0047] Referring now to FIGS. I A-1B, a variable refrigerant flow (VRF) system 100 is shown, according to some embodiments. VRF system 100 is shown to include a plurality of outdoor VRF units 102 and a plurality of indoor VRF ' units 104. Outdoor VRF units 102 can be located outside a building and can operate to heat or cool a refrigerant. Outdoor VRF units 102 can consume electricity to convert refrigerant between liquid, gas, and/or super-heated gas phases. Indoor VRF units 104 can be distributed throughout various building zones within a building and can receive the heated or cooled refrigerant from outdoor VRF units 102. Each indoor VRF unit 104 can provide temperature control for the particular building zone in which the indoor VRF unit is located.

[0048] A primary advantage of VRF systems is that some indoor VRF units 104 can operate in a cooling mode while other indoor VRF units 104 operate in a heating mode. For example, each of outdoor VRF units 102 and indoor VRF units 104 can operate in a heating mode, a cooling mode, or an off mode. Each building zone can be controlled independently and can have different temperature setpoints. In some embodiments, each building has up to three outdoor VRF units 102 located outside the building (e.g., on a rooftop) and up to 128 indoor VRF units 104 distributed throughout the building (e.g., in various building zones).

[0049] Many different configurations exist for VRF system 100. In some embodiments, VRF system 100 is a two-pipe system in which each outdoor VRF unit 102 connects to a single refrigerant return line and a single refrigerant outlet line. In a two-pipe system, ail of the outdoor VRF units 102 operate in the same mode since only one of a heated or chilled refrigerant can be provided via the single refrigerant outlet line. In other embodiments, VRF system 100 is a three-pipe system in which each outdoor VRF unit 102 connects to a refrigerant return line, a hot refrigerant outlet line, and a cold refrigerant outlet line. In a three-pipe system, both heating and cooling can be provided simultaneously via the dual refrigerant outlet lines. An example of a three-pipe VRF system which can be used for VRF system 100 is described in detail below.

[0050] Referring now to FIGS. 2A-4B, several diagrams illustrating the operation of VRF system 100 in a cooling mode, a heating mode, and a combined heating/cooling mode are shown, according to some embodiments. Each outdoor VRF unit 102 may include one or more heat exchangers 106 (as shown in FIGS. 2A, 3 A, and 4A). When outdoor VRF units 102 operate in a cooling mode, heat exchangers 106 can operate as condensers 128 (as shown in FIGS. 2B and 4B) to provide cooling for the refrigerant. When outdoor VRF units 102 operate in a heating mode, heat exchangers 106 can be operated as evaporators 130 (as shown in FIG. 3B) to provide heating for the refrigerant. It is contemplated that condensers 128 and evaporators 130 may exist as separate devices within outdoor VRF units 102 or may exist as heat exchangers 106 which can be operated as both condensers 128 and evaporators 130 depending on the mode of operation of outdoor VRF units 102. Although only two outdoor VRF units 102 are shown, it should be understood that VRF system 100 can include any number n of outdoor VRF units 102.

[0051] Each indoor VRF unit 104 may include one or more heat exchangers 107 (as shown in FIGS. 2 A, 3 A, and 4A) When indoor VRF units 04 operate in a cooling mode, heat exchangers 107 can operate as evaporators 105 (as shown in FIGS, 2B and 4B) to provide cooling for the air delivered to the building zones. When indoor VRF ' units 104 operate in a heating mode, heat exchangers 107 can be operated as condensers 103 (as shown in FIG. 3B) to provide heating for the air delivered to the building zones. It is contemplated that condensers 103 and evaporators 105 may exist as separate devices within indoor VRF units 104 or may exist as heat exchangers 107 which can be operated as both condensers 103 and evaporators 105 depending on the mode of operation of indoor VRF units 104. Although only three indoor VRF units 104 are shown, it should be understood that VRF system 100 can include any number m of indoor VRF units 104. [0052]

Referring particularly to FIGS. 2A-2B, the operation of VRF system 100 in the cooling mode is shown, according to some embodiments. In the cooling mode, heat exchangers 106 of outdoor VRF units 02 operate as condensers 28 to condense a superheated gas refrigerant 124 into a liquid refrigerant 120. The liquid refrigerant 120 from heat exchangers 106 flows through the expansion valves (EEV) 108 and on to heat exchangers 107 of indoor VRF units 104. In the cooling mode, heat exchangers 107 operate as evaporators 105 to evaporate the liquid refrigerant 120 to a gas refrigerant 122, thereby absorbing heat from the air within the building zones and providing cooling for the building zones. Solenoid valves 110 allow for the gas refrigerant 122 to return to one or more compressors 12 of outdoor units 102. Compressors 112 compress the gas refrigerant 122 to create a superheated gas refrigerant 124, which is provided to condensers 128.

[0053] Referring now to FIGS. 3 A-3B, the operation of VRF system 100 in the heating mode is shown, according to some embodiments. In the heating mode, heat exchangers 106 of outdoor VRF units 102 operate as evaporators 130 to evaporate the liquid refrigerant 120 from the indoor VRF ' units 104. Heat exchangers 106 transfer heat into the liquid refrigerant 120, thereby causing the liquid refrigerant 120 to evaporate and form a gas refrigerant 122. The gas refrigerant 122 is provided to compressors 1 12, which compress the gas refrigerant 122 to form a superheated gas refrigerant 124. The superheated gas refrigerant 124 is then provided to heat exchangers 107 of indoor VRF units 104. Heat exchangers 107 operate as condensers 102 to condense the superheated gas refrigerant 24 by transferring heat from the superheated gas refrigerant 124 to the building zones, thereby causing the superheated gas refrigerant 124 to lose heat and become the liquid refrigerant 120. The liquid refrigerant 120 is then returned to heat exchangers 106 outdoor VRF units 102.

[0054] Referring now to FIGS. 4A-4B, the operation of VRF system 100 in a combined heating and cooling mode is shown, according to some embodiments. In the combined heating/cooling model, some indoor and outdoor VRF units 102-104 operate in a heating mode while other indoor and outdoor VRF units 102-104 operate in a cooling mode. For example, indoor VRF unit-2 is shown operating in a heating mode, whereas indoor VRF unit-1 and indoor VRF unit-m are shown operating in the cooling mode. Both outdoor VRF ' unit-1 and outdoor VRF unit-n are shown operating in the cooling mode.

[0055] The operation of outdoor VRF units 102 in the cooling mode can be the same as previously described with reference to FIGS. 2A-2B. For example, outdoor VRF units 102 can receive the gas refrigerant 122 and condense the gas refrigerant 122 into a liquid refrigerant 120. The liquid refrigerant 120 can be routed to indoor VRF unit-1 and indoor VET unit-m to provide cooling for zone-1 and zone-m. Heat exchangers 107 of indoor VRF unit-1 and indoor VRF unit-m operate as evaporators 105, by absorbing heat from building zone-1 and building zone-m, thereby causing the liquid refrigerant 120 to become a gas refrigerant 122. The gas refrigerant 122 is then delivered to compressors 112 of outdoor VRF units 1022. Compressors 112 compress the gas refrigerant 122 to form a superheated gas refrigerant 124. The superheated gas refrigerant 124 can be provided to heat exchangers 106 of outdoor VRF units 102, which operate as condensers 128 to condense the gas refrigerant 122 to liquid refrigerant 120. The superheated gas refrigerant 124 can also be provided to indoor VRF ' unit-2 and used to provide heating to building zone-2.

[0056] The operation of indoor VRF unit-2 in the heating mode can be the same as previously described with reference to FIGS. 3A-3B. For example, heat exchanger 107 of indoor VRF unit-2 can operate as a condenser 103 by rejecting heat from the superheated gas refrigerant 124 to building zone-2, thereby causing the superheated gas refrigerant 124 to become a liquid refrigerant 120. The liquid refrigerant 120 can be routed to heat exchangers 107 of indoor VRF unit-1 and indoor VRF unit-m, which operate as evaporators 105 to absorb heat from building zone-1 and building zone-m, as previously described.

[0057] In any of the operating modes, VRF system 100 can operate to ensure that the refrigerant states remain balanced. For example, when operating in the cooling mode, VRF system 100 can operate outdoor VRF units 102 and indoor VRJF units 104 to ensure that outdoor VRF units 102 convert the gas refrigerant 122 to the liquid refrigerant 120 at the same rate that indoor VRF units 104 convert the liquid refrigerant 120 to the gas refrigerant 122. Similarly, when operating in the heating mode, VRF ' system 100 can operate outdoor VRF units 102 and indoor VRF units 104 to ensure that outdoor VRF units 102 convert the liquid refrigerant 120 to the superheated gas refrigerant 124 at the same rate that indoor VRF units 104 convert the superheated gas refrigerant 124 to the liquid refrigerant 120.

[0058] In each of the operating modes, VRF system 100 can operate outdoor VRF units 102 and indoor VRF units 104 to ensure that the amount of each refrigerant state produced (e.g., liquid refrigerant 120, gas refrigerant 122, and superheated gas refrigerant 124) by outdoor VRF units 102 and indoor VRF units 104 is equal to the amount of each refrigerant state consumed by outdoor VRF units 102 and indoor VRF units 104. In other words, VRF sy tem 100 can balance the rates at which refrigerant is added and removed from each of the refrigerant states. In some embodiments, VRF system 100 imposes mass balance constraints or volume balance constraints to ensure that the net amount of refrigerant in each of the refrigerant states remains balanced at each time step of an optimization period.

[0059] In some embodiments, VRF system 100 is controlled using a predictive energy cost optimization framework. For example, VRF system 100 can include one or more controllers which perform a high-level optimization and a low-level optimization. The high-level optimization can seek to optimize the electricity usage costs plus the peak electricity charge (i.e., the electricity demand charge) across the entire VRF system 100 subject to several system constraints by manipulating the requested cooling or heating duty- delivered to each zone and the operation modes of the indoor and outdoor VRF units 102- 104. The constraints imposed in the high-level optimization can include system constraints such as the balance of refrigerant states (as previously described) and zone temperature constraints. The zone temperature constraints can require the temperature of each building zone to be maintained within an acceptable temperature range to maintain comfort of the occupants. [0060] The low-level optimization can use the requested heating and cooling duty for each building zone computed by the high-level optimization as input data to the low-level optimization. The low-level optimization can manipulate the zone temperature setpoints for the various building zones such that the zone heating and cooling duties track the requested heating or cooling duty profile computed in the high-level optimization.

[0061] In some embodiments, the low-level optimization is distributed across several low- level model predictive controllers, each of which can operate to determine the temperature setpoints for a particular building zone. For example, the control system can include a high- level model predictive controller (MPC) and several low-level MFCs. The high-level MFC can determine an optimal load profile for each of the building zones and can distribute the optimal load profiles to the low-level MFCs for the building zones. Each low-level MPC can be configured to control a particular building zone and can receive the load profile for the corresponding building zone from the high-level MPC. Each low-level MPC can determine optimal temperature setpoints for the corresponding building zone using the load profile from the high-level MPC. An example of such a distributed implementation is described in greater detail with reference to FIG. 6.

[0062] Referring now to FIG. 5, a block diagram of a control system 500 for multiple VRF systems 510, 520, and 530 is shown, according to some embodiments. Each of VRF systems 510-530 can include some or all of the components and/or features of VRF system 100, as described with reference to FIGS. 1 A-4B. The optimization framework described above can be extended to a larger system including multiple VRF systems 510-530 by introducing an additional control layer (e.g., a supervisory layer) operating above the high- level and low-level optimization framework. For example, the predictive cost optimization controller can act as a coordinator to coordinate the electricity usage of multiple VRF systems 510-530 over time such that the multiple VRF systems 510-530 achieve an optimal energy cost performance (e.g., minimum total energy cost for the entire set of VRF systems 510-530).

[0063] In various embodiments, the cost optimization performed by the predictive cost optimization controller may account for energy cost (e.g., $/k\Vh of electricity consumed), demand charge (e.g., $/kW of peak power consumption), peak load contribution cost, and/or monetary incentives from participating in incentive-based demand response (IBDR) programs. Several examples of a cost optimization which can be performed by the predictive cost optimization controller are described in detail in U.S. Patent Application No. 15/405,236 filed January 12, 2017, U.S. Patent Application No. 15/405,234 filed January 12, 2017, U.S. Patent Application No. 15/426,962 filed February 7, 2017, and U. S. Patent Application No. 15/473,496 filed March 29, 2017. The entire disclosure of each of these patent applications is incorporated by reference herein.

[0064] In the supervisor}' layer, each of the individual VRF systems 510-530 can be represented as a single asset that converts electricity 502 from an electric utility 508 into either hot air 504 or cold air 506 that is required by the building zones. Hot air 504 and cold air 506 can be delivered to airside units 512, 522, and 532 that provide heating and/or cooling for the building zones served by airside units 512, 522, and 532. Hot air 504 and cold air 506 can be treated as resources produced by VRF systems 510-530, whereas electricity 502 can be treated as a resource consumed by VRF systems 510-530. The relationship between resource production and electricity consumption by each VRF system 510-530 may be defined by a system performance curve for each VRF system 510-530. The system performance curves can be used in the supervisory layer as constraints on the cost optimization performed by the predictive cost optimization controller to ensure that VRF systems 510-530 operate to generate sufficient hot air 504 and cold air 506 for the building zones.

[0065] The amount of hot air 504 and cold air 506 to be produced by each of VRF systems 510-530 at each time step of an optimization period can be determined by the predictive cost optimization controller by performing an asset allocation process. Several examples of an asset allocation process which can be performed by the predictive cost optimization controller are described in detail in U.S. Patent Application No. 15/405,236, U.S. Patent Application No. 15/405,234, U.S. Patent Application No. 15/426,962, and U.S. Patent Application No. 15/473,496,

Distributed Model Predictive Control System

[0066] Referring now to FIG. 6, a block diagram of a distributed model predictive control (MPC) system 600 is shown, according to some embodiments. MPC system 600 uses a MPC technique to determine optimal setpoints for the equipment of a VRF system (e.g., VRF system 100) over a time horizon. MPC system 600 ca be used in combination with VRF system 100, as described with reference to FIGS. 1 -5, For example, MPC system 600 can determine optimal temperature setpoints for indoor VRF units 104 and optimal load setpoints for outdoor VRF units 102. [0067] MPC is a control technique that uses a model of a controlled system to relate system inputs (e.g., control actions, setpoints, etc.) to system states and system outputs (e.g., measurements, process variables, etc.). The model can be used to predict the system states and system outputs based on the actions taken by a controller at each time step during an optimization period. At each time step, MPC solves an online optimization problem using the system model to determine a sequence of control actions that achieve an objective (e.g., minimizing tracking error, minimizing energy cost, etc.) while respecting process constraints such as equipment capacity and safety bounds (e.g., temperature constraints, equipment switching constraints, etc.). The first control action in the sequence is implemented and the optimization problem is solved again at the next time step after new measurements are obtained.

[0068] In economic MPC, the objective in the optimization problem is often to minimize total cost, as defined by a cost function. Numerous studies have shown that MPC outperforms existing control systems due to its ability to forecast into the future and anticipate events before they occur. MPC enables shifting of the energy load from peak hours to off-peak hours by using the mass of the building for passive thermal energy storage (TES). Energy costs can be decreased by concentrating equipment usage to times of low resource prices, all while maintaining comfort limits within each building.

[0069] Still referring to FIG. 6, distributed MPC system 600 is shown to include a MPC layer 610 and a regulatory layer 620. MPC layer 610 is shown to include a high-level model predictive controller 608 and several low-level model predictive controllers 612-618. Controllers 612, 614, and 616 are shown as low-level indoor model predictive controllers, whereas controller 618 is shown as a low-level outdoor model predictive controller. MPC layer 610 can be configured to determine and provide optimal temperature setpoints and equipment operating setpoints to the equipment of regulatory layer 620. In some embodiments, MPC layer 610 can be retrofit to any existing VRF system to provide setpoint optimization for the equipment of the VRF system.

[0070] Regulator}' layer 620 is shown to include indoor VRF units 622-626 and outdoor RF units 628. Indoor VRF units 622-626 can include some or all of indoor VRF units 104, whereas outdoor VRF units 628 can include some or all of outdoor VRF units 102. In some embodiments, regulatory layer 620 can include PID controllers, operable equipment (e.g., outdoor VRF ' units, indoor VRF ' units, pumps, fans, valves, etc.), and/or other systems or devices configured to control a process variable to a setpoint. [0071] In some embodiments, distributed MPC system 600 includes a load/rate predictor 602. Load/rate predictor 602 can provide MPC layer 610 with load and rate predictions including, for example, disturbance forecasts, electricity prices, demand charge prices, and outside air temperatures. Load/rate predictor 602 is shown receiving weather forecasts from a weather service 604, In some embodiments, load/rate predictor 602 generates the disturbance forecasts as a function of the weather forecasts. In some embodiments, load/rate predictor 602 uses feedback from regulatory layer 620 to generate the disturbance forecasts. Feedback from regulator}' layer 620 can include various types of sensory inputs (e.g., temperature, flow, humidity, enthalpy, etc) or other data relating to the controlled building or campus (e.g., building occupancy data, building electric load, etc.). In some embodiments, load/rate predictor 602 generates a disturbance forecast including a predicted disturbance value for each time step within the optimization period.

[0072] In some embodiments, load/rate predictor 602 uses a deterministic plus stochastic model trained from historical load data to generate the disturbance forecast. Load/rate predictor 602 can use any of a variety of prediction methods to generate the disturbance forecast (e.g., linear regression for the deterministic portion and an autoregressive model for the stochastic portion). Load/rate predictor 602 can predict one or more different types of disturbances for the building or campus. For example, load/rate predictor 602 can predict a thermal load resulting from heat transfer between the air within a building and the outside air through the walls of the building. Load/rate predictor 602 can predict a thermal load resulting from internal heat generation within the building (e.g., heat generated by electronics in the building, heat generated by building occupants, etc.). In some embodiments, load/rate predictor 602 makes load/rate predictions using the techniques described in U.S. Patent Application No. 14/717,593, titled "Building Management System for Forecasting Time Series Values of Building Variables" and filed May 20, 2015, the entire disclosure of which is incorporated by reference herein.

[0073] Load/rate predictor 602 is shown receiving utility rates from utilities 606. Utility rates can indicate a cost or price per unit of a resource (e.g., electricity, natural gas, water, etc.) provided by utilities 606 at each time step in the optimization period. In some embodiments, the utility rates are time-variable rates. For example, the price of electricity can be higher at certain times of day or days of the week (e.g., during high demand periods) and lower at other times of day or days of the week (e.g., during low demand periods). The utility rates can define various time periods and a cost per unit of a resource during each time period. Utility rates can be actual rates received from utilities 606 or predicted utility rates estimated by load/rate predictor 602.

[0074] In some embodiments, the utility rates include demand charges for one or more resources provided by utilities 606. A demand charge can define a separate cost imposed by utilities 606 based on the maximum usage of a particular resource (e.g., maximum energy consumption) during a demand charge period. The utility rates can define various demand charge periods and one or more demand charges associated with each demand charge period. In some instances, demand charge periods can overlap partially or completely with each other and/or with the optimization period. Advantageously, MPC layer 610 can account for demand charges in the high-level optimization process performed by high-level model predictive controller 608. Utilities 606 can be defined by time-variable (e.g., hourly) prices, a maximum service level (e.g., a maximum rate of consumption allowed by the physical infrastructure or by contract) and, in the case of electricity, a demand charge or a charge for the peak rate of consumption within a certain period. Load/rate predictor 602 can store the predicted loads and the utility rates in memory and/or provide the predicted loads and the utility rates to high-level MPC 608,

[0075] MPC layer 610 can receive measurements from regulatory layer 620 and provide setpoints to regulatory layer 620. MPC layer 610 can generate optimal values for various decision variables including, for example, zone temperature setpoints, variable refrigerant flow setpoints, operating mode setpoints (e.g., heating or cooling), and/or equipment on/off decisions. MPC layer 610 can determine the optimal values of the decision variables using system models such a zone temperature to cooling/heating duty model, a cooling/heating duty to temperature setpoint model, and equipment models. MPC layer 610 can determine the optimal values of the decision variables by performing an optimization process subject to several constraints. The constraints can include comfort bounds on the zone air temperatures, equipment capacity constraints, refrigerant state balance constraints, and rate of change bounds on the equipment of regulatory layer 620.

[0076] As discussed above, solving a single MPC problem to determine the optimal values of the decision variables can be difficult for large-scale applications. For example, a building or building system can include thousands of discrete zones and thousands of unique HVAC devices. The discrete decisions (e.g., turning equipment on/off) can result in a mixed integer optimization problem, which further increases complexity. Due to the diffi culty and computational complexity of the MPC problem, MPC layer 610 can decompose the overall MPC problem into smaller, more manageable, optimization problems.

[0077] As shown in FIG. 6, distributed MPC system 600 can decompose the overall MPC problem into a high-level optimization problem and a low-level optimization problem. The high-level problem can be solved by high-level controller 608 to determine a load profile for each indoor subsystem 632-636 and a demand profile for outdoor subsystem 638. In some embodiments, high-level controller 608 uses aggregate low-level models for each indoor subsystem 632-636 to reduce computational complexity. High-level controller 608 can determine load profiles that optimize (e.g., minimize) the total operational cost of MPC system 600 over the optimization period. Each load profile can include a load value for each time step in the optimization period. Low-level indoor controllers 612-616 can use the load profiles as constraints defining maximum permissible load values for each indoor subsystem 632-636 for each time step in the optimization period. High-level controller 608 can provide the load profiles to each of the low-level indoor controller 612-616. The high- level optimization performed by high-level controller 608 is described in greater detail with reference to FIG. 7.

[0078] The low-level optimization problem can be further decomposed into a low-level outdoor optimization problem and one or more low-level indoor optimization problems. Each low-level indoor problem can be solved by one of low -level indoor controllers 612- 616 to determine zone temperature setpoints for the indoor VRF units 622-626 of each indoor subsystem 632-636. Each low-level indoor controller 612-616 can determine the zone temperature setpoints that optimize (e.g., minimize) the energy consumption of the corresponding indoor subsystem 632-636 while maintaining zone temperatures within defined temperature limits and without exceeding the load values provided by high-level controller 608. Alternatively, each low-level indoor controller 612-616 can determine temperature setpoints that track the average indoor subsystem temperatures (e.g., predicted subsystem temperature states) from the high-level optimization problem. The low-level optimization performed by low-level controllers 612-616 is described in greater detail with reference to FIG. 8.

[0079] The low-level outdoor problem can be solved by low-level outdoor controller 618. In some embodiments, the low-level outdoor problem is a mixed-integer linear program. Low-level outdoor controller 618 can determine optimal setpoints for outdoor VRF ' units 628 that minimize operating cost while meeting the demand profile from high-level controller 608. Decision variables optimized by low-level outdoor controller 618 can include, for example, equipment on/off states, thermal loads for chillers, compressor setpoints, flow rates for pumps, and setpoints for other auxiliaiy outdoor equipment. Low- level outdoor controller 618 can use the demand profile from high-level controller 608 as an input specifying the overall demand to be met by outdoor VRF units 628 at each time step of the optimization period.

[0080] In some embodiments, low-level outdoor controller 618 decomposes the low-level outdoor optimization problem into a first outdoor optimization problem and a second outdoor optimization problem. The first outdoor optimization problem can allocate the demand specified by high-level controller 608 across multiple outdoor VRF units of the outdoor subsystem. The second outdoor optimization problem can be decomposed into a mixed-integer optimization problem for each subplant to determine optimal equipment on/off states and equipment setpoints for outdoor VRF units 628. An example of an optimization technique which can be used by low-level outdoor controller 618 is described in detail in U.S. Patent Application No. 14/634,609 filed Februar' 27, 2015, the entire disclosure of which is incorporated by reference herein.

[0081] As shown in FIG. 6, each low-level indoor model predictive controller 612-616 can control a subsystem 632-636 of the entire VRF system 100. Each low-level indoor controller 612-616 can perform a separate indoor optimization process to determine optimal temperature setpoints for the indoor VRF units 622-626 of the corresponding indoor subsystem 632-636. Each indoor subsystem 632-636 can include one or more indoor VRF units, each of which can be configured to deliver air to one or more building zones.

[0082] In some embodiments, high-level controller 608 uses an aggregate model of each indoor subsystem 632-636 and allocates a thermal energy load to each indoor subsystem 632-636. Low-level indoor controllers 612-616 can use more detailed zone-level models during the low-level optimization processes to determine the optimal temperature setpoints for each building zone of the corresponding indoor subsystem. Decomposing the VRF system 100 into separate indoor subsystems 632-636 can improve computational performance and substantially decrease the amount of time required to solve the low-level MPC problems. For example, all of the low-level MPC problems can be solved within a few minutes. [0083] In some embodiments, each indoor subsystem 632-636 represents a separate building. Significant coupling between indoor subsystems 632-636 (e.g., heat exchange between subsystems 632-636) can affect performance since low-level controllers 612-616 are not required to coordinate their solutions. One way to decompose VRF system 100 to guarantee that there is no coupling between subsystems 632-636 is to decompose by building since separate buildings do not exchange heat with one another. For this reason, it may be desirable to select indoor subsystems 632-636 so that each indoor subsystem 632- 636 represents a separate building. Each indoor subsystem 632-636 can include multiple zones (e.g., rooms or spaces within the building), each of which can be controlled by a separate indoor VRF unit. In other embodiments, each indoor subsystem 632-636 can represent a single building zone, a collection of zones within a building, or even multiple buildings.

[0084] In MPC system 600, high-level model predictive controller 608 determines the thermal energy loads to allocate to each indoor subsystem 632-636 (e.g., each building or each zone) and the demand profile for outdoor subsystem 638. Each indoor subsystem 632- 636 can include a separate low-level indoor controller 612-616 that computes the temperature setpoints or variable refrigerant flow rates for each zone in that indoor subsystem 632-636 (e.g., setpoints for each indoor VRF unit in the building). The low-level indoor problem can be solved in a distributed manner. The low-level indoor problem can be easily extended to handle large industrial and campus-wide implementations without increasing computational complexity.

[0085] Distributed MPC system 600 provides several advantages over alternative control strategies. For example, high-level controller 608 can coordinate operation low-level indoor subsystems 632-636 via the load profiles provided to each low-level controller 612- 616. By including a demand charge in the high-level objective function, high-level controller 608 can generate load profiles which stager the operation of low-level indoor subsystems 632-636. In other words, high-level controller 608 can generate load profiles which ensure that low-level indoor subsystems 632-636 do not all consume power at the same time. This allows high-level controller 608 to coordinate operation of low-level indoor subsystems 632-636 and account for the demand charge without requiring communication between low-level indoor controllers 612-6 6, The coupling caused by the presence of a single outdoor subsystem 638 for ail indoor subsystems 632-636 is also addressed by high-level controller 608. Hence, the low-level control problems are completely decoupled such that iterations and communication between low-level controllers 612-616 are not required,

[0086] Data communication between MPC layer 610 and regulatory layer 620 can also be greatly reduced. For example, data communication between MPC layer 610 and regulatory layer 620 can be limited to measurements and setpoints, as shown in FIG. 6. This allows MPC system 600 to be integrated with any existing BMS. High level controller 608 can use aggregate models of each indoor subsystem 632-636 and outdoor subsystem 638 to reduce computational complexity during the high-level optimization. Each low-level indoor controller 612-616 can provide high-level controller 608 with an aggregate disturbance estimate, an aggregate temperature, and aggregate system parameters (e.g., thermal capacitance, heat transfer coefficient, etc.) for the corresponding indoor subsystem 632-636.

[0087] Distributed MPC system 600 can be used to control a variety of different systems including, for example, a chiller plant, air handling units, rooftop units, variable refrigerant flow systems, airside systems, waterside systems, building management systems, and/or other types of systems for which power consumption or thermal energy loads can be allocated to different subsystems. Most building temperature regulation methods do not consider detailed models of VRF equipment or integer decision variables, which decreases the fidelity of energy cost calculations. However, MPC system 600 can include integer variables in the optimization problem to determine when to turn equipment on and off rather than relying on heuristics.

High-Level Model Predictive Controller

[0088] Referring now to FIG. 7, a block diagram illustrating high-level model predictive controller (MPC) 608 in greater detail is shown, according to some embodiments. High- level MPC 608 is shown a communications interface 702 and a processing circuit 704. Communications interface 702 can include wired or wireless interfaces (e.g., jacks, antennas, transmitters, receivers, transceivers, wire terminals, etc.) for conducting data communications with various systems, devices, or networks. For example, communications interface 702 can include an Ethernet card and port for sending and receiving data via an Ethernet-based communications network and/or a WiFi transceiver for communicating via a wireless communications network. Communications interface 702 can be configured to communicate via local area networks or wide area networks (e.g., the Internet, a building WAN, etc.) and may use a variety of communications protocols (e.g., BACnet, IP, LON, etc.).

[0089] Communications interface 702 can be a network interface configured to facilitate electronic data communications between high-level MPC 608 and various external systems or devices (e.g., weather service 604, utilities 606, low-level controllers 612-618, BMS equipment, etc.). For example, high-level MPC 608 can receive weather forecasts from weather service 604, utility rates from utilities 606, and/or load and rate predictions from load/rate predictor 602. High-level MPC 608 can receive measurements from the BMS indicating one or more measured states of the controlled building or campus (e.g., temperature, humidity, electric loads, etc.) and one or more states of outdoor subsystem 638 (e.g., equipment status, power consumption, equipment availability, etc.).

[0090] High-level MPC 608 can receive indoor subsystem disturbance estimates from each low-level indoor controller 612-616. The indoor subsystem disturbance estimates can indicate an estimated thermal energy load for each indoor subsystem 632-636. High-level MPC 608 can receive aggregate system curves, aggregate subsystem parameters, and/or coefficients of performance from each low-level controller 612-618. High-level MPC 608 can use the information received at communications interface 702 to generate load profiles for each indoor subsystem 632-636 and a demand profile for outdoor subsystem 638. High- level MPC 608 can provide the load profiles and the demand profile to low-level controllers 612-618.

[0091] Processing circuit 704 is shown to include a processor 706 and memory 708. Processor 706 can be a general purpose or specific purpose processor, an application specific integrated circuit (ASIC), one or more field programmable gate arrays (FPGAs), a group of processing components, or other suitable processing components. Processor 706 can be configured to execute computer code or instructions stored in memory 708 or received from other computer readable media (e.g., CDROM, network storage, a remote server, etc.).

[0092] Memory 708 can include one or more devices (e.g., memory units, memory devices, storage devices, etc.) for storing data and/or computer code for completing and/or facilitating the various processes described in the present disclosure. Memory 708 can include random access memory (RAM), read-only memory (ROM), hard drive storage, temporar storage, non-volatile memory, flash memory, optical memory, or any other suitable memory for storing software objects and/or computer instructions. Memory 708 can include database components, object code components, script components, or any other type of information structure for supporting the various activities and information structures described in the present disclosure. Memory 708 can be communicably connected to processor 706 via processing circuit 704 and can include computer code for executing (e.g., by processor 706) one or more processes described herein. When processor 706 executes instructions stored in memory 708, processor 706 generally configures high-level MPC 608 (and more particularly processing circuit 704) to complete such activities.

[0093] Still referring to FIG. 7, high-level MPC 608 is shown to include a subsystem temperature modeler 714. Subsystem temperature modeler 714 can generate a temperature model for each indoor subsystem 632-636. The temperature models generated by subsystem temperature modeler 714 can be referred to as bui lding temperature models under the assumption that each indoor subsystem 632-636 represents a separate building. However, the temperature models generated by subsystem temperature modeler 714 can be temperature models for other types of subsystems if indoor subsystems 632-636 represent other types of spaces. Subsystem temperature modeler 714 can generate a temperature model for each indoor subsystem . Although only three indoor subsystems 632-636 are shown in FIG. 6, it should be understood that any number of buildings and indoor subsystems 632-636 may be present. In general, subsystem temperature modeler 714 can generate n b indoor subsystem temperature models, where n b is the total number of buildings and/or indoor subsystems 632-636.

[0094] In some embodiments, subsystem temperature modeler 714 models the

temperature of each indoor subsystem using a building heat transfer model. The dynamics of heating or cooling a single building zone are described by the energy balance:

dT

C— = -H(T - T a ) - Q c + Q other where C is the thermal capacitance of the building zone, H is the ambient heat transfer coefficient for the building zone, T is the temperature of the building zone, T a is the ambient temperature outside the building zone (e.g., the outside air temperature), Q c is the amount of cooling applied to the building zone (i.e., the cooling load), and Q other ls the external load, radiation, or other disturbance experienced by the building zone. In the previous equation, Q c represents heat transfer out of the bui lding zone (i.e., cooling) by the HVAC system and therefore has a negative sign. However, if heating is applied to the building zone rather than cooling, the sign on Q c can be switched to a positive sign such that Q c represents the amount of heating applied to the building zone by the HVAC system (i.e., the heating load),

[0095] The previous equation combines all mass and air properties of the building zone into a single zone temperature. Other heat transfer models which can be used by subsystem temperature modeler 714 include the following air and mass zone models:

, dT z .

^ Z ~ d ~~ ^ az ^ a ~~ " ^ 2 ^ ^ mz ^ m ~~ ~ Qc Q other

where C z and T z are the thermal capacitance and temperature of the air in the building zone, T a is the ambient air temperature, H az is the heat transfer coefficient between the air of the building zone and ambient air outside the building zone (e.g., through external walls of the building zone), C m and T m are the thermal capacitance and temperature of the non-air mass within the building zone, and H mz is the heat transfer coefficient between the air of the building zone and the non-air mass.

[0096] The previous equation combines all mass properties of the building zone into a single zone mass. Other heat transfer models which can be used by subsystem temperature modeler 714 include the following air, shallow mass, and deep mass zone models:

= Haz ( a ~ ¾ + H SZ T S - T,) ..· Q c + Q other C s ^ = H SZ (T Z - T s ) + H ds (T d - T s ) dt

where C z and T z are the thermal capacitance and temperature of the air in the building zone, T a is the ambient air temperature, H az is the heat transfer coefficient between the air of the building zone and ambient air outside the building zone (e.g., through external walls of the building zone), C s and T s are the thermal capacitance and temperature of the shallow mass within the building zone, H sz is the heat transfer coefficient between the air of the building zone and the shallow mass, C d and T d are the thermal capacitance and temperature of the deep mass within the building zone, and H ds is the heat transfer coefficient between the shallow mass and the deep mass. [0097] In some embodiments, subsystem temperature modeler 714 models the

temperature of each indoor subsystem using the following subsystem temperature model:

dT b .

> "Tfff " ~ Hb (Tb — T a )— Q c b -r Q other, b where C b and T b are the thermal capacitance and temperature of the indoor subsystem designated by index b, T a is the ambient air temperature outside indoor subsystem b (e.g., outside air temperature), H b is the heat transfer coefficient between indoor subsystem b and the ambient air, Q c b is the amount of cooling applied to the indoor subsystem by MPC system 600 (i .e., the amount of heat removed from the indoor subsystem), and Q other, b is the external load, radiation, or disturbance experienced by indoor subsystem b. If heating is provided to the indoor subsystem rather than cooling, the sign on Q c b can be switched from a negative sign to a positive sign.

[0098] Subsystem temperature modeler 714 can use the indoor subsystem disturbance estimates received from low-level indoor controllers 612-616 to identify appropriate values of the external disturbance Q other , r eac h indoor subsystem b at each time step of the optimization period. In some embodiments, subsystem temperature modeler 714 uses the weather forecasts from weather service 604 and/or the load and rate predictions provided by load/rate predictor 602 to determine appropriate values for the ambient air temperature T a and/or the external disturbance Q other , b r eac h indoor subsystem b at each time step of the optimization period. Values of C b and H can be specified as parameters of the indoor subsystem b, received from the low-level indoor controller for the indoor subsystem b, received from a user, retrieved from memory 708, or otherwise provided to subsystem temperature modeler 714. Subsystem temperature modeler 714 can generate a indoor subsystem temperature model for each indoor subsystem b, where b = 1 ... n and n b is the total number of indoor subsystems.

[0099] High level MPC 608 is shown to include an outdoor unit demand modeler 722. Outdoor unit demand modeler 722 can generate a model representing the demand on outdoor subsystem 638 as a function of the thermal energy load Q c b allocated to each indoor subsystem b at each time step of the optimization period. In some embodiments, outdoor unit demand modeler 722 uses the following equation to model outdoor unit demand: QlWAC.k ~ ^ Qc.b.k

b=i

where QHVA C .R is tne outdoor unit demand at time step k (e.g., the thermal energy or refrigerant state allocation of outdoor subsystem 638 at time step k) and Q c ,b , k is the thermal energy load allocated to indoor subsystem h at time step k. The previous equation indicates that the total demand Q H v A c , k on the outdoor subsystem 638 is a summation of the thermal energy loads Q c ,b.k allocated to each indoor subsystem b. This equation can be used by high level MPC 608 as an energy balance constraint to ensure that outdoor subsystem 638 generates enough thermal energy to cover the indoor subsystem at each time step k.

[0100] High level MPC 608 is shown to include a constraints modeler 710. Constraints modeler 710 can generate and impose optimization constraints on the optimization procedure performed by high-level optimizer 712. Constraints imposed by constraints modeler 710 can include, for example, equipment capacity constraints and indoor subsystem temperature constraints. In some embodiments, constraints modeler 710 imposes the following constraint:

QliVAC.k — QtiVACmax to ensure that the outdoor unit demand QHVA C M at eacn time ste P k I ' S ess han or equal to the maximum capacity QuvACm x °f outdoor subsystem 638.

[0101 j In some embodiments, constraints modeler 710 imposes constraints on the indoor subsystem temperature T B . For example, constraints modeler 710 can constrain the indoor subsystem temperature T B between a minimum temperature T MIN and a maximum temperature T MAX as shown in the following equation:

T 1 min <— T 1 b <— T 1 max

where the values of T min and T max can be adjusted based on the temperature setpoints of the indoor subsy stem. In some embodiments, constraints modeler 710 automatically adjusts the values of T min and T MAX based on information received from the low-level indoor controller and/or BMS for the indoor subsystem. For example, constraints modeler 710 can use a temperature setpoint schedule and/or occupancy schedule for the indoor subsy stem to automatically adjust the values of T MIN and T MAX for each time step k. This allows constraints modeler 710 to use temperature limits based on the time-varying setpoint temperature range for the indoor subsystem so that the indoor subsystem temperature T b is maintained within time-appropriate temperature limits T min and T max .

[0102] Still referring to FIG. 7, high-level MFC 608 is shown to include an energy cost modeler 720 and a demand charge modeler 718, Energy cost modeler 720 can generate an energy cost model representing the cost of energy consumed by MFC system 600. The cost of energy can include both a per-unit cost of energy resources (e.g., electricity, water, natural gas, etc.) consumed by MFC system 600 during the optimization period and a demand charge based on the maximum power consumption. The demand charge component of the energy cost model can be modeled by demand charge modeler 718 and enforced via demand charge constraints. In some embodiments, the energy cost model accounts for only the energy resources consumed by outdoor subsystem 638. In other embodiments, the energy cost model also accounts for the power consumption of indoor subsystems 622-626, which can be modeled by indoor power consumption modeler 716. Examples of both scenarios are described below.

Example 1 : Energy Cost Model Without Indoor Power Consumption

[0103] In some embodiments, energy cost modeler 720 generates an energy cost model that accounts for the energy consumption of outdoor subsystem 638 without including indoor power consumption. For example, energy cost modeler 720 can model total energy cost during the optimization period using the following equation:

[0104] The first term of the energy cost model accounts for the per unit costs (e.g., S/kWh) of energy consumed during each time step k of the optimization period. In some embodiments, c k is the cost per unit of energy consumed at time step k to satisfy the total outdoor unit demand QuvACk at ti me ste P the parameter r\ tot is the inverse of the coefficient of performance of the aggregate VRF subsystem (e.g., 0.1 < r\ tot ≤ 0.25), and Δ is the duration of time step k. Accordingly, the term f] tot Q HVACik b. represents the total amount of energy consumed (e.g., kWh) during time step k to satisfy the outdoor unit demand QHVAC - Multiplying by the cost c k per unit energy consumed (e.g., $/kWh) yields the total cost (e.g., $) of the energy consumed during time step k. The energy cost model can include a summation of the energy costs during each time step k to determine the total cost of energy consumption over the optimization period.

[0105] The second term of the energy cost model accounts for the demand charge. In some embodiments, c peak is the demand charge rate (e.g., $/kW), Q pea is the peak outdoor unit demand during the demand charge period (e.g., the maximum of Q VAC.I C X an d Vtot i ~ S the inverse of the coeffi cient of performance of the aggregate VRF subsystem.

Accordingly, the term rj tot Q peak represents the peak power consumption to satisfy the peak outdoor unit demand Q peak . Multiplying by the demand charge rate c peak yields the total cost (e.g., $) of the demand charge.

[0106] In some embodiments, demand charge modeler 718 generates demand charge constraints to ensure that Q peak has the appropriate value. If the demand charge period is contained entirely within the optimization period (e.g., between time steps k = 0 and k = N — 1), then the appropriate value of Q peak is simply the maximum of QHVAC during the optimization period. Demand charge modeler 718 can implement the following demand charge constraint;

0≤ Ql-lVAC.k≤ Qpeak to ensure that the peak outdoor unit demand Q peak is always greater than or equal to the outdoor unit demand Q H vAc.k at each time step. This forces the peak outdoor unit demand Qpeak to be at least as large as the maximum outdoor unit demand during the optimization period.

[0107] If the demand charge period begins before the optimization period, it is possible that the maximum value of QuvACk during the demand charge period occurred prior to the beginning of the optimization peri od. Demand charge modeler 718 can implement the following demand charge constraint:

Qpeak,past— Qpeak to ensure that the peak outdoor unit demand Q pea is always greater than or equal to the maximum outdoor unit demand Q pea k,past that occurred during the same demand charge period, even if the maximum outdoor unit demand occurred prior to the beginning of the current optimization period. In some embodiments, demand charge modeler 718 updates Qpeak.past eac h ti me a new maximum outdoor unit demand is set to ensure that the energy cost model accurately represents the demand charge imposed by the power utility.

[0108] High-level optimizer 7 2 can use the energy cost model, demand charge model, indoor subsystem temperature model, outdoor unit demand model, and optimization constraints to formulate an optimization problem. In some embodiments, high-level optimizer 712 seeks to minimize the total cost of energy consumed by outdoor subsystem 638 (i .e., energy cost and demand charge) subject to the indoor subsystem temperature constraints and other constraints provided by the high-level models described herein. For example, high-level optimizer 712 can formulate the high-level optimization problem as:

N-l

ΐηϊη CkVtotQl-IVACk ^ + c peakVtot Qpeak

XM,Qpeak — ί

fc =

subject to the following constraints: Qc.b + Q other, b

0 < QuVACk≤ Qpeak

Qpeak.past≤= QnVAC.ma

1 m.in— 1 b— 1 max

and any refrigerant balance constraints needed to ensure that the amount of refrigerant in each state (e.g., liquid, gas, superheated gas, etc.) remains balanced at each time step k.

)9] In some embodiments, high-level optimizer 712 converts one or more of the , 7 e-identified models and/or constraints to state-space form for use in the high-level optimization problem. For example, high-level optimizer 712 can convert the preceding equations into a discretized state-space model of the form : x k+1 = Ax k + Bu k + B d d k

Jk = Cx k + Du k

where x k is a vector of system states at time step k, u k is a vector of system inputs at time step k, y k is a vector of measurements or system outputs at time step k, d k is a vector of disturbances at time step k, and x k+1 is a vector of (predicted) system states at time k + 1. Table 1 illustrates the variables that can be included in each of these vectors:

Table 1 : Variables in High-Levei Optimization

States x = n = = n b

Inputs u = [QcA T m - = n b

Measurements y = p = = n b

[0110] As shown in Table 1, the system states vector x includes the indoor subsystem temperature T b . In some embodiments, the system states vector x includes a indoor subsystem temperature T b for each of the n b indoor subsystems such that the total number n of variables in the system states vector x is equal to n . The inputs vector u can include the thermal energy load Q Cib allocated to each indoor subsystem b. In some embodiments, the inputs vector u includes a thermal energy load Q Ctb for each of the n b indoor subsystems such that the total number m of variables in the inputs vector u is equal to n b . The disturbance vector d can include the ambient air temperature T a and the estimated disturbance Q 0 cher,b f° r eacn indoor subsystem. In some embodiments, the disturbances vector d includes an estimated disturbance Q ot er, h for each of the n b indoor subsystems and a single ambient air temperature T a such that the total number n d of variables in the disturbances vector d is equal to n b + 1.

[0111] In some embodiments, the measurements vector y is the same as the system states vector X. This indicates that all of the system states are directly measured (i.e., y k = x k ) and the values of the C and D matrices in the state-space model are C = I and D = 0. In other embodiments, the system states x can be constructed or predicted from the

measurements y. For example, high-level MPC 608 can use a Kalman filter or other predictive technique to construct the system states x from the measurements y.

Accordingly, the sy stem states x can be replaced with T b , where the hat notation indicates that such states are predicted. The values of the A, B, C, and D, matrices in the state-space representation can be identified using a system identification technique. Examples of state prediction and system identification techniques which can be used by high-level MPC 608 are described in detail in U.S. Patent No. 9,235,657 titled "System Identification and Model Development" and filed March 13, 2013, the entire disclosure of which is incorporated by reference herein.

Example 2: Energy Cost Model With Indoor Power Consumption

[0112] In some embodiments, energy cost modeler 720 generates an energy cost model that accounts for both the energy consumption of outdoor subsystem 638 and the energy consumption of indoor subsystems 622-626, For example, the energy cost model can account for the power W air b consumed by fans and other types of equipment in indoor VRF units 622-626 to deliver the allocated thermal energy load Q Cib to the indoor subsystem. In some embodiments, the power consumption W air b of each indoor subsystem 632-636 is a function of the thermal energy load Q c b allocated to that indoor subsystem.

[0113] Indoor power consumption modeler 716 can generate an indoor power

consumption model which relates indoor power consumption W air b to thermal energy load Q c b . In some embodiments, indoor power consumption modeler 716 models indoor power consumption using the following equation:

[0114] where W air b is the amount of power consumed by the indoor VRF units 622 of indoor subsystem b to deliver the thermal energy load Q c b . The conversion factor r\ air can be a function of the coefficient of performance of the indoor VRF units 622 (e.g., an inverse of the coefficient of performance). In some embodiments, η αίγ is a constant, which indicates that the relationship between indoor power consumption W air b and thermal energy load Q c b is linear. In other embodiments, n air can be calculated by indoor power consumption modeler 716 as a nonlinear function of load and other parameters using operating data.

[0115] In some embodiments, indoor power consumption modeler 716 calculates the conversion factor r\ air as a function of various system parameters such as the type of indoor VRF unit in the indoor subsystem, the time of day, comfort bounds, ambient conditions, chilled water supply temperature, chilled water supply flow rate, and/or other parameters that characterize indoor subsystems 632-636 or any of the indoor subsystems 632-636, For example, indoor power consumption modeler 716 can collect operating data from indoor VRF units 622 and/or low-level indoor controller 612 and use the operating data to determine an appropriate value of 7] air . [0116] In some embodiments, indoor power consumption modeler 716 calculates r\ air as a function of the thermal energy load Q c and individual fan power models. For example, air at 20 °C can have a density p air and heat capacity C p air as shown in the following equations:

kg kJ

The thermal energy load Q c provided by an airflow can be represented using the following model:

Qc P air ^ air ^-p, air i, room ~~ T supply)

Pair Cp,air {j'room T supply) where V air is the volumetric flow rate of supply air into a building zone, T room is the temperature of the building zone, and T supply is the temperature of the supply air.

Assuming that the supply air temperature suvviy is approximately 55 °F and the room air temperature T room is approximately 72 °F, indoor power consumption modeler 716 can calculate the thermal energy load per unit volume of airflow (e.g., the cooling capacity of the air) as follows:

kJ

11.437

[0117] Indoor power consumption modeler 716 can use this value of cooling capacity Q c /V air and the estimated power consumption per unit volume of a typical indoor VRF unit fan to estimate the value of η αίτ . For example, typical HVAC fans consume approximately 1 horsepower (hp) to provide between 1000 cubic feet per minute (CFM) and 1500 CFM of airflow. These values can be converted to metric values as follows:

11 h hpp \\ /2_ 1 I 1 n8.9 C CFtMM\\ 0U..77445577 k kWW\\ kJ kJ l OOO CFM— 1500 CFM/ V 1 m 3 /s ) \ ίφ / 1 ° m i ~" 1 '58 m-'

Substituting these values into the indoor power consumption model yields: * air " air

kJ kJ kJ

! 05 ... 1.58— = r/ 1 1.437— Vair = 0.091 - 0.14 which indicates that the indoor power consumption W a ir ,b of each indoor subsystem 632- 636 i s approximately 10% of the thermal energy load Q Cib delivered by the indoor subsystem.

[0118] Given that indoor power consumption W air b can be modeled as Va.irQc. b - > energy cost modeler 720 can model total energy cost during the optimization period using the following equation;

[0119] The first portion of the energy cost model accounts for the per unit costs (e.g., $/kWh) of energy consumed by outdoor subsystem 638 during each time step k of the optimization period. In some embodiments, c k is the cost per unit of energy consumed at time step k, A is the duration of time step k, and v lHVAC is the inverse of the coefficient of performance of outdoor subsystem 638 (e.g., VHVAC "" 0 2). The term VHVAC QHVAC represents the amount of power consumption (e.g., kW) by outdoor subsystem 638 during time step k to satisfy the outdoor unit demand QuvACk - Multiplying by the cost c k per unit energy consumed (e.g., $/kWh) and the duration Δ (e.g., hours) yields the total cost (e.g., $) of the energy consumed during time step k by outdoor subsystem 638. The first portion of the energy cost model can be summed across all time steps k = 0 ... N— 1 of the optimization period to determine the total energy consumed by outdoor subsystem 638 over the duration of the optimization period.

[0120] The second portion of the energy cost model accounts for the per unit costs (e.g., $/kWh) of energy consumed by each indoor subsystem during each time step k of the optimization period. As described above, ri air is the inverse of the coefficient of performance of the indoor subsystems (e.g., r/ a - r ~ 0.1) and Q c ,b , k ls the thermal energy load delivered by the indoor subsystem b at time step k. The term airQc,b.k represents the power consumption W air b of the indoor VRF units for subsystem b. The second portion of the energy cost model can be summed across al l indoor subsystems b = 1 ... n b and across all time steps k = 0 ... N— 1 to determine the total power consumption of all indoor subsystems over the duration of the optimization period. Multiplying by the cost c k per unit energy consumed (e.g., $/kWh) and the duration Δ (e.g., hours) yields the total cost (e.g. , $) of the energy consumed by the indoor subsystems over the duration of the optimization period.

[0121] The third portion of the energy cost model accounts for the demand charge. In some embodiments, c peak is the demand charge rate (e.g., $/kW) and W peak is the peak aggregate indoor and outdoor power consumption during the applicable demand charge period. Multiplying by the demand charge rate c peak yields the total cost (e.g., $) of the demand charge. In some embodiments, demand charge modeler 718 generates demand charge constraints to ensure that W peak has the appropriate value. If the demand charge period is contained entirely within the optimization period (e.g., between time steps k = 0 and k = N— 1), then the appropriate value of W peak is the maximum of the combined indoor/outdoor power consumption at any time step k during the optimization period.

Demand charge modeler 718 can implement the following demand charge constraint:

to ensure that the peak power consumption W peak is always greater than or equal to the sum of the outdoor power consumption VHVAC QHVAC and the indoor power consumption Vair∑ =ι Qc,b,k at each ti me step. Thi s forces the peak power consumption W peak to be at least as large as the maximum combined indoor/outdoor power consumption during the optimization period.

[0122] If the demand charge peri od begins before the optimization period, it is possible that the maximum peak power consumption during the demand charge period occurred prior to the beginning of the optimization period. Demand charge modeler 718 can implement the following demand charge constraint:

peak.past ≤ W r peak to ensure that the peak power consumption W peak is always greater than or equal to the maximum power consumption W peak pasi that occurred during the same demand charge period, even if the maximum power consumption occurred prior to the beginning of the current optimization period. In some embodiments, demand charge modeler 718 updates Wpeak. ast eac k ti me a new maximum power consumption is set to ensure that the energy cost model accurately represents the demand charge imposed by the power uti lity.

[0123] High-level optimizer 712 can use the energy cost model, indoor power consumption model, demand charge model, indoor subsystem temperature model, outdoor unit demand model, and optimization constraints to formulate an optimization problem . In some embodiments, high-level optimizer 712 seeks to minimize the total cost of energy consumed by the aggregate VRF system subject to the indoor subsystem temperature constraints and other constraints provided by the high-level models described herein. For example, high-level optimizer 712 can formulate the high-level optimization problem as: min A + c peak W veak

subject to the following constraints:

dT b

Cb ~ ~ Hb (Tb ~~ T a ~~ Qc,b + Qother.b QnvAC.k — ^ Qc,b,k

6 = 1

Wpeak.past -≤ ^peak

0 < QuVACk ~ QuVAC.max

^ min— ^ b— ^ max

and any refrigerant balance constraints, as previously described.

[0124] In some embodiments, high-level optimizer 712 converts one or more of the above-identified models and/or constraints to state-space form for use in the high-level optimization problem. For example, high-level optimizer 712 can convert the preceding equations into a discretized state-space model of the form:

Xk+i = Ax k + Bu k + B d d k

y k = Cx k + Du k where x k is a vector of system states at time step k, u k is a vector of system inputs at time step k, y k is a vector of measurements or system outputs at time step k, d k is a vector of disturbances at time step k, and x +1 is a vector of (predicted) system states at time k + 1. The variables included in each vector can be the same as shown in Table 1 above.

[0125] High-level optimizer 712 can perform an optimization procedure to determine optimal values for each the input variables in the vector u at each time step k of the optimization period. For example, high-level optimizer 712 can determine optimal values for each of the thermal energy loads Q Ci i allocated to each indoor subsystem b at each time step k at each time step k. Each set of thermal energy loads the same indoor subsystem index b forms a load profile for a particular indoor subsystem and includes a load value for each time step k in the optimization period. High-level optimizer 712 can provide the indoor subsystem load profiles to the low-level indoor controllers 612-616.

[0126] In some embodiments, high-level optimizer 712 generates a vector of predicted temperature states f b for each low-level indoor subsystem 632-636. Each vector of predicted temperature states T b can include a predicted temperature state T b k for each time step k during the optimi zation period. Temperature states T b k can be predicted using any of a variety of predictive techniques including, for example, a alman filter as described in U.S. Patent No. 9,235,657. High-level optimizer 712 can provide each vector of predicted temperature states T b to the low-level indoor controller 612-616 for the corresponding low- level indoor subsystem 632-636. In some embodiments, low-level indoor controllers 612- 616 use the predicted temperature states f b to generate zone temperature setpoints that track the predicted temperature states T b k at each time step k.

[0127] In some embodiments, high-level optimizer 7 2 calculates the total demand Qnv A c .k on outdoor subsystem 638 at each time step ic as a summation of the indoor subsystem thermal energy loads Q Ci { at time step k. The set of outdoor unit demand values forms a demand profile for outdoor subsystem 638 and includes a demand value for each time step k in the optimization period. The demand value QHVACM for a particular time step k represents the total demand which must be satisfied by outdoor subsystem 638 at that time step k. High-level optimizer 712 can provide the outdoor unit demand profile to low- level outdoor controller 618. Low-Level Indoor Model Predictive Controller

[0128] Referring now to FIG. 8, a block diagram illustrating low-level indoor model predictive controller (MPC) 612 in greater detail is shown, according to some embodiments. Although only one low-level indoor MPC 612 is shown in detail, it should be understood that any other low-level indoor MPCs in control system 600 (e.g., low-level indoor MPCs 614-616) can include some or all of the same components as low-level indoor MPC 612. Control system 600 can include any number of low-level indoor MPCs, each of which can operate independently to monitor and control a separate low-level indoor subsystem (e.g., indoor subsystems 632-636).

[0129] Low-level indoor MPC 612 is shown a communications interface 802 and a processing circuit 804. Communications interface 802 can include wired or wireless interfaces (e.g., jacks, antennas, transmitters, receivers, transceivers, wire terminals, etc.) for conducting data communications with various systems, devices, or networks. For example, communications interface 802 can include an Ethernet card and port for sending and receiving data via an Ethernet-based communications network and/or a WiFi transceiver for communicating via a wireless communications network. Communications interface 802 can be configured to communicate via local area networks or wide area networks (e.g., the Internet, a building WAN, etc.) and may use a variety of communications protocols (e.g., BACnet, IP, LON, etc.).

[0130] Communications interface 802 can be a network interface configured to facilitate electronic data communications between low-level indoor MPC 612 and various external systems or devices (e.g., weather service 604, high-level MPC 608, indoor VRF units 622, etc.). For example, low-level indoor MPC 612 can receive weather forecasts from weather service 604 and/or load predictions from load/rate predictor 602. Low-level indoor MPC 612 can receive measurements from the BMS indicating one or more measured states of the controlled building or campus (e.g., temperature, humidity, electric loads, etc.) and one or more states of indoor subsystem 632 (e.g., equipment status, power consumption, equipment availability, etc.). Low-level indoor MPC 612 can receive predicted temperature states and/or a load profile from high-level MPC 608. Low-level indoor MPC 612 can use the information received at communications interface 802 to generate zone temperature setpoints each zone of low-level indoor subsystem 632 and/or refrigerant flow setpoints for each indoor VRF unit of low-level indoor subsystem 632. Low-level indoor MPC 612 can provide the zone temperature setpoints and/or refrigerant flow setpoints to indoor VRF units 622.

[0131] Processing circuit 804 is shown to include a processor 806 and memory 808.

Processor 806 can be a general purpose or specific purpose processor, an application specific integrated circuit (ASIC), one or more field programmable gate arrays (FPGAs), a group of processing components, or other suitable processing components. Processor 806 can be configured to execute computer code or instructions stored in memory 808 or received from other computer readable media (e.g., CDROM, network storage, a remote server, etc.).

[0132] Memory 808 can include one or more devices (e.g., memory units, memory devices, storage devices, etc.) for storing data and/or computer code for completing and/or facilitating the various processes described in the present disclosure. Memory 808 can include random access memory (RAM), read-only memory (ROM), hard drive storage, temporary storage, non-volatile memory, flash memory, optical memory, or any other suitable memory for storing software objects and/or computer instructions. Memory 808 can include database components, object code components, script components, or any other type of information structure for supporting the various activities and information structures described in the present disclosure. Memory 808 can be communicably connected to processor 806 via processing circuit 804 and can include computer code for executing (e.g., by processor 806) one or more processes described herein. When processor 806 executes instructions stored in memory 808, processor 806 generally configures low-level indoor MPC 612 (and more particularly processing circuit 804) to complete such activities.

[0133] Still referring to FIG. 8, low-level indoor MPC 612 is shown to include a zone disturbance predictor 824. Zone disturbance predictor 824 can generate a disturbance forecast for each zone i of indoor subsystem 632. Throughout this disclosure, the index i is used to denote individual zones, where i = I ... n z and n z is the total number of zones in a given indoor subsystem. In some embodiments, each zone i is uniquely associated with a particular indoor VRF unit configured to control the temperature of the zone i.

Accordingly, the index i can also denote individual indoor VRF units. The disturbance forecast for zone i can include a vector of disturbance values Q 0 ther , u where each element of the vector Q ot er,i includes a predicted disturbance value Q other , i.k f° r a particular time step k of the optimization period. [0134] Zone disturbance predictor 824 is shown receiving weather forecasts from a weather service 604, In some embodiments, zone disturbance predictor 824 generates the disturbance forecasts as a function of the weather forecasts. In some embodiments, zone disturbance predictor 824 uses feedback from regulatory layer 620 to generate the disturbance forecasts. Feedback from regulator)' layer 620 can include various types of sensory inputs (e.g., temperature, flow, humidity, enthalpy, etc.) or other data relating to the controlled building or campus (e.g., building occupancy data, building electric load, etc.). In some embodiments, zone disturbance predictor 824 uses a deterministic plus stochastic model trained from historical load data to generate the disturbance forecasts. Zone disturbance predictor 824 can use any of a variety of prediction methods to generate the disturbance forecasts (e.g., linear regression for the deterministic portion and an

autoregressive model for the stochastic portion).

[0135] Zone disturbance predictor 824 can predict one or more different types of disturbances for each building zone i. For example, zone disturbance predictor 824 can predict a thermal load resulting from heat transfer between the air within building zone i and outside air through the walls of the building. Zone disturbance predictor 824 can predict a thermal load resulting from internal heat generation within the building zone (e.g., heat generated by electronics in the building zone, heat generated by zone occupants, etc.). In some embodiments, zone disturbance predictor 824 makes disturbance predictions using the predictive techniques described in U.S. Patent Application No. 14/717,593.

[0136] Still referring to FIG. 8, low-level indoor MPC 612 is shown to include a zone temperature modeler 814. Zone temperature modeler 814 can generate a temperature model for each building zone i of indoor subsystem 632. Indoor subsystem 632 can have any number of zones. In some embodiments, the temperature of each zone can be

independently controlled and/or adjusted. Some building zones can exchange heat with each other (e.g., if the building zones are adjacent to one another), whereas other building zones do not directly exchange energy. In general, zone temperature modeler 814 can generate n z zone temperature models, where n z is the total number of zones in indoor subsystem 632.

[0137] In some embodiments, zone temperature modeler 814 models the temperature of each building zone using a zone heat transfer model. The dynamics of heating or cooling a single building zone are described by the energy balance: C - C £ = -H T - T a - Q c + Q other where C is the thermal capacitance of the building zone, H is the ambient heat transfer coefficient for the building zone, T is the temperature of the building zone, T a is the ambient temperature outside the building zone (e.g., the outside air temperature), Q c i s the amount of cooling applied to the building zone (i.e., the cooling load), and Q ot her * s tne external load, radiation, or other disturbance experienced by the building zone. In the previous equation, Qc represents heat transfer out of the building zone (i.e., cooling) by the HVAC system and therefore has a negative sign . However, if heating is applied to the building zone rather than cooling, the sign on Q c can be switched to a positive sign such that Q c represents the amount of heating applied to the building zone by the HVAC system (i.e., the heating load).

[0138] The previous equation combines all mass and air properties of the building zone into a single zone temperature. Other heat transfer models which can be used by zone temperature modeler 814 include the following air and mass zone models:

dT z . . . .

C z —^ — H az (T a — T z ) + H mz (T m — T z )— Q c + Qother

where C z and T z are the thermal capacitance and temperature of the air in the building zone, T a is the ambient air temperature, H az is the heat transfer coefficient between the air of the building zone and ambient air outside the building zone (e.g., through external walls of the building zone), C m and T m are the thermal capacitance and temperature of the non-air mass within the building zone, and H mz is the heat transfer coefficient between the air of the building zone and the non-air mass.

[0139] The previous equation combines all mass properties of the building zone into a single zone mass. Other heat transfer models which can be used by zone temperature modeler 814 include the following air, shallow mass, and deep mass zone models:

H az (T a - T z ) + H SZ (T S - T z ) - Q c + Q other

H SZ (T Z - T s ) + H ds (T d - T s ) where C z and T z are the thermal capacitance and temperature of the air in the building zone, T a is the ambient air temperature, H az is the heat transfer coefficient between the air of the building zone and ambient air outside the building zone (e.g., through external walls of the building zone), C s and T s are the thermal capacitance and temperature of the shallow mass within the building zone, H sz is the heat transfer coefficient between the air of the building zone and the shallow mass, C d and T d are the thermal capacitance and temperature of the deep mass within the building zone, and H ds is the heat transfer coefficient between the shallow mass and the deep mass.

[0140] In some embodiments, zone temperature modeler 814 models the temperature of each building zone using the following zone temperature model: c, £ < ± : .... n . (T . β . . ( Γ . ... J)) - Q + Q other : where Q and T t are the thermal capacitance and temperature of the building zone designated by zone index i, T a is the ambient air temperature outside zone i (e.g., outside air temperature), H t is the heat transfer coefficient between zone i and the ambient air, Q c i is the amount of cooling applied to the building zone i by MPC system 600 (i.e., the amount of heat removed from the zone), and Q ot her,i * s tne external load, radiation, or disturbance experienced by zone i. If heating is provided to the zone rather than cooling, the sign on Q Ct i can be switched from a negative sign to a positive sign.

[0141 ] The parameter ?,;,· characterizes the degree of coupling between zone i and another zone j (e.g., a building zone adjacent to zone i). If zones ί and j are not adjacent and/or do not directly exchange heat with each other, zone temperature modeler 814 can set the value of βΐ} equal to zero. The zone temperature model can include a summation of the heat transfers between building zone i and each other building zone ≠ i as a function of the zone temperatures 1 and 7 and the coupling coefficient β^ . In other embodiments, heat transfer between zones can be accounted for using the external disturbance estimate

Q other, i -

[0142] Zone temperature modeler 814 can use the zone di sturbance estimates received from zone disturbance predictor 824 to identify appropriate values of the external disturbance Q ot her,i for each zone i at each time step of the optimization period. In some embodiments, zone temperature modeler 814 uses the weather forecasts from weather service 604 and/or the load and rate predictions provided by load/rate predictor 602 to determine appropriate values for the ambient air temperature T a and/or the external disturbance Q other, i f° r eacn zone i at eacn time ste P of the optimization period. Values of C: and Hi can be specified as parameters of the zone i, received from the BMS that manages the building zone i, received from a user, retrieved from memory 808, or otherwise provided to zone temperature modeler 814. Zone temperature modeler 814 can generate a zone temperature model for each zone i, where i = 1 ... n z and n z is the total number of zones.

[0143] Still referring to FIG. 8, low-level indoor MPC 612 is shown to include a subsystem load modeler 816. Subsystem load modeler 816 can generate a model of the total amount of thermal energy delivered to the indoor subsystem Q tota i (e.g., the total amount of heating or cooling delivered to the subsystem) as a function of the individual zone loads Q c i , In some embodiments, subsystem load modeler 816 models the total subsystem load using the following equation: d Qtotai " 1 A

dt c *

1=1

where Qtotai ls the total amount of thermal energy (e.g., heating or cooling) delivered to the indoor subsystem and Qc , i * s the rate at which thermal energy is being delivered (units of power) of a particular zone i. The indoor subsystem load model can sum the thermal energy loads Q Cii of each building zone to calculate the total indoor subsystem thermal energy load which is the derivative of the total amount of thermal energy Q tota i delivered to the indoor subsystem.

[0144] Low-level indoor MPC 612 is shown to include a cooling/heating duty modeler 820. Cooling/heating duty modeler 820 can generate one or more models that define the thermal energy load Q Cii of each building zone as a function of the zone temperature T t and a zone setpoint u t as shown in the following equation:

The models generated by cooling/heating duty modeler 820 can be used as optimization constraints to ensure that the thermal energy load Q c i is not reduced to a value that would cause the zone temperature T L to deviate from an acceptable or comfortable temperature range.

[0145] In some embodiments, the zone setpoint w £ includes an operating mode setpoint z, : (e.g., heating or cooling) and a refrigerant flow setpoint rn £ . For example, the zone setpoint Ui can be represented as follows:

' Z; where the variable z t denotes the operating mode of the indoor VRF unit for building zone ί and the variable rrtj denotes the refrigerant flow rate setpoint for the indoor VRF unit for building zone i. In some embodiments, the operating mode z t is a binary variable, as shown in the following equation:

_ fl Cooling

i ~~ (0 Heating (Not Cooling) where a value of Z; = 1 indicates that the operating mode is cooling, whereas a value of Z; = 0 indicates that the operating mode is heating or not cooling.

[0146] In some embodiments, cooling/heating duty modeler 820 relates zone thermal energy load Q c i (i.e., the cooling duty or heating duty of building zone i) to refrigerant flow i using the following model :

A .... \ Ci iA T i) · m t if z: = 1 where is a conversion factor between zone cooling duty (i.e., zone thermal energy- load Q C: i when the operating mode is cooling) and the refrigerant flow m and a i>h (Ti) is a conversion factor between zone heating duty (i.e. , zone thermal energy load ) Ci ; when the operating mode is heating) and the refrigerant flow In some embodiments, both conversion factors ¾ c (7'i) and a iih (Ti) are a function of the zone temperature Tf. The relationships between zone temperature ' J and the conversion factors α ί (Τ ) and a iih ( can be predefined such that cooling/heating duty modeler 820 can calculate the values of a i , c Ti and a iih (Ti) based on a measured or estimated zone temperature T t . In other embodiments, one or both conversion factors iiC (Ti) and a i:h (T:) can have constant values, in which case the cooling/heating duty model can be formulated as a mixed integer linear program (MILP). [0147] In some embodiments, the zone setpoint u t is a zone temperature setpoint sp i , Cooling/heating duty modeler 820 can relate zone thermal energy load Q c i to the zone temperature T t and the zone temperature setpoint T sp i using multiple models. For example, cooling/heating duty modeler 820 can use a model of the zone regulator}' controller to determine the control action performed by the controller as a function of the zone temperature T L and the zone temperature setpoint T sp i . An example of such a zone regulator}' controller model is shown in the following equation;

where ν αίΓιί is the rate of airflow to building zone i (i.e., the control action). The function f can be identified from data. For example, cooling/heating duty modeler 820 can collect measurements of v airii and έ and identify the corresponding value of T sp i .

Cooling/heating duty modeler 820 can perform a system identification process using the collected values of ν αίΤιί , Γ £ , and T sp i as training data to determine the function f x that defines the relationship between such variables.

[0148] Cooling/heating duty modeler 820 can use an energy balance model relating the control action ν αίγ to the zone thermal energy load Q Cii , as shown in the following equation:

where the function f 2 can be identified from training data. Cooling/heating duty modeler 820 can perform a system identification process using collected values of v aiTii and Q Cii to determine the function f 2 that defines the relationship between such variables.

[0149] In some embodiments, a linear relationship exists between Q c i and ν !λ\χ χ.

Assuming an ideal proportional-integral (PI) controller and a linear relationship between Q Ci i and v air i , a simplified linear controller model can be used to define the thermal energy load Q Cii of each building zone as a function of the zone temperature T L and the zone temperature setpoint T sp i . An example of such a model is shown in the following equations: where Q SSii is the steady-state rate of heating or cooling rate, K c i is the scaled zone PI controller proportional gain, ¾ is the zone PI controller integral time, and is the setpoint error (i.e., the difference between the zone temperature setpoint T i sp and the zone temperature T sp ). Saturation can be represented by constraints on Q c i . If a linear model is not sufficiently accurate to model the PI controller and heat transfer in the indoor VRF unit for zone i, a nonlinear heating/cooling duty model can be used instead.

[0150] Advantageously, modeling the regulatory controllers (e.g., zone PI controllers) in the low-level optimization problem allows low-level indoor IviPC 612 to use the dynamics of the regulatory controllers when determining the optimal temperature setpoints. In some embodiments, the responses of the regulatory controllers can be sluggish. For example, it can take some zones up to an hour to reach a new temperature setpoint. Using the dynamics of the regulatory controllers in the low-level MPC problem allows low-level indoor MPC 612 to consider the time between control action and effect such that optimal temperature setpoints can be selected in view of time-varying energy prices.

[0151] Still referring to FIG. 8, low-level indoor MPC 612 is shown to include a constraints modeler 810. Constraints modeler 810 can generate and impose optimization constraints on the optimization procedure performed by low-level optimizer 812,

Constraints imposed by constraints modeler 810 can include, for example, equipment capacity constraints and zone temperature constraints. In some embodiments, constraints modeler 810 imposes constraints on the zone temperature Ί\. For example, constraints modeler 810 can constrain the zone temperature 'J between a minimum temperature T min and a maximum temperature T max as shown in the following equation:

T 1 mi■n <— r 1 1. <— r 1 max

where the values ot ' T min and T max can be adjusted based on the temperature setpoints of the indoor subsystem,

[0152] In some embodiments, constraints modeler 810 automatically adjusts the values of T min and T max based on information received from the BMS for the building zone. For example, constraints modeler 8 0 can use a temperature setpoint schedule and/or occupancy schedule for the building zone to automatically adjust the values o£ T min and T max for each time step k. This allows constraints modeler 810 to use temperature limits based on the time-varying setpoint temperature range for the zone so that the zone temperature T £ is maintained within time-appropriate temperature limits T min and T max . [0153] In some embodiments, constraints modeler 810 imposes a constraint to ensure that the total indoor subsystem load during any time step k is no greater than the thermal energy- load allocated to the indoor subsystem by high-level MPC 608. For example, constraints modeler 810 can impose the constraint:

Qtocal,k+l ~ Qtotal.k ^

^ ^ Vc.b.k. where Q to tai,k+i * s tne tota ^ indoor subsystem energy consumed at time step k + 1, Qtotal.k is the total indoor subsystem energy consumed at time step k, Q c ,b.k is the thermal energy- load allocated to the indoor subsystem b by high-level MPC 608, and Δ is the duration of each time step. The left side of the equation represents the indoor subsystem thermal energy load during time step k (i.e., the change in total thermal energy delivered between consecutive time steps divided by the time step duration), whereas the right side of the equation represents the thermal energy load allocated to indoor subsystem b during time step k by high-level MPC 608.

[0154] In some embodiments, constraints modeler 810 imposes an additional constraint to ensure that the total amount of thermal energy delivered does not decrease between consecutive time steps, as shown in the following equation:

Qtotal.k+l ~ Qtotal.k≥ 0

Since Q to tai,k+i * s a summation of the amount of thermal energy delivered up to time step k + 1, this constraint prevents low-level optimizer 812 from selecting a negative value for the thermal energy load Q Cii at time step k. In other words, the rate at which thermal energy- is delivered (i.e., Q Cii ) can add to the total amount of thermal energy delivered over the optimization period, but cannot subtract from the total amount of thermal energy delivered.

[0155] Low-level optimizer 812 can use the zone temperature models, indoor subsystem load model, cooling/heating duty model, and optimization constraints to formulate an optimization problem. In some embodiments, the low-level optimization problem seeks to minimize the total amount of thermal energy- Q to tai.N use d by the indoor subsystem 632 over the optimization period subject to the zone temperature constraints and other constraints provided by the low-level models described herein. For example, low-level optimizer 812 can formulate the low-level optimization problem as: m x,iun Qtotal.N subject to the following constraints:

1*1 dQ total 1 A

~ Ίΐ = L ί==1 Qc *

T 1 mm■ <

— T 1 1. <

— τ 1 max

Qtotal,k+l "" Qtotal.k _

c,h,k

Δ :

Qtotal.k+1 ~ Qtotal.k≥ 0

where the function / is defined according to relationships between the zone thermal energy- load Q c i and the zone setpoint i½ (e.g., zone temperature setpoint T sp i or operating mode z, and refrigerant flow rate τη έ ) as previously described.

[0156] In some embodiments, low-level optimizer 812 converts one or more of the above- identified models and/or constraints to state-space form for use in the low-level

optimization problem. For example, low-level optimizer 812 can convert the preceding equations into a discretized state-space model of the form: x k+1 = Ax k + Bu k + B d d k

k = x k + Du k where x k is a vector of system states at time step k, i½ is a vector of system inputs at time step k, y k is a vector of measurements or system outputs at time step k, d k is a vector of disturbances at time step k, and x k+1 is a vector of (predicted) system states at time k + 1. Table 2 illustrates the variables that can be included in each of these vectors:

Table 2: Variables in Low-Level Optimization

States X = ί Τ ί Q QtotalY n = 2n z + 1

Inputs U = n z

Measurements y = [Ti QtotalY p = n z + 1

[0157] As shown in Table 2, the system states vector x includes the zone temperature the integral of the zone tracking error i ;, and the total thermal energy delivered to the indoor subsystem. In some embodiments, the system states vector x includes a zone temperature T L and an integrated zone tracking error e t for each of the n z zones and single total thermal energy value such that the total number n of variables in the system states vector x is equal to 2rc z 4- 1. The inputs vector u can include the zone setpoint u t (e.g., zone temperature setpoint T sp i or operating mode z t and refrigerant flow rate m . In some embodiments, the inputs vector u includes a zone setpoint u L for each of the n z zones such that the total number m of variables in the inputs vector u is equal to n z .

[0158] In some embodiments, the measurements vector y is the same as the system states vector x, but without the integrated zone tracking error β έ . This indicates that the zone temperature T L and the total amount of thermal energy delivered Q total are directly measured. The value of the integrated zone tracking error e £ can be calculated from the difference between T iiSp and T L - . The disturbance vector d can include the ambient air temperature T a , the estimated disturbance Q ot er,i f° r eac ^ zone, and the steady-state rate of heating/cooling Q ss i for each zone. In some embodiments, the disturbances vector d includes an estimated disturbance Q ot her,i an ^ a steady-state rate of heating/cooling Q ss i for each of the n z indoor subsystems and a single ambient air temperature T a such that the total number n d of variables in the disturbances vector d is equal to n z + 1.

[0159] In some embodiments, the system states x can be constructed or predicted from the measurements y. For example, low-level indoor MPC 612 can use a alman filter or other predictive technique to construct the system states x from the measurements y. The values of the A, B, C, and D, matrices in the state-space representation can be identified using a system identification technique. Examples of state prediction and system identification techniques which can be used by low-level indoor MPC 612 are described in detail in U.S. Patent No. 9,235,657.

[0160] Still referring to FIG. 8, low-level indoor MPC 612 is shown to include a model aggregator 818. Model aggregator 818 can generate aggregate values for various indoor subsystem parameters and/or variables used in the low-level optimization. For example, model aggregator 818 can generate an aggregate subsystem temperature T b for the low-level indoor subsystem by aggregating the individual zone temperatures T of each zone in the subsystem. In some embodiments, model aggregator 818 generates the aggregate subsystem temperature T b using the following equation; τ b, where C t is the thermal capacitance of zone i and T L is the temperature of zone i. The numerator of the previous equation represents the total amount of heat in the subsystem, whereas the denominator represents the total thermal capacitance of the subsystem. Both quantities are summed across ail subsystem zones i = 1 ... n z . Model aggregator 818 can divide the total amount of heat by the total thermal capacitance to estimate an average subsystem temperature T b . Model aggregator 818 can calculate an aggregate subsystem temperature T b k for each time step k of the optimization period.

[0161] Model aggregator 818 can calculate aggregate values for other subsystem parameters or variables such as the subsystem thermal capacitance C b , the subsystem heat transfer coefficient H b , and the estimated subsystem disturbance Qother,b - * n some embodiments, model aggregator 818 calculates the aggregate values for these variables and parameters using the following equations:

where the subsystem thermal capacitance C is the summation of the zone thermal capacitance Q values for each subsystem zone, the subsystem heat transfer coefficient H b is the summation of the zone heat transfer coefficients /j values for each subsystem zone, and the estimated subsystem disturbance Q other, b * s tne summation of the estimated subsystem disturbances Q other , i f° r eacn subsystem zone. Model aggregator 818 can calculate aggregate values of C b k , H k , and Q other, b.k or eacn time step k of the optimization period.

[0162] In some embodiments, model aggregator 8 8 provides the aggregate subsystem parameters and variables T b , C b , H b , and Q other, b to high-level MPC 608. High-level MPC 608 can use such values as inputs to the high-level models, constraints, and optimization function used in the high-level optimization. Advantageously, the model aggregation performed by model aggregator 818 helps to reduce the amount of information exchanged between each low-level indoor MPC 612-616 and high-level MPC 608. For example, each low-level indoor MPC 612-616 can provide high-level MPC 608 with the aggregate values described above rather than individual values of such variables and parameters for each building zone. [0163] Still referring to FIG. 8, low-level indoor MPC 612 is shown to include a temperature tracker 822. In some embodiments, temperature tracker 822 performs an alternative optimization which can supplement or replace the low-level optimization performed by low-level optimizer 812. Rather than minimizing the total thermal energy Qtotai a used by the low-level indoor subsystem, temperature tracker 822 can generate zone temperature setpoints T sp i which track the predicted subsystem temperature states T b k generated by high-level MPC 608 as a result of the high-level optimization. For example, high-level MPC 608 can calculate the subsystem temperature states T b k for each low-level indoor subsystem 632-636 predicted to result from the load profiles generated by high-level MPC 608. As described above, the predicted temperature states f b _ k can be calculated using a Kalman filter or any other type of state prediction technique. High-level MPC 608 can provide the predicted temperature states† b>k to each low-level indoor MPC 612-616 for use in the temperature tracking process.

[0164] Temperature tracker 822 is shown receiving the predicted temperature states f k via communications interface 802. Temperature tracker 822 can also receive the aggregate subsystem temperatures T b>k generated by model aggregator 818. Temperature tracker 822 can formulate an objective function which seeks to minimize the error between the aggregate subsystem temperatures T b>k and the predicted temperature states f bik , as shown in the following equation:

where μ is a small penalty factor applied to the total amount of thermal energy Q to tai,N use d by the indoor subsystem over the optimization period. The value of μ can be adjusted to increase or decrease the weight assigned to the total amount of thermal energy Q to tai,N relative to the temperature tracking error.

[0165] Temperature tracker 822 can use the previous equation as the objective function in an optimization procedure to determine optimal values for the zone temperature setpoints T sp i . The optimization performed by temperature tracker 822 can be similar to the optimization performed by low-level optimizer 812, with the exception that temperature tracker 822 is not constrained by the load profile provided by high-level MPC 608 and seeks to optimize a different objective function. For example, temperature tracker 822 can minimize the objective function: + f*-Qcotai.N

subject to the following constraints:

(IT- \ ~ 1

^ i ~dt ~ ~ ~~ / . ftij i ~~ Ό) ~~ Qc,i + Q other. i

J≠l

Qtotal,k+l Qtotal.k ~ 0

<>,,,· - Γ(7 ·, u where the function / is defined according to relationships between the zone thermal energy load Q c i and the zone setpoint u. L (e.g., zone temperature setpoint T sp L or operating mode z t and refrigerant flow rate rrti) as previously described.

[0166] In some embodiments, temperature tracker 822 converts one or more of the above-identified models and/or constraints to state-space form for use in the low-level optimization problem . For example, temperature tracker 822 can convert the preceding equations into a discretized state-space model of the form: x k+1 = Ax k + Bu k + B d d k

Jk = Cx k +

where x k is a vector of system states at time step k, u k is a vector of system inputs at time step k, y k is a vector of measurements or system outputs at time step k, d k is a vector of disturbances at time step fc, and x k+1 is a vector of (predicted) system states at time k + 1. The variables included in each vector can be the same as shown in Table 2 above.

Flow Diagrams

[0167] Referring now to FIG. 9, a flow diagram 900 illustrating a model predictive control technique which can be performed by MFC system 600 is shown, according to some embodiments. Flow diagram 900 is shown to include performing a high-level optimization at a high-level model predictive controller (MPC) to generate an optimal load profile for each of a plurality of indoor subsystems in a variable refrigerant flow (VRF) system (block 902). In some embodiments, the high-level optimization is performed by high-level MPC 608, as described with reference to FIGS. 6-7. For example, the high-level optimization can include generating a high-level energy cost function defining the energy cost as a function of a outdoor unit demand profile QHVAC - ^ N some embodiments, the outdoor unit demand profile QHVAC indicates a thermal energy or refrigerant state allocation of the outdoor subsystem at each of a plurality of time steps k in an optimization period.

[0168] In some embodiments, high-level MPC 608 generates an energy cost function that accounts for the per-unit costs of energy consumption in outdoor subsystem 638 and the demand charge, but does not account for energy consumption in indoor subsystems 632- 636. An example of such an energy cost function is shown in the following equation:

Energy Cost

[0169] The first term of the energy cost function accounts for the per-unit costs (e.g., $/k\Vh) of energy consumed during each time step k of the optimization period. In some embodiments, c k is the cost per unit of energy consumed at time step k to satisfy the total outdoor unit demand QHVACU at time step k, the parameter η ίοί is the inverse of the coefficient of performance of the aggregate VRF ' system (e.g., 0.1≤ η ΐ0(: ≤ 0.25), and Δ is the duration of time step k. Accordingly, the term r] tot Q HVACik represents the total amount of energy consumed (e.g., kWh) during time step k to satisfy the outdoor unit demand

QHVAC , k - Multiplying by the cost c k per unit energy consumed (e.g., $/kWh) yields the total cost (e.g., $) of the energy consumed during time step k. The energy cost function can include a summation of the energy costs during each time step k to determine the total cost of energy consumption over the optimization period.

[0170] The second term of the energy cost function accounts for the demand charge. In some embodiments, c peak is the demand charge rate (e.g., $/kW), Q pea i { is the peak outdoor unit demand during the demand charge period (e.g., the maximum ΐ Q HYAC K ), and η ΐοί is the inverse of the coefficient of performance of the aggregate VRF ' system. Accordingly, the term r] tot Q peak represents the peak power consumption to satisfy the peak outdoor unit demand Q pea k - Multiplying by the demand charge rate c peak yields the total cost (e.g., $) of the demand charge.

[0171 ] In some embodiments, high-level MPC 608 generates an energy cost function that accounts for the per-unit costs of energy consumption in outdoor subsystem 638, the demand charge, and the energy consumption in indoor subsystems 632-636. An example of such an energy cost function is shown in the following equation:

Energy Cost = A + c peak W peak

[0172] The first portion of the energy cost function accounts for the per unit costs (e.g., $/kWh) of energy consumed by outdoor subsystem 638 during each time step k of the optimization period. In some embodiments, c k is the cost per unit of energy consumed at time step k, A is the duration of time step fe, and r\ HVAC is the inverse of the coefficient of performance of outdoor subsystem 638 (e.g., T}HVAC ~ 0-2). The term VHYAC QUVACK represents the amount of power consumption (e.g., kW) by outdoor subsystem 638 during time step k to satisfy the outdoor unit demand QjwAc.k - Multiplying by the cost c k per unit energy consumed (e.g., $/kWh) and the duration Δ (e.g., hours) yields the total cost (e.g., $) of the energy consumed during time step k by outdoor subsystem 638. The first portion of the energy cost function can be summed across all time steps k = 0 ... N— 1 of the optimization period to determine the total energy consumed by outdoor subsystem 638 over the duration of the optimization period.

[0173] The second portion of the energy cost function accounts for the per unit costs (e.g., S/kWh) of energy consumed by each indoor subsystem during each time step k of the optimization period. As described above, η αίγ is the inverse of the coeffi cient of performance of the indoor subsystems (e.g., ?j ai - r ~- 0.1 ) and Q C:b:k is the thermal energy load delivered by the indoor subsystem for indoor subsystem h at time step k. The term

VairQc,b,k represents the power consumption W a ir , h of the indoor VRF units for indoor subsystem b. The second portion of the energy cost function can be summed across all indoor subsystems b = 1 ... n b and across all time steps k = 0 ... N— 1 to determine the total power consumption of ail indoor subsystems over the duration of the optimization period. Multiplying by the cost c k per unit energy consumed (e.g., $/kWh) and the duration Δ (e.g., hours) yields the total cost (e.g., $) of the energy consumed by the indoor subsystems over the duration of the optimization period.

[0174] The third portion of the energy cost function accounts for the demand charge. In some embodiments, c peak is the demand charge rate (e.g., $/kW) and W peak is the peak aggregate power consumption during the applicable demand charge period. Multiplying by the demand charge rate c peak yields the total cost (e.g., $) of the demand charge.

[0175] In some embodiments, performing the high-level optimization in block 902 includes using a outdoor unit demand model to define the outdoor unit demand profile QHVAC as a function of the plurality of indoor subsystem load profiles Q CIB . Each indoor subsystem load profile Q CIB can indicate a thermal energy allocation to one of the indoor subsystems at each of the plurality of time steps.

[0176] In some embodiments, the outdoor unit demand model represents the demand on outdoor subsystem 638 as a function of the thermal energy load Q Cib allocated to each indoor subsystem at each time step of the optimization period. An example of such an outdoor unit demand model is shown in the following equation:

QnVAC.k = ^ Qc,b,k

b=i

where QHVAC, k ¾ s tn e outdoor unit demand at time step k (e.g., the thermal energy or refrigerant state allocation of outdoor subsystem 638 at time step k), Q CIBIK is the thermal energy load allocated to indoor subsystem b at time step k, and Q s toraqe,k ls tne amount of thermal energy being stored in the TES tanks during time step k. The previous equation indicates that the total demand Q H vAc,k on * ne outdoor subsystem 638 is a summation of the thermal energy loads Q CI I allocated to each indoor subsystem b. This equation can be used by high-level MPC 608 as an energy balance constraint to ensure that outdoor subsystem 638 generates enough thermal energy to cover the indoor subsystem loads at each time step k.

[0177] In some embodiments, the high-level optimization in block 902 includes generating an indoor subsystem temperature model for each of the plurality of indoor subsystems. Each indoor subsystem temperature model can define a relationship between the thermal energy allocation Q C B to an indoor subsystem and a temperature T B of the indoor subsystem. An example of such an indoor subsystem temperature model is shown in the following equation:

dT b .

> " ~ H b (T b — T a )— Q c b -r Q other, b where C b and T b are the thermal capacitance and temperature of the indoor subsystem designated by index b, T a is the ambient air temperature outside indoor subsystem b (e.g., outside air temperature), H b is the heat transfer coefficient between indoor subsystem b and the ambient air, Q c b is the amount of cooling applied to the indoor subsystem by MPC system 600 (i.e., the amount of heat removed from the indoor subsystem), and Q other, b is the external load, radiation, or disturbance experienced by the indoor subsystem b. If heating is provided to the indoor subsystem rather than cooling, the sign on Q c b can be switched from a negative sign to a positive sign.

[0178] The high-level optimization can use the indoor subsystem disturbance estimates received from low-level indoor controllers 612-616 to identify appropriate values of the external disturbance Qother ,b r eacn indoor subsystem b at each time step of the optimization period. In some embodiments, the high-level optimization uses the weather forecasts from weather service 604 and/or the load and rate predictions provided by load/rate predictor 602 to determine appropriate values for the ambient air temperature T a and/or the external disturbance Q 0 ther ,b r eac h indoor subsystem b at each time step of the optimization period. Values of C b and H can be specified as parameters of the indoor subsystem b, received from the low-level indoor controller for the indoor subsystem b, received from a user, retrieved from memory, or otherwise provided to high-level MPC 608. The high-level optimization can include generating a temperature model for each indoor subsystem b, where b = 1 ... n and n b is the total number of indoor subsystems.

[0179] In some embodiments, performing the high-level optimization in block 902 includes optimizing the energy cost and the plurality of indoor subsystem load profiles subject to constraints provided by the outdoor unit demand model and each indoor subsystem temperature model. The high-level optimization can use the energy cost model, demand charge model, indoor subsystem temperature model, outdoor unit demand model, and optimization constraints to formulate an optimization problem.

[0180] In some embodiments, the high-level optimization seeks to minimize the total cost of energy consumed by outdoor subsystem 638 (i.e., energy cost and demand charge) subject to the indoor subsystem temperature constraints and other constraints provided by the high-level models described herein. For example, the high-level optimization can formulate the high-level optimization problem as:

JV-l

min } c k T] tot Q HVAC k Δ + c veak r\ tot Q veak subject to the following constraints:

dT b . , . . . _ .

Q b ^ __—H b ( T b — T a )— Q c b + Q ot h.er, b

ds

a s + Qstoraae

dt

b-

QtsVACk — 2^ Qc,b,k + Q storage, k

6 = 1

0 < QHVAC I≤ Qpeak

Qpeak. past — Qpeak — QHV ' AC, max

0 < S k ≤ S max

Tjnin — " ^b

[0181] In some embodiments, the high-level optimization seeks to minimize the total cost of energy consumed by the aggregate V F system subject to the indoor subsystem temperature constraints and other constraints provided by the high-level models described herein. For example, the high-level optimization can formulate the high-level optimization problem as: Qc.b.k Δ + C peak W veak

subject to the following constraints:

dT b

Cb = ~ Hb (Tb ~~ T a ~~ Qc,b + Qother.b

ds

—j-^ — — (IS + Qstorage

On

Qm AC. k— ^ Qc,b,k + Qstorage,k

b=l η η ·

0 < [ HVAcQHVACk + Vair ^ Qc.b.k |≤ ^peak

b=i

Wpeak.past — ^pe k

0 < QjiVACk — QnVACmax

0≤ S k ≤ S max

T 1 m.i■n <— T 1 b, <— T 1 max

[0182] Still referring to FIG. 9, flow diagram 900 is shown to include providing the optimal indoor subsystem load profiles Q Cib from the high-level MFC to a plurality of low- level indoor MFCs (block 904). Each load profile Q c b can be sent from high-level MFC 608 to one of low-level indoor MFCs 612-616, as shown in FIG. 6. In some embodiments, each low-level indoor MFC is configured to monitor and control a particular indoor subsystem. Each low-level indoor MFC can receive the optimal subsystem load profile for the indoor subsystem monitored and controlled by that low-level indoor MFC.

[0183] Flow diagram 900 is shown to include performing a low-ievei optimization at each of the low-level indoor MFCs to generate optimal refrigerant flow setpoints for each indoor VRF unit of the indoor subsystem (block 906). In some embodiments, the low-level optimization in block 906 includes generating a zone temperature model for each zone i of each indoor subsystem. The zone temperature model can define a relationship between the temperature T t of the zone and the thermal energy load profile Q c i for the zone. An example of such a zone temperature model is shown in the following equation:

dT: -1 , x .

C i -£ = ~H i( i " T ^ -∑ ·- /) ~ - Qc,i + Qother,i

j-M

where C l and T t are the thermal capacitance and temperature of the building zone designated by zone index i, T a is the ambient air temperature outside zone i (e.g., outside air temperature), H, is the heat transfer coefficient between zone i and the ambient air, Q c i is the amount of cooling applied to the building zone i by MPC system 600 (i.e., the amount of heat removed from the zone), and Q ot her,i l " s tne external load, radiation, or disturbance experienced by zone i. If heating is provided to the zone rather than cooling, the sign on Q Ci i can be switched from a negative sign to a positive sign. [0184] The parameter characterizes the degree of coupling between zone i and another zone j (e.g., a building zone adjacent to zone i). If zones i and j are not adjacent and/or do not directly exchange heat with each other, zone temperature modeler 814 can set the value of equal to zero. The zone temperature model can include a summation of the heat transfers between building zone i and each other building zone ≠ i as a function of the zone temperatures T t and 7) and the coupling coefficient β^ . In other embodiments, heat transfer between zones can be accounted for using the external disturbance estimate

Q other, i -

[0185] The low-level optimization can include using the zone disturbance estimates received from zone disturbance predictor 824 to identify appropriate values of the external disturbance Q 0 ther,i f° r eacn zone 1 at eacn time ste P °f the optimization period. In some embodiments, the low-level optimization uses the weather forecasts from weather service 604 and/or the load and rate predictions provided by load/rate predictor 602 to determine appropriate values for the ambient air temperature T a and/or the external disturbance

Q other, ί f° r eacn zone 1 at each time step of the optimization period. Values of Q and H £ can be specified as parameters of the zone i, received from the BMS that manages the building zone i, received from a user, retrieved from memory 808, or otherwise provided to zone temperature modeler 814.

[0186] In some embodiments, the low-level optimization in block 906 includes generating a model of the total amount of thermal energy delivered to the indoor subsystem Q to tai (e.g., the total amount of heating or cooling delivered to the indoor subsystem) as a function of the individual zone loads Q Cii . In some embodiments, the low-level optimization includes modeling the total indoor subsystem load using the following equation:

n z

dQ otal ^ A

dt = L ^

i=i

where Qtotai ^ s the total amount of thermal energy (e.g., heating or cooling) delivered to the indoor subsystem and Q Cii is the rate at which thermal energy is being delivered (units of power) of a particular zone i . The indoor subsystem load model can sum the thermal energy loads Q c i of each building zone to calculate the total indoor subsystem thermal energy load dg ° t t , which is the derivative of the total amount of thermal energy

<2 totai delivered to the indoor subsystem. [0187] In some embodiments, the low-level optimization includes generating one or more models that define the thermal energy load Q Cii of each building zone as a function of the zone temperature T t and the zone setpoint U; as shown in the following equation:

where the function f is defined according to relationships between the zone thermal energy load Q Cii and the zone setpoint w- (e.g., zone temperature setpoint T sp L or operating mode Z; and refrigerant flow rate mi) as previously described. The models generated by the low- level optimization can be used as optimization constraints to ensure that the thermal energy load Q Ci i is not reduced to a value that would cause the zone temperature T t to deviate from an acceptable or comfortable temperature range.

[0188] In some embodiments, the low-level optimization in block 906 seeks to minimize the total amount of thermal energy Q to tai,N usg d by the indoor subsystem over the optimization period subject to the zone temperature constraints and other constraints provided by the low-level indoor models described herein. For example, the low-level optimization can formulate the low-level optimization problem as: mm Q totals subject to the following constraints:

Ci -rr — ~~~ To) ~~ / βίΐ κ^ ί ~~ T j) ~~ Qc.i + Q other. i

T 1 mi■n <— T 1 i- <— T 1 max

Qtotal.k+1 ~ Qtotal.k

'.b,k

Δ

Qtotal,k+l ~~ Qtotal.k≥

[0189] where the function / ' is defined according to relationships between the zone thermal energy load Q c i and the zone setpoint u t (e.g., zone temperature setpoint T sp i or operating mode z t and refrigerant flow rate rrtj) as previously described. [0190] Still referring to FIG. 9, flow diagram 900 is shown to include using the optimal refrigerant flow setpoints to the indoor VRF units in each of the indoor subsystems (block 908). For example, each low-level indoor MPC 612-616 can operate the indoor VRF ' units located in the corresponding indoor subsystem 632-636. Operating the indoor VRF units can include activating or deactivating the indoor VRF units, adjusting a refrigerant flow- rate, adjusting a fan speed, or otherwise controlling the indoor VRF units to achieve the refrigerant flow setpoints.

[0191] Referring now to FIG. 10, a flow diagram 1000 illustrating a model predictive control technique which can be performed by MPC system 600 is shown, according to some embodiments. Flow diagram 1000 is shown to include performing a high-level

optimization at a high-level model predictive controller (MPC) to generate an optimal temperature profile for each of a plurality of indoor subsystems in a variable refrigerant flow ( VRF ' ) system (block 1002). In some embodiments, the high-level optimization is performed by high-level MPC 608, as described with reference to FIGS. 6-7. The high- level optimization can be the same or similar to the high-level optimization described with reference to FIG. 9.

[0192] The high-level optimization in block 1002 can generate an optimal temperature profile T b for each indoor subsystem. The optimal temperature profile f b can include a vector of predicted temperature states f b for each low-level indoor subsystem 632-636. Each vector of predicted temperature states T b can include a predicted indoor subsystem temperature state f b k for each time step k during the optimization period. Temperature states T b can be predicted using any of a variety of predictive techniques including, for example, a Kalman filter as described in U. S. Patent No. 9,235,657.

[0193] Flow diagram 1000 is shown to include providing the optimal indoor subsystem temperature profiles T from the high-level MPC to a plurality of low-level indoor MPCs (block 1004). Each subsystem temperature profiles T b can be sent from high-level MPC 608 to one of low-level indoor MPCs 612-616. In some embodiments, each low-level indoor MPC is configured to monitor and control a particular indoor subsystem. Each low- level indoor MPC can receive the optimal subsystem temperature profile T b for the indoor subsystem monitored and controlled by that low-level indoor MPC.

[0194] Flow diagram 1000 is shown to include performing a low-level optimization at each of the low-level indoor MPCs to generate optimal temperature setpoints for each indoor VRF unit of the corresponding indoor subsystem (block 1006). The low-level optimization in block 1006 can be similar to the low-level optimization in block 906.

However, the low-level optimization in block 1006 can formulate the low-level

optimization problem to track the optimal temperatures generated by the high-level optimization in block 1002 rather than minimizing total amount of thermal energy used.

[0195] In some embodiments, the low-level optimization in block 1006 can be formulated as: + V-Q total

subject to the following constraints:

Ci -rr — ~~~ To) ~~ / βίΐ κ^ ί ~~ T j) ~~ Qc.i + Q other. i

T 1 mi■n <— T 1 i- <— T 1 max

Qtotal,k+ i ~~ Qtot l.k≥ 0

Q Cii = f{T i , u i )

[0196] where the function is defined according to relationships between the zone thermal energy load Q Cii and the zone setpoint u L (e.g., zone temperature setpoint T sp i or operating mode z t and refrigerant flow rate 7? ) as previously described,

[0197] Still referring to FIG. 10, flow diagram 1000 is shown to include using the optimal temperature setpoints to operate the indoor VRF units in each of the indoor subsystems (block 1008). For example, each low-level indoor MPC 612-616 can operate the indoor VRF units located in the corresponding indoor subsystem 632-636. Operating the indoor VRF units can include activating or deactivating the indoor VRF units, adjusting a refrigerant flow rate, adjusting a fan speed, or otherwise controlling the indoor VRF units to achieve the refrigerant flow setpoints.

Configuration of Exemplary Embodiments

[0198] The construction and arrangement of the systems and methods as shown in the various exemplar}' embodiments are illustrative only. Although only a few embodiments have been described in detail in this disclosure, many modifications are possible (e.g., variations in sizes, dimensions, structures, shapes and proportions of the various elements, values of parameters, mounting arrangements, use of materials, colors, orientations, etc.). For example, the position of elements can be reversed or otherwise varied and the nature or number of discrete elements or positions can be altered or varied. Accordingly, all such modifications are intended to be included within the scope of the present disclosure. The order or sequence of any process or method steps can be varied or re- sequenced according to alternative embodiments. Other substitutions, modifications, changes, and omissions can be made in the design, operating conditions and arrangement of the exemplary

embodiments without departing from the scope of the present disclosure.

[0199] The present disclosure contemplates methods, systems and program products on any machine-readable media for accomplishing various operations. The embodiments of the present disclosure can be implemented using existing computer processors, or by a special puipose computer processor for an appropriate system, incorporated for this or another purpose, or by a hardwired system. Embodiments within the scope of the present disclosure include program products comprising machine-readable media for carrying or having machine-executable instructions or data structures stored thereon. Such machine- readable media can be any available media that can be accessed by a general purpose or special purpose computer or other machine with a processor. By way of example, such machine-readable media can comprise RAM, ROM, EPROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to carry or store desired program code in the form of machine-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer or other machine with a processor. Combinations of the above are also included within the scope of machine-readable media. Machine- executable instructions include, for example, instructions and data which cause a general purpose computer, special purpose computer, or special purpose processing machines to perform a certain function or group of functions.

[0200] Although the figures show a specific order of method steps, the order of the steps may differ from what is depicted. Also two or more steps can be performed concurrently or with partial concurrence. Such variation will depend on the software and hardware systems chosen and on designer choice. All such variations are within the scope of the disclosure. Likewise, software implementations could be accomplished with standard programming techniques with rule based logic and other logic to accomplish the various connection steps, processing steps, compari son steps and decision steps.