SYSTEMS AND METHODS FOR OPTIMIZING BUILDING-TO-GRID INTEGRATION

Information

  • Patent Application
  • 20180358810
  • Publication Number
    20180358810
  • Date Filed
    June 08, 2018
    6 years ago
  • Date Published
    December 13, 2018
    5 years ago
Abstract
A computing device can generate predictions for future consumptions for one or more buildings based on a variety of factors. The factors can include a local climate corresponding to each building, a mass and heat transfer for each building, a daily operation for each building, and an occupancy behavior for each building. A power flow can be determined for one or more power generators. The power flow can be determined based on the predictions of future consumption. A control input vector can be determined for the one or more buildings.
Description
BACKGROUND

By 2050, a staggering 70% of the world's population is predicted to live and work in cities. A recent assessment from the World Bank suggested that two-thirds of global energy consumption can be attributed to cities, leading to 71% of global direct energy-related greenhouse gas emissions. Smart cities can include sustainable and resilient infrastructures, where buildings are a major constituent. Building energy consumption contributes to more than 70% of electricity usage, which can profoundly impact power grid operations. It would be beneficial to improve efficiency of the building energy consumption while simultaneously generating power more efficiently.





BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the embodiments and the advantages thereof, reference is now made to the following description, in conjunction with the accompanying figures briefly described as follows:



FIG. 1 is a schematic diagram of an RC-network model for a thermal zone according to various example embodiments.



FIG. 2 illustrates hypothetical solutions to a join optimal control program with multiple time-scales for a buildings-integrated power network according to various example embodiments.



FIG. 3 illustrates a topology of a power grid with 300 buildings according to various example embodiments.



FIG. 4 illustrates the bang-bang control PHVAC loads for 300 buildings and corresponding zone temperatures according to various example embodiments.



FIG. 5 illustrates results showing a state of a power network (bus frequencies and angles) according to various example embodiments.



FIG. 6 illustrates building performance results showing MPC-based PHVAC loads for 300 buildings and corresponding zone temperatures when solving the optimization problem of buildings and grid separately according to various example embodiments.



FIG. 7 illustrates grid performance results showing states of a power network where transients in the states are not alleviated due to the decoupled nature of the two optimization problems according to various example embodiments.



FIG. 8 illustrates building performance results with HVAC set points maintaining the temperatures within specified bounds according to various example embodiments.



FIG. 9 illustrates grid performance results showing an impact of BtG-GMPC on reducing an angle and frequency of deviations for buses in a network according to various example embodiments.



FIG. 10 illustrates performance of BtG-GMPC under forecast uncertainty performed using a nonlinear DAE solver for grid dynamics and ODE solver for the building dynamics according to various example embodiments.



FIG. 11 is an example flowchart of certain functionality implemented by portions of an optimization application according to various embodiments.



FIG. 12 is a schematic block diagram that illustrates an example computing device according to various embodiments.





The drawings illustrate only example embodiments and are therefore not to be considered limiting of the scope described herein, as other equally effective embodiments are within the scope and spirit of this disclosure. The elements and features shown in the drawings are not necessarily drawn to scale, emphasis instead being placed upon clearly illustrating the principles of the embodiments. Additionally, certain dimensions may be exaggerated to help visually convey certain principles. In the drawings, similar reference numerals between figures designate like or corresponding, but not necessarily the same, elements.


DETAILED DESCRIPTION

In the following paragraphs, the embodiments are described in further detail by way of example with reference to the attached drawings. In the description, well known components, methods, and/or processing techniques are omitted or briefly described so as not to obscure the embodiments. As used herein, the “present disclosure” refers to any one of the embodiments described herein and any equivalents. Furthermore, reference to various feature(s) of the “present disclosure” is not to suggest that all embodiments must include the referenced feature(s).


Among embodiments, some aspects of the present disclosure are implemented by a computer program executed by one or more processors, as described and illustrated. As would be apparent to one having ordinary skill in the art, the present disclosure may be implemented, at least in part, by computer-readable instructions in various forms, and the present disclosure is not intended to be limiting to a particular set or sequence of instructions executed by the processor.


The embodiments described herein are not limited in application to the details set forth in the following description or illustrated in the drawings. The embodiments in the present disclosure are capable of other embodiments and of being practiced or carried out in various ways. Also, the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting. The use of “including,” “comprising,” or “having” and variations thereof herein is meant to encompass the items listed thereafter, additional items, and equivalents thereof. The terms “connected” and “coupled” are used broadly and encompass both direct and indirect connections and couplings. In addition, the terms “connected” and “coupled” are not limited to electrical, physical, or mechanical connections or couplings. As used herein the terms “machine,” “computer,” “server,” and “work station” are not limited to a device with a single processor, but may encompass multiple devices (e.g., computers) linked in a system, devices with multiple processors, special purpose devices, devices with various peripherals and input and output devices, software acting as a computer or server, and combinations of the above.


Turning now to the drawings, exemplary embodiments are described in detail. Disclosed are various embodiments of a mathematical framework for Buildings-to-Grid (BtG) integration in smart cities. In some embodiments, the framework can include explicitly couple power grid and building's control actions and operational decisions. The explicit coupling can be utilized by buildings and power grids operators to simultaneously optimize the performance of both. High-level dynamics of building clusters and building-integrated power networks with algebraic equations are presented—both operating at different time-scales. A model predictive control (MPC)-based algorithm is discussed herein that formulates the BtG integration and accounts for the time-scale discrepancy. The formulation captures the dynamic and algebraic power flow constraints of power networks. The formulation is shown to have numerous advantages. A high-fidelity discretization for the formulation can be used. The findings discussed herein demonstrate building energy savings and significant frequency regulation, while these findings carry over in network simulations with nonlinear power flows and mismatch in load and weather predictions.


Cities can be equipped with optimized building designs that have the auspicious potential to play a pivotal role in reducing global energy consumption while maintaining stable electric-grid operations. As buildings are physically connected to the electric power grid, an understanding of the coupling of buildings can be used to develop the framework for buildings-to-grid integration.


Buildings-to-Grid (BtG) integration can include a breadth of computational and experimental aspects. An experimental high-level architecture can enable smart buildings with a focus on heating, ventilating, and air conditioning (HVAC) systems and grid integration. An optimization application can be executed in a computing device to provide an optimization framework. The optimization framework can be a bi-level. The bi-level optimization framework can be used for commercial buildings among other building types and can be integrated with a distribution grid. Detailed dynamic models for buildings with multiple zones (upper level) and an operational model for the distribution grid with voltage/current balance equations (lower level) can be included. Nonetheless, a transient model of the power grid, capturing frequency deviation may be missing.


The regulation service provision by smart buildings can be investigated. Price signals can be exchanged between grid and building operators to alter building energy consumption. BtG integration can result in the grid-aware building of HVAC controls that can provide frequency regulation or other ancillary services to the grid, largely without sacrificing the occupants' comfort. The load-shifting capability of buildings can also be utilized. An account of the grid dynamics and power flows has not previously been explored.


HVAC controls and building dynamics as linearized dynamical systems can be modeled. The modeling particulars can depend on the size of the building cluster. As the number of buildings involved in the analysis increases, the dynamic models tend to become simpler—for computational purposes. A typical thermal resistance and capacitance circuit model can be used to represent heat transfer and thermodynamic properties of the building envelope, and can be used in building control studies. Various control routines can be developed for building controls. Commercial buildings can use PID controllers for HVAC systems. However, model predictive control (MPC) can be used with respect to PID controllers. Building HVAC-MPC can be looked at in view of stochastic/deterministic, linear/nonlinear, centralized/decentralized, explicit/implicit architectures. Significant energy savings can be shown given different system dynamics, forecast and parametric uncertainty, and computational limitations.


None of current systems include a high-level mathematical framework that buildings and power grids operators can simultaneously utilize to optimize their performance. A framework is discussed herein that can couple power grid and building control actions and operational decisions. Creating a framework can include challenges. For example, building control systems are not typically connected to each other, nor are they integrated with the grid. Consequently, a unified optimal energy control strategy—even if it is decentralized—can require a framework that facilitates this integration, in addition to the willingness of building operators to contribute to this framework. Additionally, grid and building dynamics and control actions can operate at two different time-scales. While the grid controls and states are often in milliseconds and seconds, the building state dynamics and controls can be significantly slower, often in minutes. Coupling the two dynamic systems together entails addressing this time-scale discrepancy. Existence of algebraic equations in grid dynamics, resulting in differential algebraic equations (DAE), coupled with the different time-scales, can complicate the modeling and analysis of BtG integration. In fact, these algebraic equations can depict the interdependence between grid and building dynamics. A mathematical framework can be used that addresses the aforementioned challenges.


One objective can be to generate high-level local control actions/signals for buildings and power generators such that the overall performance can be optimized in terms of stability, energy savings, and/or other socio-economic metrics. The inclusion of the dynamics of various distributed energy resources (DER) and other building control routines can be facilitated.


The patterns of energy usage in buildings can be impacted by local climate, heat and mass transfer of building envelope, daily operation, and occupancy behaviors in buildings. Detailed energy models can be developed based on physics and statistics to simulate the mass and heat transfer in buildings. For a large-scale application such as BtG integration, it may be unrealistic to consider every thermal zone of each building thousands of buildings will generate millions of zones. This can produce a highly intractable BtG integration problem. Hence, at a BtG integration level, the amount of cooling energy needed, which is optimized to minimize the total operation cost from buildings to the grid, will be allocated to each building; we define this quantity as P(l)HVAC for building l. Then, at the local level of building l, the decision variables of air-side system (i.e., set-points for air-handling units, damper opening for terminal systems) and water side system (flows for pumps, chiller temperature set-points) can be optimized to maintain preferred zone temperature, while not exceeding the cooling load limits set by P(l)HVAC The cooling load can be solved for as a high-level problem and then feed with the set points to the lower level problems. The high-level building problem can use a thermal resistance and capacitance (RC) network model to represent heat transfer and thermodynamics of building envelope. The RC network model assumes a steady-state heat transfer through building envelope. Considering building envelope has time constant of hours, this model can be used for a high-level BtG integration analysis. A model 100 with three resistances 103, 106, and 109, and two capacitances 112 and 115 (3R-2C) is shown in FIG. 1. In this model, a building is treated as a super-zone where the resistance parameters represent the thermal resistance of the whole building structure, external facades' convection, and internal walls' convection. The building dynamics with temperature states Twall and Tzone can be written as:














T
.

wall



(
t
)


=





T

am
,
b




(
t
)


-


T
wall



(
t
)




CR
2


+




T
zone



(
t
)


-


T
wall



(
t
)




CR
1


+




Q
.

sol



(
t
)


C













T
.

zone



(
t
)


=





T
wall



(
t
)


-


T
zone



(
t
)





C
zone



R
1



+




T
amb



(
t
)


-


T
zone



(
t
)





C
zone



R
win



+





Q
.

int



(
t
)


+



Q
.

HVAC



(
t
)




C
zone




,




where Rwin, R2, and R1 are physical parameters of building envelope; C is a lumped thermal capacity of all walls and roof; Czone is the thermal capacity of the zone; {dot over (Q)}sol(t) is the total absorbed solar radiation on the external wall; {dot over (Q)}int(t) is the total internal heat gains from space heat sources such as desktop, people, and lights; Tamb(t); Tzone(t), and Twall(t) are the outside ambient, wall, and zone/space temperatures, respectively. The cooling load can be calculated as {dot over (Q)}HVAC(t)=μHVACPHVAC(t); where PHVAC is the actual power consumed by HVAC systems, and μHVAC is a constant indicating the performance of an HVAC system. One objective can be to minimize a cost function of PHVAC(t) while maintaining occupants' comfort. The dynamics of building l can be rewritten as follows:






{dot over (x)}
b
(l)(t)=Ab(l)xb(l)(t)+Bub(l)ub(l)(t)+Bwb(l)wb(l)(t),  (1)


where xb(l)=[Twall Tzone]lT is the state of building l; ub(l)=[PHVAC]l is the control input variable; wb(l)=[Tamb {dot over (Q)}sol {dot over (Q)}int]lT is a random uncontrollable input. Various methods have been developed to provide an estimate of wb(l), denoted by ŵb(l), for each building. Clusters of buildings can be considered with each cluster being connected to a power grid node. The impact of buildings' contribution to frequency regulation and overall energy consumption costs can be determined by analyzing the dynamics of building clusters.






{dot over (x)}
b(t)=Abxb(t)+Bubub(t)+Bwbwb(t),  (2)


where nb is the total number of buildings in the network; xbcustom-character2nb, ubcustom-characternb, and wbcustom-character3nb. In the absence of communication between buildings, the state-space matrices Ab, Bub, and Bwb will all be diagonal matrices.


The dynamics of building integrated power network can be presented and the variables involved in the BtG integration framework can be defined. In addition, the connection of the BtG integration model with the optimal power flow (OPF) is discussed herein.


DAE Dynamics of a Power Network with Building Loads.


Let B={1, . . . , n} and custom-character={1, . . . , ng}


B={1, . . . , n} and custom-character={1, . . . , ng} denote the sets of buses and generators in a power network. Also, let Nk be the neighborhood set of adjacent nodes connected to the kth bus. Generators are indexed by m∈custom-character. The mechanical input power to the mth generator is denoted by Pm. Define generator-to-node and building-to-node incidence matrices Γ∈custom-charactern×ng and Π∈custom-charactern×nb Γ∈custom-charactern×ng and Π∈custom-charactern×nb with entries given by:







γ

k
,
m


=

{





1




0








if





the






m
th






generator





is





connected





to





bus





k





otherwise

,






π

k
,
l


=

{




1




0








if





the






k
th






bus





is





connected





to





building





l






otherwise
.










The transients of the kth bus in a power network can be modeled by the swing equation which relates the rotor angle with the angular velocity and angular acceleration {umlaut over (δ)}. Define Mk and Dk as the inertia and damping coefficients of the generator located kth bus; if the kth bus does not have a generator, then Mk=Dk=0. The swing equation for the kth bus (∀k∈B) can be written as:






M
k{umlaut over (δ)}k+Dk{umlaut over (ϵ)}kk,mPm−PLkcustom-charactersin(δk−δj).  (3)


The load at bus k, PLK(t), can be written as follows: PLK(t)=Dk′{dot over (δ)}k(t)+PBLk(t)+Σl=1nbπk,l Pbldg(l)(t); where Dk′{dot over (δ)}k denotes the frequency-sensitive uncontrollable load at bus k, PBLk(t) denotes the frequency-insensitive uncontrollable base-loads; Σl πk,l Pbldg(l)(t) defines the load from buildings indexed by l and attached to bus k that are participating in regulation, defined as Pbldg(l)(t)=PHVAC(l)(t)+Pmisc(l)(t); where l∈{1, 2, . . . , nb} is index of buildings. PHVAC(l)(t) denotes the portion of controllable power consumption of building l, while Pmisc(l)(t) represents the uncontrollable miscellaneous power consumption of building l such as lighting, computers, equipment, elevators—amounting to a building's base-load. We can now rewrite (3) as:












M
k





δ
¨

k



(
t
)



+


D
k





δ
.

k



(
t
)




=



γ

k
,
m





P
m



(
t
)



-




j



k






b
kj







sin


(



δ
k



(
t
)


-



δ
t



(
t
)



0

-


D
k






δ
.

k



(
t
)



-


P

BL
k




(
t
)


-


Σ

l
=
1


n
b




π

k
,
l




)





(



P
HVAC

(
l
)




(
t
)


+


P
misc

(
l
)




(
t
)



)

.








(
4
)







In (4), Pm(t) for generator bus m can be written as Pm(t)=Pm+ΔPm(t), where Pm can be a solution of an optimal power flow problem—computed every 15 minutes—and ΔPm(t) can be the deviation from the set point Pm, which can be provided by the proposed BtG integration framework. Let {dot over (δ)}kk, where ωkktrue−ω0, where ωktrue is the actual frequency of the kth bus (ω0 is the synchronous frequency, e.g., 2π60 rad/sec in North America). The resulting state-space model is a nonlinear descriptor system (or a DAE), and can be written as:






E
g
{dot over (x)}
g(t)=Agxg(t)+Φ(δ(t))+Aubub(t)+Bugug(t)+Bwgwg(t),  (5)


where xg(t)=[(δ1 . . . δn ω1 . . . ωn]T=[δT(t)ωT(t)]T is the state of the grid; Φ(δ(t)) is the vectorized nonlinear power flow equations in (4); ub(t)=[PHVAC(1) . . . PHVAC(nb)]T is the control input vector of the buildings, as defined in (2), and ug(t)=ūb+Δug(t)=[P1+ΔP1(t) . . . Png+ΔPng(t)]T is the power network's control variable; wg(t)=[wBLT, wmiscT]T=[PBL1 . . . PBLn, Pmisc(1) . . . Pmisc(nb)]T is a random vector collecting the nodal base loads and miscellaneous building loads. Load forecasting is a very mature area; in the sequel, the forecast of wg(t), denoted by ŵg(t), is assumed to be available.


Higher Order Grid Models—Although the second order dynamics of the power network can be presented in (5), a higher order representation is possible. However, since one focus is on the BtG integration, a more advanced power network model can be substituted with a simpler one for conciseness and computational tractability.


Recall that ug(t)=ūb+Δug(t), where ūg is the vector containing the set points for the generators, and Δug(t) is the real-time deviation from these set points that automatically drives the power grid to stability after load deviations or disturbances. In some embodiments, the set points are computed every 5-15 minutes through solving economic dispatch or OPF routines. A linearized OPF (LOPF) problem can be written as:










LOPF


:









minimize







u
_

g

=


{


u
_

gi

}


i
=
1


n
g








J


(


u
_

g

)



=




u
_

g
I



J

u
g





u
_

g


+


b

u
g

I




u
_

g


+

c

u
g







(

6

a

)







subject





to







u
_

g
min





u
_

g




u
_

g
max





(

6

b

)









(


Γ







u
_

g


-

Π


(


u
b

+


w
^

misc


)


-


w
^

BL


)

T



1
n


=
0




(

6

c

)







|


L
ptdf



(


Γ







u
_

g


-

Π


(


u
b

+


w
^

misc


)


-


w
^

BL


)


|



F
max



,




(

6

d

)







where J(ūg) is a convex cost function that represents the generators' cost curves; ub and ŵmisc are vectors of building HVAC and (forecasted) miscellaneous loads; ŵBL is the vector of (forecasted) base loads; vector Γūg−Π(ubmisc)−ŵBL represents the nodal power injections; 1ncustom-charactern is a vector of all ones; Fmaxcustom-characternl l is the vector containing the thermal limits for real power flow on the nl branches of the network; and Lptdfcustom-characternl×n is a matrix of power transfer distribution factors. The constraints can represent the safety upper and lower bounds on the generator's active power while ensuring the supply-demand balance and the satisfaction of line flow limits.


Therefore, the dynamics of the buildings-integrated power network can be formulated. In (5), the presence of ub(t) exemplifies the control potential that buildings have on power system operation and control, and hence the integration advocated in this paper. In this section, we investigate the discrepancies in time-scales between the building (2) and power network dynamics (5) and discuss a formulation of the joint optimal control problem that addresses the time-scale discrepancies, while seamlessly incorporating objectives and constraints from the power grid and building clusters.


The formulated dynamics discussed herein can operate in two different time-scales. While grid regulation problems and mechanical input power variations are often in seconds, the building dynamics and controls can be much slower. For example, temperatures in buildings change slowly in comparison with frequencies and voltages in power networks. To overcome this limitation, one can assume local optimal control laws for buildings are computed at different time-steps than local optimal control laws for generators. This approach reflects the physical realities for these systems, and this consideration can be imposed via constraints in the optimal control problem, whose construction can be an objective. Since buildings possess slower dynamic behavior, the controls of buildings can be fixed for the faster time-scale of the power network. FIG. 2 illustrates a graph conveying this idea according to various embodiments of the present disclosure. Consider a hypothetical network with two generators and two commercial buildings, making up a total of six control variables (ub, ūb, Δug). The optimal deviations from the generators' controls fluctuate at a higher rate than the building controls, whereas the set-points for generators change once for a single prediction horizon as shown in FIG. 2. Given this integration scheme, and since hard constraints can be imposed on the grid and building dynamics, model predictive control (MPC) becomes the only viable solution to solve the joint optimal control problem.


Another challenge facing BtG integration is the presence of algebraic equations in (5) emerging from power flows of load nodes. Here, a simple, yet high-fidelity discretization routine for two dynamical systems with different time-scales and dynamic algebraic constraints are presented. First, an assumption can be made that sampling times for the power grid [cf. (5)] and building [cf. (2)] dynamics are respectively hg and hb; note that hb>>hg. The discretization utilize herein can be based on Gear's method—a backward differentiation routine—for DAE (descriptor) systems. This singular descriptor system discretization can be written as follows:












x
g



(


k
g



h
g


)


=



f
g



(


x
g

,

u
g

,

u
b

,

w
g


)


=




A
_

g






i
=
1

s








α
i



E
g




x
g



(


h
g



(


k
g

-
i

)


)





+


B
0



(



A

u
b





u
b



(


k
g



h
g


)



+


B

u
g





u
g



(


k
g



h
g


)



+


B

w
g





w
g



(


k
g



h
g


)




)





,




(
7
)







where Āg=(Eg−hgβ0Ag)−1, B0=hgβ0Āg, β0=(Σi=1s1/i)−1, and αi=(−1)i+1β0Σj=isj−1(ij); kg is the time-step for the grid dynamics. This method includes a set of s initial conditions. Similarly, the discrete form of (2) can be written as follows:












x
b



(


k
b



h
b


)


=



f
b



(


x
b

,

u
b

,

w
b


)


=




A
_

b






i
=
1

s








α
i




x
b



(


h
b



(


k
b

-
i

)


)





+


B
1



(



B

u
b





u
b



(


k
b



h
b


)



+


B

w
b





w
b



(


k
b



h
b


)




)





,




(
8
)







where kb is time-step for buildings' dynamic operation. Gear's discretization amounts to a backward Euler-like implicit method. The principal merit of implicit methods is that they are typically more stable for solving systems with a larger step size h, while still performing well for systems with faster time-constants. A simple simulation can show that Gear's method returns accurate state-solution for the building and grid dynamics


Convergence of Gear's Method—The states of the discretized descriptor system in (7) and (8) converge to the actual ones in finite time-steps, even if the s-initial conditions are arbitrarily chosen.


Joint Optimal Control Problem: BtG-GMPC—The joint optimal control problem, Building-to-Grid Gear MPC (BtG-GMPC), is formulated as in (9). The variables, cost function, and constraints of BtG-GMPC are as follows:

    • Tp is the prediction horizon and the formulation above only shows the MPC for one prediction horizon; t is the initial starting point of the MPC.
    • Ub={ub(t+hb), ub(t+2hb), . . . , ub(t+Tp)}, ΔUg={Δug(t+hg), Δug(t+2hg), . . . , Δug(t+Tp)}, and ūg are the three sets of optimization variables that we defined previously. Also, the cost function is defined as:







f


(


Δ






U
g


,


u
_

g

,

U
b


)


=


J


(


u
_

g

)


+



h
b


T
p








k
b

=
1



T
p



/



h
b









[



C
b
T



(

t
+


k
b



h
b



)





u
b



(

t
+


k
b



h
b



)



]



+



h
g


T
p








k
g

=
1



T
p



/



h
g









[


Δ







u
g
T



(

t
+


k
g



h
g



)



R





Δ







u
g



(

t
+


k
g



h
g



)



+



x
g
T



(

t
+


k
g



h
g



)





Qx
g



(

t
+


k
g



h
g



)




]








which adds the LOPF costs to the average of the building and grid control costs: J(ūg) is the LOPF cost function (6a) and cb(t+kbhb) is a time-varying vector representing the cost of electricity at time t+kbhb. Q∈custom-character2n×2n and R∈custom-characterng×ng are positive semi-definite penalty matrices for the grid dynamics, with penalization to the deviations in the frequencies of the generators and the magnitude of the control actions.


Constraints (9b)-(9d) depict the dynamics of the building-integrated power grid, as well as lower and upper bounds on the states and inouts of the grid states and controls. Note that xb(t+kbhb)=fg(xg, ug, ub, ŵg|t,s)custom-characterĀbΣi=1s αiEg×xg (t+hg(kg−i))+B0(Aubub(t+|kghg)+Bugug(t+kghg)+Bwgŵg(t+kghg)), where s corresponds to the order of Gear's method.


Constrains (9e)-(9g) represent the building cluster dynamics and the bounds on the states and inputs of the individual buildings, while constraint (9h) imposes the constraints of the LOPF as discussed in the previous section.


The final constraint (9i) represents the idea of the time-scales integration, as illustrated in FIG. 2, whereby the building control variables (7) are kept constant between two consecutive building instances. Since hb>hg, we assume that between two consecutive building sampling instances (i.e., kbhb) are all constant variables to be found. Hence, for all ∀kghg∈[kbhb, (kb+1)hb],ub(kbhb)=ub(kghg)=ūb.






BtG


-


GMPC


:













minimize






U
b

,

Δ






U
g


,


u
_

g











f


(


Δ






U
g


,


u
_

g

,

U
b


)






(

9

a

)







subject







x
g



(

t
+


k
g



h
g



)



=


f
g



(


x
g

,

u
g

,

u
b

,



w
^

g

|
t

,
s

)






(

9

b

)







Δ






u
g
min




Δ







U
g



(

t
+


k
g



h
g



)





Δ






u
g
max






(

9

c

)








x
g
min




x
g



(

t
+


k
g



h
g



)




x
g
max











k
g



{

1
,

,


T
p



/



h
p



}







(

9

d

)








x
b



(

t
+


k
b



h
b



)


=


f
b



(


x
b

,

u
b

,



w
^

g

|
t

,
s

)






(

9

e

)







u
b
min




u
b



(

t
+


k
b



h
b



)




u
b
max





(

9

f

)








x
b
min




x
b



(

t
+


k
b



h
b



)




x
b
max











k
b



{

1
,

,


T
p



/



h
p



}







(

9

g

)







(

6

b

)

,

(

6

d

)





(

9

h

)









u
b



(

t
+


k
g



h
g



)


=



u
_

b

=


u
b



(

t
+


k
b



h
b



)














k
g



h
g





[



k
b



h
b


,


(


k
b

+
1

)



h
b



)

.







(

9

i

)







Algorithm 1 illustrates a routine that implements BtG-GMPC's rolling horizon window along with the integration of the LOPF problem. The proposed algorithm solution mimics the idea depicted in FIG. 2. Given the BtG-GMPC parameters (including the first s-initial steps of the discretized dynamics), the algorithm computes the optimal solutions to the LOPF problem and the joint MPC. For simplicity, the prediction horizon Tp can be assumed to be equivalent to the time-scale in which the optimal dispatch is solved, i.e., 5 to 15 minutes. An assumption can also be made that hg<hb<Tp<<Tfinal and hb/hg, Tp/hb, and Tp/hg are all positive integers. The algorithm can start by finding the solution to the generator's operating points ūg for any multiple of the prediction horizon Tp, as well as the deviation from this set point Δug(t) and ub(t) up until the next planning horizon, and so on. As in classical MPC routines, only the first instance of the optimal control trajectory is applied, while the rest are discarded. Note that the BtG-GMPC with LOPF is only solved for when t (the counter) is a multiple of Tp. If t is not a multiple of Tp, but a multiple of the building's sampling time hb, the building and grid controls are computed. The gap between the two time-scales can be captured: where the building and grid controls are applied, the building controls are kept constant from the previous optimal computations, while grid controls are computed in the meantime for every grid sampling time.












Algorithm 1 Online BtG-GMPC and LOPF Integration















 1: input: BtG-GMPC forecasts and parameters, xb(−(s − 1)hb :


  hb : 0), xg(−(s − 1)hg : hg : 0), Tp, Tfinal


 2: output: {u*g, Δu*g, u*b} ∀t ∈ [0, Tfinal]


 3: while t < Tfinal


 4:   if t = κTp (multiple of Tp, i.e., t = 0, Tp, 2Tp,...)


 5:    solve BtG-GMPC (9) for U*b, ΔU*g, ū*g


 6:    apply ū*g ∀t ∈ [κTp, (κ + 1)Tp]


 7:    apply U*b(1) ∀t ∈ [t, t + hb]


 8:    apply ΔU*g(1) ∀t ∈ [t, t + hg]


 9:    discard U*b(2 : end), ΔU*g(2 : end)


10:   else if (t = κ1hg) ∧ (t ≠ κ2Tp) ∧ (t ≠ κ3hb)


11:    solve (9) without ūg, Ub, while eliminating


  constraints (9e)-(9i) where Ub, ūg are the optimal constant values


  from the previous/subsequent steps


12:    apply ΔU*g(1)  ∀t ∈ [t, t + hg]


13:    discard ΔU*g(2 : end)


14:   else if (t = κ1hb) ∧ (t ≠ κ2Tp)


15:    solve (9) without ūg, (9h), and J(ūg)


16:    apply U*b(1) ∀t ∈ [t, t + hb]


17:    apply ΔU*g(1) ∀t ∈ [t, t + hg]


18:    discard U*b(2 : end), ΔU*g(2 : end)


19:   end if


20:   t ← t + hg


21: end while









Problem (9) is a quadratic program. This optimization routine is tractable. In some embodiments, the optimization routine can be solved by SeDuMi, MOSEK, MATLAB's QuadProg, or other solvers. BtG-GMPC optimization can be applied online as predictions for the uncontrollable inputs might not be available for times greater than the prediction horizon Tp. Fast online MPC algorithms for quadratic programs can be used, and can be immediately applied to the formulation.


With reference to FIG. 3, an analysis was performed on a power network with three generators and three load nodes with a total of 300 buildings—divided into three clusters of 70, 100 & 130 buildings at nodes L5, L7, and L9. The simulations were performed for a 24 time-period (Tfinal=24 hours). The parameters, exact constraints, weather data, electricity prices, and other details of the problem are carefully chosen to reflect reasonable conditions. The numerical results for the BtG-GMPC and Algorithm 1 are presented in comparison with solving the optimal control of buildings and power grids separately. In addition, the results of BtG-GMPC can be with bang-bang control of HVAC systems. The three scenarios can use the same parameters, initial conditions, constraints, and costs.


According to a first example scenario (Scenario I), the grid control problem receives a schedule of the building HVAC and miscellaneous loads, where the HVAC loads are independently computed via bang-bang control. Bang-bang control is the simplest type and most common type of HVAC control where the controller follows a strict temperature set point (e.g., 22.22 degrees C.). The HVAC control system is switched on (or off) as soon as the zone temperature exceeds (or is below) the dead band which is generally + or −0.5 C. The resulting HVAC power consumptions and corresponding zone temperatures for the 300 buildings are shown in FIG. 4. The bang-bang building control can maintain the temperature in the aforementioned band. After simulating this case over a period of 24 hours, these bang-bang HVAC inputs are provided to the grid optimal control problem, which is formulated as an MPC based on Gear's method. Specifically, this problem is essentially BtG-GMPC with all the building variables pre-computed as discussed above. FIG. 5 shows the frequency and angle variations for the nine buses of the power network given the bang-bang controls. Due to the intermittent nature of the HVAC load, the grid frequency experiences significant deviations from its nominal value (60 Hz); see FIG. 5. The frequency variations are more prominent at durations when the total load is at peak values. The total costs for Scenario I are provided in Table I.


According to a second example scenario (Scenario II), the MPC problems can be solved for buildings and the power grid separately. First, the building optimal controls can be computed via the same MPC formulated in (9), while eliminating the power grid constraints and variables. The MPC solution for the building's HVAC loads can then be fed into a grid-only MPC. This scenario is useful in the sense that grid operators can model the building's load via a classical building MPC model. The optimal HVAC loads for 300 buildings are depicted in FIG. 6. The simulation results of this case show an improvement in the HVAC power consumption of buildings. However, this cannot reduce the transients observed in the grid's frequency variations as shown in FIG. 7. This paves the way for the BtG-GMPC (Scenario III). The total costs for Scenario II are also provided in Table I.


According to a third example scenario (Scenario III—BtG-GMPC), the proposed algorithm and the corresponding optimization problem (9) can be simulated. The BtG-GMPC results show significant improvement in grid's frequency deviations and the overall costs as shown in FIG. 9 and Table I. The frequency variations can be dramatically lower in comparison with the previous two scenarios. Also, there can be a significant reduction in the overall cost of operation. These results show around 20.2% reduction in total cost with BtG-GMPC as compared to the first two scenarios. Also, the grid's frequency deviations can be reduced by a very large extent, consequently reducing the cost of grid operation by 58%.


Simulations on Nonlinear DAEs with Forecast Uncertainty: In the previous simulations, FIGS. 4-9 and Table I present the results from the MPC solution using the predicted unknown inputs (ŵg, ŵb) for the linearized power system using Gear's discretization method. A process can be performed including (a) extracting the optimal MPC control variables (ub, ug) for the entire simulation horizon, (b) feeding these inputs to the nonlinear DAE solver for (5) and linear ODE solver for (1), and (c) adding zero-mean Gaussian noise with 2.5% standard deviation from the predicted unknown inputs ŵg in (5) and ŵb in (1). One objective can be to validate Gear's discretization method and to assess the performance of the integration framework on the nonlinear continuous-time DAE model for the grid under mismatch between the forecasted and true disturbances. Table II and FIG. 10 can show the outcome of this simulation, where the frequency deviation costs are significantly lower for the BtG-GMPC scenario, in comparison with the first two scenarios for the two cases (with or without noise). FIG. 10 shows that the frequency deviations can be kept within acceptable ranges, and the results in Table II are consistent with the findings in Table I. Note that the MPC scheme can be solved offline given the prediction of the loads and the temperatures, and the resulting controls were used as inputs to the nonlinear DAE solver, which demonstrated the good performance of the developed framework. Disturbances can be added in the MPC while running an online MPC routine, which can further enhance the overall system performance.


With respect to BtG-GMPC assumes the knowledge of various parameters such as building RC constants and generators' cost curves. The following can be considered: (a) a system operator or a large utility can solve BtG-GMPC; (b) commercial building operators contributing to this routine can provide modeling parameters for their buildings; and (c) the global signals computed can be communicated to the now-contributing operators of individual buildings and generators. The added value of this coupling is two-fold. First, the theoretical impact of expanding the feasible space of two separate problems ensures that coupled problem's solution will be superior to the decoupled one. Second, the coupling translates into tangible impact for buildings and the grid.









TABLE II







COST COMPARISON (IN $) OF FREQUENCY


DEVIATION AFTER SIMULATING THE


NONLINEAR DAES WITH OR WITHOUT NOISE.











Scenario
Nonlinear DAE (5)
Noisy Nonlinear DAE (5)







Scenario I
7.7757 × 107
1.0320 × 108



Scenario II
1.0511 × 107
3.8917 × 107



BtG-GMPC
8.0155 × 106
3.5278 × 107










A building-to-grid integration dynamic model with optimal power management formulations and different time-scales is disclosed herein. The system considers realistic, high-level building models and frequency-focused grid dynamics, in addition to algebraic equations modeling the nodes without generation. Gear's method is also used as a high fidelity DAE discretization routine that is leveraged to model BtG integration. The impact of BtG-GMPC on reducing overall energy costs and minimizing frequency deviations can be demonstrated.


With reference to FIG. 11, shown is a flowchart that provides one example of a process 1100, which can be implemented as a portion of the optimization application according to various embodiments. It is understood that the flowchart of FIG. 11 provides merely an example of the many different types of functional arrangements that may be employed to implement the operation of the portion of the optimization application as described herein. As an alternative, the flowchart of FIG. 11 may be viewed as depicting an example of elements of a method implemented in the computing device 1200 (FIG. 12) according to one or more embodiments.


Beginning with box 1103, the process 1100 can include predicting future consumption for one or more building. The optimization application can predict a future consumption for the one or more buildings. A future consumption can be predicted for each building based on a respective history of usage for each of the buildings. In some embodiments, the respective history of usage can be used in combination with a history of usage for all of the buildings. The history of usage can include local climates for each building, mass and heat transfer for each building, daily operator of each building, and occupancy behavior for each building.


At box 1106, the process 1100 can include determining a power flow for one or more generators. As an example the optimization application can determine a power flow for the generators based on the predictions of future consumption for the buildings. The power flow can be set to ensure enough energy is available to provide power for the buildings without exceeding the thermal limits of the network.


At box 1109, the process 1100 can include determining an input vector for the buildings.








u
b



(
t
)


=


[


P
HVAC

(
1
)










P
HVAC

(

n
b

)



]

T





can be the control input vector for the buildings. The optimization application can determine the input vector, which is defined in (2) as ubcustom-characternb.


Turning to FIG. 12, an example hardware diagram of a computing device 1200 is illustrated. Any of the functionality discussed herein may be implemented, in part, using one or more elements of the computing device 1200. The computer device 1200 includes a processor 1210, a Random Access Memory (“RAM”) 120, a Read Only Memory (“ROM”) 1230, a memory device 1240, a network interface 1250, and an Input Output (“I/O”) interface 1260. The elements of the computer 1200 are communicatively coupled via a bus 1202.


The processor 1210 comprises a general purpose arithmetic processor or Application Specific Integrated Circuit (“ASIC”). The RAM and ROM 1220 and 1230 comprise a random access or read only memory device that stores computer-readable instructions to be executed by the processor 1210. The memory device 1230 stores computer-readable instructions thereon that, when executed by the processor 1210, direct the processor 1210 to execute various aspects of the present disclosure described herein. When the processor 1210 comprises an ASIC, the processes described herein may be executed by the ASIC according to an embedded circuitry design of the ASIC, by firmware of the ASIC, or both an embedded circuitry design and firmware of the ASIC. As a non-limiting example group, the memory device 1230 comprises one or more of an optical disc, a magnetic disc, a semiconductor memory (i.e., a semiconductor, floating gate, or similar flash based memory), a magnetic tape memory, a removable memory, combinations thereof, or any other known memory means for storing computer-readable instructions. The network interface 1250 comprises hardware interfaces to communicate over data networks. The I/O interface 1260 comprises device input and output interfaces such as keyboard, pointing device, display, communication, and other interfaces. The bus 1202 electrically and communicatively couples the processor 1210, the RAM 1220, the ROM 1230, the memory device 1240, the network interface 1250, and the I/O interface 1260, so that data and instructions may be communicated among them.


In operation, the processor 1210 is configured to retrieve computer-readable instructions stored on the memory device 1240, the RAM 1220, the ROM 1230, or another storage means, and copy the computer-readable instructions to the RAM 1220 or the ROM 1230 for execution, for example. The processor 1210 is further configured to execute the computer-readable instructions to implement various aspects and features of the present disclosure. For example, the processor 1210 may be adapted and configured to execute the processes described above. Also, the memory device 1240 may store the data stored in a database.


A phrase, such as “at least one of X, Y, or Z,” unless specifically stated otherwise, is to be understood with the context as used in general to present that an item, term, etc., can be either X, Y, or Z, or any combination thereof (e.g., X, Y, and/or Z). Similarly, “at least one of X, Y, and Z,” unless specifically stated otherwise, is to be understood to present that an item, term, etc., can be either X, Y, and Z, or any combination thereof (e.g., X, Y, and/or Z). Thus, as used herein, such phrases are not generally intended to, and should not, imply that certain embodiments require at least one of either X, Y, or Z to be present, but not, for example, one X and one Y. Further, such phrases should not imply that certain embodiments require each of at least one of X, at least one of Y, and at least one of Z to be present.


Although embodiments have been described herein in detail, the descriptions are by way of example. The features of the embodiments described herein are representative and, in alternative embodiments, certain features and elements may be added or omitted. Additionally, modifications to aspects of the embodiments described herein may be made by those skilled in the art without departing from the spirit and scope of the present disclosure defined in the following claims, the scope of which are to be accorded the broadest interpretation so as to encompass modifications and equivalent structures.

Claims
  • 1. A system comprising: at least one data store; andat least one computing device in communication with the data store, the at least one computing device being configured to at least: generate a plurality of predictions of future consumption individually corresponding to at least one of a plurality of buildings based at least in part on at least one of a respective local climate, a respective mass and heat transfer, a respective daily operation, and a respective occupancy behavior; anddetermine a power flow for at least one power generator based at least in part on the plurality of predictions of future consumption; anddetermine a control input vector for at least one building.
  • 2. The system of claim 1, wherein the at least one computing device is further configured to at least maintain a preferred zone temperature within one of the plurality of buildings without exceeding the respective zone temperature bounds.
  • 3. The system of claim 1, wherein the preferred zone temperature is represented by
  • 4. The system of claim 1, wherein the plurality of predictions of future consumption are based at least in part on a control input vector corresponding to the plurality of buildings.
  • 5. The system of claim 1, wherein the at least one computing device is further configured to at least minimize a cost function associated with the cost of operation of the at least one power generator, subject to constraints, and a cost function associated with the cost of the operation of at least one building, subject to constraints.
  • 6. The system of claim 1, wherein the at least one computing device is further configured to at least generate a plurality of local control signals for the plurality of buildings and at least one power generator.
  • 7. The system of claim 1, wherein the at least one power generator comprises a plurality of buses and a plurality of power generators in a power network.
  • 8. A method comprising: generating, by at least one computing device, a plurality of predictions of future consumption individually corresponding to at least one of a plurality of buildings based at least in part on at least one of a respective local climate, a respective mass and heat transfer, a respective daily operation, and a respective occupancy behavior; anddetermining, by the at least one computing device, an optimal power flow for at least one power generator based at least in part on the plurality of predictions of future consumption; anddetermining, by the at least one computing device, a control input vector for at least one building.
  • 9. The method of claim 8, wherein the plurality of predictions correspond to a prediction horizon.
  • 10. The method of claim 8, further comprising generating, by the at least one computing device, a plurality of local control signals for the plurality of buildings and at least one power generator.
  • 11. The method of claim 8, further comprising minimizing, by the at least one computing device, a cost function associated with the cost of operation of the at least one power generator, subject to constraints, and a cost function associated with the cost of the operation of at least one building, subject to constraints.
  • 12. The method of claim 8, further comprising generating, by the at least one computing device, a plurality of local control signals for the plurality of buildings and at least one power generator.
  • 13. The method of claim 8, further comprising maintaining, by the at least one computing device, a preferred zone temperature within one of the plurality of buildings without exceeding the respective zone temperature bounds
  • 14. A non-transitory computer-readable medium embodying a program that, when executed by at least one first computing device, causes the at least one first computing device to at least: generate a plurality of predictions of future consumption individually corresponding to at least one of a plurality of buildings based at least in part on at least one of a respective local climate, a respective mass and heat transfer, a respective daily operation, and a respective occupancy behavior; anddetermine a power flow for at least one power generator based at least in part on the plurality of predictions of future consumption; anddetermine a control input vector for at least one building.
  • 15. The non-transitory computer-readable medium of claim 14, wherein the power flow is determined based at least in part on an inertia coefficient and a damping coefficient corresponding to the at least one power generator.
  • 16. The non-transitory computer-readable medium of claim 14, wherein the program further causes the at least one computing device to at least maintain a preferred zone temperature within one of the plurality of buildings without exceeding the respective zone temperature bounds.
  • 17. The non-transitory computer-readable medium of claim 14, wherein the plurality of predictions of future consumption are based at least in part on a control input vector corresponding to the plurality of buildings.
  • 18. The non-transitory computer-readable medium of claim 14, wherein the program further causes the at least one computing device to at least minimize a cost function associated with the cost of operation of the at least one power generator, subject to constraints, and a cost function associated with the cost of the operation of at least one building, subject to constraints.
  • 19. The non-transitory computer-readable medium of claim 14, wherein the program further causes the at least one computing device to at least generate a plurality of local control signals for the plurality of buildings and at least one power generator.
  • 20. The non-transitory computer-readable medium of claim 14, wherein the plurality of predictions correspond to a prediction horizon.
CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Application No. 62/516,830, filed Jun. 8, 2017, the entire contents of which is hereby incorporated herein by reference.

Provisional Applications (1)
Number Date Country
62516830 Jun 2017 US