The present invention relates to methods, programs, and systems for minimizing the total cost of energy consumption of a group of remotely controlled smart plugs, energy consuming components, and energy producing and storing components either connected to or isolated from a power grid over given time intervals of interest.
With the ever increasing demand on the US and global power grids along with the rapidly increasing cost of producing and consuming energy, it is imperative to devise new methods and systems that allow for efficient use of energy. One of the most important issues related to efficient use of energy is to balance the supply and demand during operating hours. A review of energy usage patterns reveals much higher demands for commercial business units during regular daily operation hours and much higher demands for residential units during evening hours. Accordingly, utility companies such as SCE and PG&E are moving away from existing tiered usage pricing models and switching to Time Of Use (TOU) usage pricing models. In TOU models, utility companies charge consumers according to time of use in an attempt to balance supply and demand. While commercial units are charged at higher rates during daily operation hours, residential units pay higher rates during evening hours.
Correspondingly, using energy outside peak hours helps balance supply and demand while reducing energy cost for both commercial and residential consumers. This invention presents systematic optimal scheduling algorithms and methods of energy usage that are equally applicable to both commercial and residential units. The algorithms are capable of accommodating a heterogeneous mix of energy consuming, energy producing, and energy storing components and flexible enough to cover different time interval durations and schedule time granularities as needed. Such algorithms control the schedules of energy usage by signaling a number of smart plugs that feed deployed energy consuming components. In presence of energy storing components such as batteries, such algorithms force the use of existing stored energy during high demand TOU hours while they exert the use of energy from the power grid during low demand TOU hours as needed. Consequently, both residential and commercial consumers are provided with an opportunity to minimize their cost of energy consumption according to optimal scheduling algorithms.
The acronym GEC standing for Group of Energy Components is used to reflect the plurality of components within the group of remotely controlled smart plugs, energy consuming components, energy capturing components, energy storing components, and support components connected to a power grid. The acronym EPCs standing for Energy Producing Components is used to indicate the plurality of energy capturing components within the group such as solar panels, wind turbines, hydraulic turbines, steam turbines, generators, and energy storing components such as batteries along with all supporting equipment. The acronym ECCs standing for Energy Consuming Components is used to indicate the plurality of energy consuming components within the group such as Electric Vehicles (EVs), industrial machinery such as Computer Numerical Control (CNC) machines, residential appliances such as washers, and any other energy consuming device.
The subject disclosure features a method that allows for minimizing the total cost of energy usage for a group of remotely controlled smart plugs, energy consuming components, and optionally energy producing and storing components connected to a power grid. When present, the method effectively predicts the energy storage capacity of energy producing components of the group. Utilizing the predicted energy amount, consumption specifications of energy consuming components, and published pricing associated with the time of use, the method creates an automated schedule resulting in the lowest cost of energy usage for a set of time intervals of interest.
In an embodiment, illustrated by
A further embodiment of the present invention comprises a Linear Least Square Regression (LLSR) machine learning technique that can be iteratively trained by measurement and forecast data collected from weather and geo reports to accurately predict the energy production and storage of the EPC of a given GEC.
A further embodiment of the present invention comprises an Auto Regressive Integrated Moving Average (ARIMA) machine learning structure that can be iteratively trained by measurement and forecast data collected from weather and geo reports to accurately predict the energy production and storage of the EPC of a given GEC.
A further embodiment of the present invention comprises a Multi-Layer Perceptron Deep Learning (MLPDL) structure that can be iteratively trained by measurement and forecast data collected from weather and geo reports to accurately predict the energy production and storage of the EPC of a given GEC.
A further embodiment of the present invention comprises a detailed formulation of an optimization problem with the objective of minimizing the cost of energy consumption of a GEC through optimal scheduling and subject to constraints associated with available smart plugs, charging stations, and available hours.
Additional embodiments of the present invention feature solving this optimization problem using two algorithmic alternatives, namely, Simplex Branch and Bound (SBB) and Interior Point Branch and Bound (IPBB).
In one preferred embodiment, SBB algorithm described in
In another preferred embodiment, IPBB algorithm described in
In an integrated embodiment illustrated by
In another integrated embodiment illustrated by
In yet a further integrated embodiment illustrated by
Any feature or combination of features described herein are included within the scope of the present invention provided that the features included in any such combination are not mutually inconsistent as will be apparent from the context, this specification, and the knowledge of one of ordinary skill in the art. Additional advantages and aspects of the present invention are apparent in the following detailed description and claims.
This invention focuses on systematically identifying an optimal schedule of energy consumption for a given GEC comprising a number of smart ON-OFF electrical smart plugs that feed energy consuming components within a commercial or residential unit. Optionally, the GEC may also comprise energy producing components capable of capturing solar, wind, hydropower, geothermal, and biomass renewable energy forms. Such components comprise solar panels, wind turbines, hydraulic turbines, steam turbines, generators along with supporting equipment and energy storing components such as batteries. First, one of the available learning schemes, namely, LLSR, ARIMA, or MLPDL predicts the energy produced, stored, and made available for use during a time interval of interest by the EPC. Next, an optimization problem aiming at identifying the optimal schedule of energy consumption of said group is formulated using hourly, half-hourly, or shorter periods as decision variables. The problem is then solved using one of the two algorithms chosen from several algorithms available within the literature of optimization theory, namely, SBB or IPBB. Accordingly, integrated method, program, and system sets aiming at minimizing the cost of energy consumption subject to energy storage capacity and component availability constraints are introduced.
In an embodiment of the presented scheduling algorithms, a group of components illustrated in
In some embodiment, the present invention presents a solution to minimize the cost of energy usage by first predicting the produced and stored energy of said residential or commercial GEC over a time interval of interest, e.g., a day. Utilizing the predicted stored energy as operational constraints, fine granular ON-OFF periods of usage within the time interval of interest, e.g., hourly, are identified in the form of an optimal schedule. Low complexity of the solutions allow them to be embedded into live systems making live decisions about energy consumption at the beginning of the periods of interest.
Table 1 provides a listing of notations used in this invention disclosure.
First, three approaches to learning energy produced by EPC of the group are discussed. For all 3 approaches, a critical factor in generating accurately predicted results is the choice of input dataset representing previous system production as well as weather forecast and measurements. In a number of embodiments, past system production measures, forecasts and
actual weather measurements over several comparable past seasonal periods are used as input data.
In an embodiment, linear least squares regression is used to predict stored energy by EPC of the group within the interval of interest as a function of the current weather input data. In LLSR, the conditional mean of produced energy of EPC of the GEC is assumed to be an affine function of those values. Linear least square regression focuses on the conditional probability distribution of the average produced energy, rather than on the joint probability distribution of the produced energy. In this embodiment, the relationship between stored energy and the input data is modeled using linear predictor functions whose unknown model parameters are estimated from the forecast and collected data. In essence, LLSR is used to to fit a predictive linear model to the observed data set of the average number of weather data points (x-axis) and stored energy (y-axis). In LLSR, the relationship between the average number of input data and stored energy utilization is assumed to be linear and least squares is the method used to find the best fit line for the collected dataset. LLSR creates a straight line that minimizes the sum of squares of the errors generated from the differences in the observed values and the values predicted by the model. After developing the model, i.e., specifying the line, the value of a weighted function of input data is identified as the x-coordinate of the crossing point of the model line and the horizontal line corresponding to the value of stored energy.
In another embodiment, autoregressive integrated moving average is used to predict energy stored by EPC of the GEC within the interval of interest as a function of the current weather input data. ARIMA model is a generalization of an autoregressive moving average model in which measured and forecast weather data are fitted to predict future points in the series. ARIMA model is applied particularly because input data show evidence of non-stationarity but an initial differencing step corresponding to the integrated part of the model can be applied one or more times to eliminate non-stationarity.
The AR part of ARIMA indicates that the evolving variable of interest is regressed on its own lagged values. The MA part indicates that the regression error is actually a linear combination of error terms whose values occurred contemporaneously and at various times in the past. The I indicates that the data values have been replaced with the difference between their values and the previous values and that this differencing process may have been performed more than once. The purpose of each of these features is to make the model fit the data as well as possible. The ARIMA model used is then denoted as ARIMA(p, d, q) where parameters p, d, and q are non-negative integers, p is the order (number of time lags) of the autoregressive model, d is the degree of differencing (the number of times the data have had past values subtracted), and q is the order of the moving-average model. Experimentally speaking, setting the values of p, d, q in the range of [1, 3] yields reasonable results in predicting the values of energy stored by EPC of the GEC associated with current weather input data.
In yet another embodiment, MLPDL is used to predict the energy stored by EPC of the GEC within the interval of interest as a function of the current weather input data. In this embodiment, a fixed, fully connected, feedforward perceptron learning structure is utilized for the task of stored energy prediction. Such structure consists of an input layer with 7 to 10 processing elements to accept up to 10 input dataset measurements. In order to strike the balance between accuracy and complexity, the structure considers two hidden layers, each layer containing up to ten processing elements. The structure has an output layer with one processing element predicting the value of stored energy for the period of interest.
In each iteration of learning, all inputs associated with a sample input are propagated in the forward direction from the input through hidden layers to generate an output. The output value is compared to the measured output and an output error is calculated. The output error is then propagated in the reverse direction to the input layer in order to adjust weighting functions between every pair of processing elements in adjacent layers. The process is repeated until reaching an acceptable threshold of output error. For evaluating the error, Root Mean Square Error (RMSE) is calculated between the measured stored energy and MLPL predicted stored energy from the collected data.
In additional embodiments, predicted stored energy values, one per time interval of interest, are utilized in an optimization problem aiming to identify optimal schedules of energy usage within given intervals for all ECCs of the GEC. Solutions to the problems identify the ON-OFF schedules of the smart plugs, one per time interval of interest, feeding ECCs within the GEC. Such schedules are identified subject to the constraints of times of availability, energy required, and the total stored energy among others.
As a scheduling problem identifying periods of energy use drawn from the power grid and internally stored energy sources, the problem comprises two sets of binary decision variables per interval of interest. For an embodiment in which the interval of interest is daily and the granularity of schedule is hourly, the schedule identifies a total of 48 binary decision variables per ECC to cover the usage of energy drawn from the power grid and internally stored sources within 24 hours. For other embodiments comprising different durations and granularities, the number of decision variables is accordingly adjusted.
The embodiment of interest attempts at identifying a schedule associated with the lowest cost of usage. The general considerations are as follows. First, it is preferred to use internally stored energy within the hours in which the power grid energy is most expensive. Stored energy is to be used for feeding ECC types such as TVs and other appliances whose use cannot be scheduled. Remaining stored energy can then be used for ECCs such as EVs, washing or drying appliances whose use can be scheduled. Second, stored energy pool is to be used at the maximum level possible before tapping into power grid energy sources. Third, the use of energy from the power grid is to be scheduled within the lowest cost hours as much as possible.
In an embodiment of the invention, the formulated optimization problem is expressed as shown below.
The formulation attempts at minimizing the cost of energy usage for the GEC identifying the ON-OFF schedule of the smart plugs per time interval of interest feeding ECCs within the GEC. The decision variables are identified by matrix X=[xij]m×n associated with device j over time slot i on power grid and matrix Y=[yij]m×n associated with device j over time slot i on energy internally stored within the GEC. In its most general from, the optimization problem is to be solved subject to five constraints some of which may be relaxed depending on the conditions a particular GEC. The objective function measures the cost of energy within the tie interval of interest with ci showing the cost of energy for the unit of time during time slot i. Constraint 2 reflects the the limitation on the total number of charging stations for a given GEC, i.e., only P devices can be simultaneously charged in a given time slot. Constraint 3 captures the fact that every device j has to be charged to a minimum level of energy it requires denoted by ej. Constraint 4 simply shows that not all devices are available for charging during all time slots. Constraint 5 expresses that the sum of energy used associated with variables yij cannot exceed the total energy E0[d] captured by the GEC within the interval of interest. E0[d] is predicted relying on one of the prediction techniques noted earlier. Finally, Constraint 5 shows that the optimization problem represents a Binary Linear Programming (BLP) problem in the embodiment above.
Considering the fact that the formulated problem is a BLP problem in which decision variables assume binary values, different solution embodiments have to solve an NP-complete problem. Generally speaking, BLP problems are solved using an approach in which an LP Relaxation (LPR) problem, i.e., a problem identical to the BLP problem without binary constraints are solved first. In the case of the formulated problem of this invention, LPR problem is the same as the problem of 1 with constraints 2-5. However, Constraint 6 is replaced by a pair of constraints shown below.
In two different embodiments, the LPR problem can be solved either using Simplex or IP methods [10]. Once the LPR problem is solved, one of several algorithmic alternatives available in the literature of optimization theory may be used to derive the binary solution from the initial solution of LPR problem. Considering its practical efficiency, Branch and Bound (BB) method is chosen for this purpose. BB is a combinatorial optimization method that can be used to solve BLPs. It involves forming a binary decision tree and then applying effective branching and bounding strategies to tighten the bounds of LPR problems.
Collectively, two algorithmic embodiments combining different permutations of solving LPR and identifying the solution to BLP from the solution to LPR are thus presented. The two embodiments are referred to as Simplex Branch and Bound (SBB) and Interior Point Branch and Bound (IPBB) methods. The building blocks of these embodiments are described next.
Consider an LP problem with η decision variables and μ constraints. The simplex method is an iterative solution approach in which a number of slack variables, one per constraint, are defined to turn inequality constraints to equality constraints. Utilizing a set of η+μ decision variables comprising the initial and slack decision variables, primal and dual dictionary solutions are found that satisfy all existing constraints. Every dictionary solution contains a partitioning of η+μ variables to basic and non-basic decision variables. Each iteration then pivots by swapping one of the basic decision variables with one of the non-basic decision variables in a way that the resulting dictionary solution is better than the previous dictionary solution. Multiple pivots are applied until the dictionary solution can no further be improved. This final solution is the optimal solution. Geometrically speaking, Simplex solution identifies the boundary of the feasible region of an LP problem and then starts from one of the vertices of the feasible region within the hyper-planes in the η+μ dimensional space formed by the intersection of individual constraints. Every pivot then moves the current solution from one vertex to another neighboring vertex until the optimal vertex is identified. Different variations of Simplex method such as self-dual parametric Simplex method [10] exist that deal with the issues of pivot degeneracy and offer improved speeds of convergence. With respect to convergence, it is noted that the average convergence speed of improved variations of simplex method are in the order of O(η+μ)3. See Chapters 1-5 of [10] for details of Simplex method and its complexity discussion.
Inspired by the solution approaches to nonlinear optimization problems, the IP methods form a class of alternative iterative solution approaches for LPs. From among the IP family of problems, the path-following method is described in which a central path is formed staying on which the optimal solution can be reached. The path-following method replaces the constrained LP problem with a constrained NonLinear Programming (NLP) problem. In the NLP problem, the initial LP constraints remain in the form of equality constraints with slack variables but the objective function becomes a parametric logarithmic barrier function with parameter X. In essence, the objective function is the sum of the initial LP objective function and a number of logarithmic barrier terms each multiplied by λ, one associated with each initial and one associated with each slack variable. The path-following method is a one-phase method that begins from a point within the interior of the feasible region of an LP problem and will apply a number of iterative nonlinear optimization steps to eventually find the optimal solution. Every step consists of finding an appropriate value of λ smaller than its current value, computing step directions associated with vectors of primal, dual, primal slack, and dual slack variables on a so-called central path, computing an appropriate step length parameter to control the rate of change to the vectors of primal, dual, primal slack, and dual slack variables, and updating the vectors. Geometrically speaking, IP path-following solution applies a number of consecutive steps to an NLP with η+μ variables that iteratively result in getting closer to the optimal solution on the central path. Eventually, the optimal solution is identified as the value of λ approaches zero. Different variations of IP method exist that may use different nonlinear objective function but they all start from an interior point of the feasible region and through a number of iterative steps arrive at the optimal solution. With respect to convergence, it is noted that the average convergence speed of the path-following method is in the order of O(log(η+μ)׃(λ)). The function ƒ(λ) captures the complexity of completing a single iterative step typically utilizing first and second order optimality KKT conditions.
See [10] Chapters 17-19 for details of Interior Point method and its complexity discussion.
As noted previously, BB is a combinatorial optimization method that can be used to solve BLPs. It involves forming binary decision trees and optionally applying cutting planes in order to tighten the bounds of LPR problems. Applying BB translates to solving a potentially large number of related LP problems in searching for the optimal solution to a BLP problem. BB starts by solving LPR problem derived after replacing all binary constraints of the original problem with constraints forcing decision variables to assume values in the continuous range of [0,1] inclusive of boundary points. After an optimal solution to LPR problem is obtained and assuming this solution has a non-binary value for a decision variable that is supposed to be binary, the problem is split into two versions by adding a new constraint associated with setting one of the non-binary variables to either zero or one. The newly derived LP problems are solved and the process repeats iteratively forming a binary decision tree. During the BB process, non-binary solutions to LP problems serve as upper bounds and binary solutions serve as lower bounds to the optimal solution. A node in the decision tree can be pruned if its upper bound is lower than an existing lower bound. The optimal solution is derived once all branches of the decision tree have either been pruned or reached their leaf nodes.
When it comes to choosing branching strategy, one could either systematically solve all the problems on a given level of the tree before going deeper, i.e., perform breadth-first search, or go deep to leaf nodes of the tree before going wide, i.e., perform a depth-first search. There are three reasons why depth-first search is generally the preferred branching strategy. The first reason is the simplicity of numerical implementation. The second reason reason is based on the observation that as one moves deeper in the decision tree, each subsequent LP problem is obtained from the preceding problem by simply adding an upper or lower bound on one specific variable. The third reason is based on the observation that most binary solutions lie deep in the tree and there are two advantages to finding binary feasible solutions early. Not only it is better to have a feasible solution than nothing in case the search process ends early, but there may be significant tree pruning opportunities and efficiency gains as the result of observing the optimal objective function associated with one node is lower than the best-so-far binary solution.
With respect to convergence, it is noted that the worst case complexity of binary search is exponential. In practice, proper use of pruning techniques combined with sophisticated branching strategies significantly bring down the average complexity of the algorithm allowing to solve BLPs with a large number of decision variables in relatively short periods of time. Some of the more complex branching strategies include applying strong branching early and switching to pseudo cost branching at a later stage.
See [10] Chapter 22 and references within for details branch and bound algorithms and its extensions.
In an example embodiment illustrated by
Each EV is required to be fully charged at the beginning of each day. Further, a total of 3 charging stations are assumed to be available each with specifications of 220 V and 32 Amps. The business is connected to the grid and is also equipped with a solar and battery storage system with a maximum battery storage capacity of 120 Kilo Watt Hours (KWH). On a given day, the MLPDL predicts an energy production and storage of 99 KWH. The optimal schedule of charging that minimizes the cost of charging for the given day after solving the optimization problem with the objective function (1) and constraint (2) through constraint (6) is given in
In another embodiment, the example embodiment above is used to form a statistical measurement comprising 10,000 experiments. In each experiment, the daily energy production and storage of the system as predicted by the MLPDL is passed a pair of schedulers. Then, a scheduler produces daily schedule once a day. While the first scheduler follows SBB to create daily schedules, the second scheduler follows a randomized schedule weighted based on hourly cost of energy and constrained based on the number of available charging stations. Both schedulers fully utilize the stored energy of the system before using energy from the grid. The results reveal that the cost of optimal scheduler is $60,570 where as the cost of randomized scheduler is $73,200 both measured over a period of 10,000 days.
It is noted that the runtime of the randomized scheduler is much lower than that of the optimal scheduler. However, per iteration runtime of the optimal scheduler using either SBB or IPBB does not exceed 4 milliseconds on a computing host with an Intel i7 generation 8 CPU and 32 GB of memory. Equivalently, the total runtime of the statistical experiment for 10,000 runs remains under 40 seconds. Finally, it is noted that the energy cost difference of SBB and IPBB variants of the optimal scheduler do not exceed 1%.
Many alterations and modifications may be made by those having ordinary skills in the art without departing from the spirit and scope of the invention. Therefore, it must be understood that the illustrated embodiment has been set forth only for the purposes of example and that it should not be taken as limiting the invention as defined by its various embodiments and the following claims. For example, notwithstanding the fact that the elements of a claim are set forth below in a certain combination, it must be expressly understood that the invention includes other combinations of fewer, more or different elements, which are disclosed in above even when not initially claimed in such combinations. A teaching that two elements are combined in a claimed combination is further to be understood as also allowing for a claimed combination in which the two elements are not combined with each other, but may be used alone or combined in other combinations. The excision of any disclosed element of the invention is explicitly contemplated as within the scope of the invention.
The words used in this specification to describe the invention and its various embodiments are to be understood not only in the sense of their commonly defined meanings, but to include by special definition in this specification structure, material or acts beyond the scope of the commonly defined meanings. Thus, if an element can be understood in the context of this specification as including more than one meaning, then its use in a claim must be understood as being generic to all possible meanings supported by the specification and by the word itself.
The definitions of the words or elements of the following claims are, therefore, defined in this specification to include not only the combination of elements which are literally set forth, but all equivalent structure, material or acts for performing substantially the same function in substantially the same way to obtain substantially the same result. In this sense it is therefore contemplated that an equivalent substitution of two or more elements may be made for any one of the elements in the claims below or that a single element may be substituted for two or more elements in a claim. Although elements may be described above as acting in certain combinations and even initially claimed as such, it is to be expressly understood that one or more elements from a claimed combination can in some cases be excised from the combination and that the claimed combination may be directed to a subcombination or variation of a subcombination.
Insubstantial changes from the claimed subject matter as viewed by a person with ordinary skill in the art, now known or later devised, are expressly contemplated as being equivalently within the scope of the claims. Therefore, obvious substitutions now or later known to one with ordinary skill in the art are defined to be within the scope of the defined elements.
The claims are thus to be understood to include what is specifically illustrated and described above, what is conceptionally equivalent, what can be obviously substituted and also what essentially incorporates the essential idea of the invention.
In some embodiments described herein using the phrase “comprising” includes embodiments that could be described as “consisting of”, and as such the written description requirement for claiming one or more embodiments of the present invention using the phrase “consisting of” is met.
Reference numbers cited in the claims are exemplary, for ease of review by the patent office only, and are not limiting in any way.
Figures are representatives of concepts only and the claims are not limited by the figures in any ways.