Extremum-Seeking Control via Stochastic Gradient Estimation

The stochastic gradient descent algorithm in extremum seek control systems efficiently estimates the slope of unknown cost functions for multiple actuators, optimizing system performance and energy consumption by using partial gradients, addressing computational inefficiencies and constraint violations.

JP7561728B2Active Publication Date: 2024-10-04MITSUBISHI ELECTRIC CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2021202618
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-03-27
Filing Date
2021-12-14
Publication Date
2024-10-04
Estimated Expiration
2041-12-14

AI Technical Summary

Technical Problem

Existing extremum seek controllers (ESCs) face computational inefficiencies when estimating the slope of an unknown cost function for systems with multiple actuators, as perturbing all setpoints is impractical due to large numbers and potential constraint violations, leading to suboptimal or impossible real-time optimization.

Method used

Implement a stochastic gradient descent algorithm within an extremum seek control system to estimate the overall slope of the cost function using partial gradients, allowing for probabilistic determination of optimal setpoints while minimizing computational burden.

Benefits of technology

Enables efficient, real-time optimization of systems with multiple actuators by statistically estimating the overall slope, achieving optimal performance with minimal energy consumption even when some actuators are uncontrollable or constrained.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007561728000011
    Figure 0007561728000011
  • Figure 0007561728000012
    Figure 0007561728000012
  • Figure 0007561728000013
    Figure 0007561728000013
Patent Text Reader

Abstract

To provide a control system for controlling an actuator set of a system.SOLUTION: This control system includes: a switcher configured to select one setting-value subset from a setting-value set to control an actuator set; an Extremal value Seek Controller (ESC) configured to perturb the setting values of the setting-value subset with respect to the setting-value subset in each iteration on the basis of the probability distribution for the partial gradient of a cost function relating to the operation cost of the system; a stochastic gradient estimator configured to estimate the entire gradient of the cost function, and to update the estimated value of the entire gradient on the basis of the probability distribution of a partial gradient generated in each ESC iteration; and a feedback controller configured to drive the states of an actuator subset of the system toward the perturbed setting-value subset.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] FIELD OF THE DISCLOSURE This disclosure relates generally to control systems, and more particularly to an extremum-seeking control system and method for controlling the system. [Background technology]

[0002] Extremum-seeking controllers (ESCs) are used to perform real-time optimization of dynamic systems without a model. Extremum-seeking control is a model-free adaptive control for real-time optimization of dynamic systems. ESCs use a frequency domain approach, which estimates the gradient of a cost function using a sinusoidal excitation signal and an averaging filter, and integrates the gradient estimate until an optimal point is reached. The cost function represents a performance metric of the operation of the controlled system. An example of a performance metric is the power consumption of the controlled system.

[0003] If an analytical form of the cost function is available, it is easy to estimate the gradient of the cost function. However, in most data-driven ESC methods, the cost function is unknown. Therefore, one main challenge of ESC is to estimate the gradient of the unknown cost function from data collected while the system is operating.

[0004] A typical apparatus for controlling a system using an ESC includes two controllers. The first controller is a setpoint optimizer configured to generate setpoints for actuators of the controlled system. The second controller is a feedback controller configured to drive the state of the controlled system toward the setpoints generated by the setpoint optimizer. Examples of feedback controllers include, for example, a PI (proportional integral) controller, a PID (proportional integral derivative) controller, and an MPC (model predictive control) controller. In the case of extremum seeking, the ESC configures the setpoint optimizer to use periodic excitation of the setpoint to be optimized.

[0005] When an analytical form of the cost function is not available, the ESC and the feedback controller work together to estimate the gradient of the unknown cost function from operational data, including the increments of the cost function caused by the increments of the setpoints. Such calculations are performed recursively in real time during the control of the system. However, in many practical applications, the number of setpoints of different actuators of the controlled system controlled by the ESC at each control step is large enough to be computationally burdensome for real-time estimation.

[0006] There is therefore a need to improve the computational efficiency of data-driven ESC when the cost function of the performance of the system being controlled is unknown. Summary of the Invention

[0007] An object of some embodiments is to provide a system and method for data-driven control of a system including multiple actuators. Another object of some embodiments is to provide an extremum-seeking controller (ESC) that can optimize the performance of a control system by estimating setpoints for multiple actuators. Hereinafter, the terms "controlled system", "system being controlled" and "system" are used interchangeably. The term "setpoint" as used herein refers to a target value of a variable of the system. A "setpoint" applies to any particular value of a particular set of control signals, thermodynamic parameters and operating parameters. For example, if the controlled system is an HVAC system, the setpoints may include one or more of the following: indoor fan speed, outdoor fan speed, expansion valve position, compressor speed, etc. Another object of some embodiments is to provide an ESC for estimating the gradient of an unknown cost function in a data-driven yet computationally efficient manner. Thus, herein, the setpoints of the system are also referred to as setpoint vectors. At each control step, each vector includes different setpoints of different actuators of the system being controlled.

[0008] Some embodiments are based on the realization that ESC aims to generate an optimal setpoint combination to optimize the performance of the controlled system. Thus, ESC does not optimize the performance of a specific actuator of the system, but rather optimizes the performance of multiple actuators together. Therefore, ESC needs to estimate the global gradient of a cost function of all setpoints of multiple actuators. Since the analytical form of the cost function is unknown, the cost function relates all setpoints to an operating cost. To that end, ESC performs the optimization by perturbing or exciting all values ​​of the setpoint vector.

[0009] Advantageously, excitation of all setpoints in the setpoint vector allows the performance of the controlled system to reach optimal performance, however, some embodiments are based on the recognition that in various circumstances such excitation may not be optimal, may be computationally expensive, and may even be impossible.

[0010] For example, in some situations, some setpoints of the controlled system are fixed, e.g. by a user, or operate at a constraint level to prevent sinusoidal perturbations that violate the constraints. In such situations, excitation of the setpoints of these actuators is not possible or at least impractical. In other situations, there are so many setpoints that need to be considered in each control step that the excitation and subsequent calculation of all setpoints becomes a computational burden. However, for each control step, the gradients of all setpoints need to be fully estimated according to the ESC principle.

[0011] Some embodiments are based on the realization that the global gradient of the cost function of the entire setpoint vector can be determined probabilistically based on the partial gradients of the cost function of the setpoint vector of different subsets of elements. In particular, the partial gradients of the setpoint subsets represent the incremental change of the cost function with respect to operating the actuator subsets corresponding to the setpoint subsets. The partial gradients are not sufficient to control the overall operation of the ESC, but are sufficient for estimating the global gradient, since the global gradient should be at least statistically consistent with all the different partial gradients.

[0012] Furthermore, it is an object of the present disclosure to design a control system model for any system (e.g., heating, ventilation and air conditioning system (HVAC system), sound system, vehicle, etc.) to minimize the energy consumed by the system. Some embodiments are based on the recognition that energy savings can be achieved by optimizing different control inputs of the system. Additionally or alternatively, it is an object of the present disclosure to achieve self-optimization of the control system to achieve the minimum energy consumption.

[0013] To that end, some embodiments are based on the recognition that extremum-seeking control, a category of self-optimizing control strategies, can dynamically seek unknown and / or time-varying inputs of a controlled system to optimize a particular performance metric. Extremum-seeking control can be viewed as dynamically searching for a gradient using a dithering signal. The gradient of the system output with respect to the system input is typically obtained by slightly perturbing the system operation and applying a demodulation measure. Optimization of the system performance can be achieved by driving the gradient towards zero using an integrator in a closed-loop system.

[0014] In some embodiments, an optimal setpoint at which the system would like to operate with minimal energy consumption may be provided by a user in real time. For example, a system includes multiple air conditioners (ACs) for controlling the temperature of a conference room. Assume that a user would like to keep the temperature of the conference room at 20° C. and operate the system with minimal energy consumption. The user may provide the desired temperature (20° C.) as an input to the system. The desired setpoint provided by the user is referred to as an optimal setpoint for operating the system. Based on the optimal setpoint, the control system controls a set of actuators of the system to adjust the temperature of the conference room to the optimal setpoint while minimizing the energy consumed by the system. The actuator set corresponds to multiple ACs. Each AC of the multiple ACs may be controlled by controlling each actuator of the actuator set.

[0015] Some embodiments are based on the recognition that when at least one actuator among a plurality of actuators of a system is uncontrollable, it is difficult to control the remaining actuators to optimize the energy consumption of the system at a specified set point. In some embodiments, at least one actuator among the plurality of actuators becomes uncontrollable when a user specifies a control input to the actuator during real-time operation.

[0016] For example, if a user specifies the fan speed of the AC to be 10 rpm, it is difficult to determine the optimal control input values ​​for controlling the actuators of the AC to provide a temperature of 22° C. for one control input, the fixed value of the fan speed (10 rpm), and achieve the minimum energy consumption at the specified set value. In another embodiment, at least one actuator becomes uncontrollable when the connection to the actuators is lost due to any unexpected reason that may further result in a large energy consumption. Therefore, it is difficult to achieve the minimum energy consumption.

[0017] To that end, some embodiments are based on the recognition that extremum-seeking control by stochastic gradient descent algorithm provides optimization solutions in real time according to the dynamic nature of randomly changing inputs. The stochastic gradient descent (SGD) algorithm belongs to a class of well-studied iterative gradient-based optimization algorithms used in a wide range of fields, e.g., adaptive control and neural networks. In contrast to standard optimization algorithms such as steepest gradient descent or Newton's method that utilize direct gradient information, the SGD algorithm operates based on an approximation of the gradient constructed from noisy measurements of the target or cost function. Standard optimization algorithms often require basic knowledge of the input-output relationship of the system to calculate the gradient, e.g., using the chain rule. The SGD algorithm does not require this, and is therefore more suitable for non-model-based extremum-seeking control.

[0018] In some embodiments, the actuators are monitored during real-time operation of the controlled system. By monitoring the actuators, the state of each actuator can be determined at each operation instance executed on the controlled system. The actuator state includes the non-actuated state of one or more actuators, a sudden change in the input of one or more actuators, etc. Information about random events during real-time operation of the controlled system is very important for optimizing energy consumption.

[0019] Thus, when the control system observes actuator variations, it can execute an extremum seeking controller including an SGD algorithm to determine a combination of actuators to perform a given action (e.g., provide air conditioning as required by a user) while providing optimal energy consumption. Thus, the control system becomes self-sufficient and can automatically handle random events occurring in one or more actuators without the need for any external intervention to the control system.

[0020] Accordingly, one embodiment discloses a control system for controlling a set of actuators of a system. The control system comprises at least one processor and a memory storing instructions for forming a module of the control system, the at least one processor being configured to execute the instructions of the module of the control system. The module includes a switcher configured to create a plurality of setpoint subsets from a setpoint set, the setpoint sets controlling the setpoint set respectively, and configured to select a setpoint subset from the plurality of setpoint subsets, the setpoint subsets controlling the actuator respectively. The module further includes an extremum-seeking controller (ESC), the ESC configured to perturb at each iteration one or more setpoints of the selected setpoint subset based on first and second moments of a probability distribution of partial gradients of a cost function related to the operating cost of the system, the setpoints of the setpoint subset generated at a current ESC iteration and at a past ESC iteration. The module further includes a stochastic gradient estimator configured to estimate a global gradient of the cost function for incremental changes in each subset of set points and to update an estimate of the global gradient based on a probability distribution of the partial gradients generated at each ESC iteration. The module further includes a feedback controller configured to drive states of a subset of actuators of the system respectively towards the perturbed subset of set points.

[0021] Accordingly, one embodiment discloses a method for controlling a set of actuators of a system, the method comprising: generating a plurality of setpoint subsets from a setpoint set, the setpoint sets respectively controlling the setpoint set of actuators; selecting a setpoint subset from the plurality of setpoint subsets, the setpoint subset respectively controlling the actuator subset; perturbing at each iteration one or more setpoints of the selected setpoint subset based on first and second moments of a probability distribution of partial gradients of a cost function related to an operating cost of the system, setpoints of the setpoint subset generated at a current ESC iteration and at a past ESC iteration; estimating a global gradient of the cost function for incremental changes of setpoints of each subset; updating the estimate of the global gradient based on the probability distribution of the partial gradients generated at each ESC iteration; and driving states of the actuator subsets of the system respectively towards the perturbed setpoint subsets. [Brief description of the drawings]

[0022] [Figure 1] FIG. 2 is a block diagram illustrating a control system for controlling a set of actuators of a system to minimize energy consumption of the system according to an exemplary embodiment. [Diagram 2] FIG. 1 illustrates a workflow of a control system implemented with a system to minimize energy consumption of the system according to an exemplary embodiment. [Figure 3A] FIG. 1 illustrates multiple actuators of a system controlled by a control system to minimize energy consumption at a particular set point, according to an exemplary embodiment. [Figure 3B] FIG. 4 illustrates a binary sequence of actuator status flags according to an exemplary embodiment. [Figure 4A] FIG. 13 illustrates a subset of actuators in a system selected by a switcher based on motion constraints of the system according to an exemplary embodiment. [Figure 4B]FIG. 1 illustrates a solar thermal power plant including solar concentrating mirrors controlled by a control system according to an exemplary embodiment. [Diagram 5] FIG. 2 illustrates different algorithms performed by a stochastic gradient estimator, according to an example embodiment. [Figure 6] FIG. 2 illustrates the principle of adapting gains of a control system in accordance with an exemplary embodiment. [Figure 7] FIG. 4 illustrates method steps performed to control a set of actuators of a system to minimize energy consumption of the system, according to an exemplary embodiment. [Figure 8] FIG. 1 illustrates a vapor compressor system implemented with a control system to minimize energy consumption of the vapor compressor system according to an exemplary embodiment. [Figure 9] FIG. 1 illustrates control of a heating, ventilation, and air conditioning (HVAC) system using a control system according to an exemplary embodiment. [Figure 10] FIG. 1 is a block diagram illustrating a computer-based control system in accordance with an exemplary embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0023] In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. It will be apparent to one skilled in the art that one or more embodiments can be practiced without these specific details. Additionally, the apparatus and methods are shown as block diagrams in order to avoid obscuring the present disclosure.

[0024] As used in this specification and claims, the terms "for example," "for example," "such as," and the verbs "comprise," "have," "include," and other verb forms thereof, when used with a list of one or more components or other items, should be construed as open ended, meaning not to exclude other additional components or items from this list. The term "based on" means based at least in part on. Furthermore, it should be understood that the phraseology and terms used herein are for purposes of description and should not be regarded as limiting. Any headings used herein are for convenience only and have no legal or limiting effect.

[0025] In order to operate the controlled system at the desired optimum setpoints, it is necessary to adjust the setpoints corresponding to the set of actuators. This allows the set of actuators to be adjusted so that the controlled system operates at the desired optimum setpoints with minimal energy consumption. For that purpose, an extremum-seeking control algorithm can be used. The task of the extremum-seeking control algorithm is to find the operating setpoints for maximizing or minimizing the objective function of the controlled system. For example, if the user defines the optimum setpoints at which he wants to operate the controlled system so as to minimize the energy consumed by the controlled system (in this case the cost function), the extremum-seeking control algorithm finds the optimal combination of setpoints for operating the set of actuators 117 of the system 115. This allows the system to operate at the desired optimum with minimal energy consumption.

[0026] To find / determine setpoints for operating the set of actuators, the extremum-seeking control algorithm iteratively perturbs / excites a set of setpoints corresponding to the set of actuators until the controlled system is operated at the desired setpoints. At each iteration, the setpoints are updated to increase or decrease based on the desired optimal setpoint of the controlled system.

[0027] Thus, the ESC does not optimize the performance of a specific actuator of the controlled system, but rather optimizes the performance of actuators of the set of actuators together. Thus, the ESC needs to estimate the global gradient of the cost function of all the setpoints of the actuators. The cost function relates the setpoints of the setpoint subset to the operating cost of the system. For example, the cost function may correspond to the energy consumption of the system. Thus, the ESC needs to first determine the global gradient of the cost function by perturbing or exciting all the setpoints of the setpoint set, and then perform the optimization of the cost function of the controlled system.

[0028] However, optimizing a cost function of a controlled system using ESC (e.g., optimizing the energy consumption of a controlled system) can take a very long time if the number of setpoints in the setpoint set is very large. Also, perturbing every setpoint is impractical for various practical reasons, e.g., the size of the state space, the number of units to be adjusted, and safety considerations where perturbing some setpoints may risk causing constraint violations or network failures in distributed controlled systems. Thus, in many situations, optimizing a controlled system by minimizing a cost function (e.g., energy) using ESC is suboptimal, computationally expensive, and sometimes impossible.

[0029] For example, the controlled system comprises 1000 air conditioners (ACs). Thus, the actuator set includes 1000 actuators and the setpoint set includes 1000 setpoints. To adjust the temperature of the 1000 ACs, 1000 temperature setpoints must be adjusted. The ESC can adjust all 1000 setpoints at each ESC iteration and calculate a resulting cost value. This cost value is used to calculate the gradient of the cost value for the changed setpoints. Since all setpoints have been perturbed, the gradient of the cost function is calculated for all setpoints. However, perturbing all setpoints at each ESC iteration may not be feasible in practice. To that end, some embodiments are based on the recognition that only a portion of the AC units (e.g., 200 out of 1000) are perturbed at each ESC iteration. In case of partial perturbation, a cost value is calculated based on the change of a subset of setpoints, and then a partial gradient is calculated.

[0030] For example, set A is the first 200 AC units, set B is the next 200 AC units, and so on. If only set A AC units are perturbed in one ESC iteration, then set B AC units are perturbed in the next iteration. And so on. The global gradient of the cost function may be calculated in any ESC iteration. The ESC drives the actuators to operate at the desired optimal set points provided by the user by updating the set points based on the global gradient. Thus, if the ESC does not calculate the global gradient, it calculates the gradient of the cost change for each set point perturbation. However, since only a subset of the set points are perturbed in each ESC iteration, the value of the gradient may be infinite in some cases. In particular, the ESC updates the set points based on the global gradient. If the ESC does not receive the global gradient, it tries to calculate the gradient (i.e., the cost change / perturbation of each set point), but the denominator is zero for some components (because there are 200 perturbed units and not 10,000). In such a situation, one of the following two scenarios is possible: That is, (a) the ESC is unable to calculate gradients and therefore unable to operate the controlled system at the desired optimal setpoints, or (b) the ESC calculates gradients that perturb all setpoints even though useful information has been gleaned from only a subset of the setpoints. Scenario (b) is much more likely and results in pointless updates to some setpoints (e.g., setpoints in set B, set C, etc.). In this case, only the setpoints in set A need to be updated with information gleaned from perturbing set A. This results in an overall slowdown of the ESC to update all setpoints at each ESC iteration.

[0031] To optimize a controlled system more efficiently, the present disclosure proposes a control system for stochastically determining a global gradient of the cost function of all setpoints in a setpoint based on the partial gradients of the cost function of different subsets of setpoints created from the setpoint. The proposed control system uses extremum seeking control with a stochastic gradient algorithm. The proposed control system is described in detail below with reference to FIG. 1.

[0032] 1 is a block diagram illustrating a control system 100 for controlling a set of actuators 117 of a system 115 to minimize energy consumption of the system 115, according to an exemplary embodiment. The control system 100 includes a processor 101 configured to execute stored instructions and a memory 103 that stores instructions executable by the processor 101. The processor 101 may include a single-core processor, a multi-core processor, a computing cluster, or any number of other configurations. The memory 103 may include random access memory (RAM), read-only memory (ROM), flash memory, or any other suitable memory system. The processor 101 may be connected to other components of the control system 100 via a bus 105.

[0033] The system 115 can receive one or more inputs, such as specific settings at which a user would like the system 115 to operate (also referred to as "optimum settings"). In some embodiments, the user can provide input to the system 115 via an input interface, which may be linked to a remote control device used to select the optimal settings. In another embodiment, the input interface may include a dashboard used by the user to select the optimal settings. The system 115 includes an actuator set 117 configured to control one or more parameters of the system 115 based on the optimal settings. The actuator set 117 may include solenoids, electric motors, hydraulic cylinders, pneumatic cylinders, motors, and the like. The system 115 further includes a set of settings 119 corresponding to the actuator set 117. Each actuator of the actuator set 117 is controlled using a respective set of settings in the set of settings 119. Thus, to control the actuator set 117 of the system 115, the control system 100 controls the set of settings 119 to operate the system 115 at the desired optimal settings with minimal energy consumption.

[0034] First, the control system 100 creates multiple setpoint subsets from the setpoint set. The control system 100 includes a switcher (or switcher module) 107 for creating multiple setpoint subsets. The switcher 107 is configured to create multiple setpoint subsets from the setpoint set 119. The setpoint subsets may be created based on one or more constraints. The one or more constraints include at least one of a physical constraint of the system 115, such as an upper limit at which the system 115 can operate, a legal constraint, such as a legally permitted operating speed of the system 115, and a business constraint, such as a minimum total energy consumption. In some embodiments, the multiple setpoint subsets may be created randomly or deterministically. At least some combinations of the subsets may be intersected, i.e., at least some combinations have a common setpoint. In another embodiment, the combinations of the subsets may be separated from each other, i.e., any two or more subsets do not have a common setpoint.

[0035] The switcher 107 is further configured to select a setpoint subset from the plurality of setpoint subsets. The setpoint subset controls a selected actuator subset from the actuator set 117, respectively. To select a setpoint subset, the switcher 107 is configured to select an actuator subset from the actuator set 117. The actuator subset may be selected randomly. In another embodiment, the actuator subset may be selected deterministically based on one or more constraints. In some embodiments, the actuator subset may be selected semi-randomly. For example, assume that at least some actuators in the actuator set 117 consume more energy than the remaining actuators. In this case, the actuators in the actuator set 117 may be weighted to be selected as a subset by the switcher 107. The weight may be a function of the energy consumed by the actuators in the actuator set 117.

[0036] In an exemplary embodiment, the switcher 107 may be a scheduler. The scheduler schedules the setpoint or actuator subsets to be perturbed in the next ESC iteration. The scheduler may schedule the setpoint or actuator subsets randomly or deterministically or semi-randomly based on one or more constraints. The scheduler schedules all setpoint perturbations in a finite amount of time.

[0037] Additionally, one or more setpoints in the setpoint subset are perturbed to drive the state of the system 115 toward a state corresponding to an optimal setpoint, thereby causing the system to operate with minimal energy consumption.

[0038] To that end, the control system 100 employs an extremum-seeking controller (ESC) 109 for executing an extremum-seeking control algorithm. The ESC 109 is configured to perturb one or more setpoints of a selected subset of setpoints at each iteration of the ESC 109 (also referred to as an ESC iteration). To perturb one or more setpoints, the ESC 109 employs a dither signal at one or more setpoints. In some exemplary embodiments, the dither signal corresponds to a sinusoidal signal. Also, the perturbation of one or more setpoints of the selected subset of setpoints is performed based on the first and second moments of a probability distribution of partial gradients of a cost function generated by the stochastic gradient estimator 111. The cost function provides a relationship between the setpoints of the subset of setpoints and the operating cost of the system. In an exemplary embodiment, the cost function may correspond to a user-defined entity or function that a user seeks to minimize or maximize. For example, the cost function may correspond to a steady-state output power of an indoor air conditioning, i.e., a heating / cooling cycle. The inputs to the cost function are the set points to be optimized, such as expansion valve position, fan speed, compressor frequency, and discharge temperature. These are the measurable outputs of the closed loop control system that the internal control law can track.

[0039] Also, a probability distribution of partial gradients may be generated from the partial gradients generated in the current ESC iteration and the partial gradients generated in the past ESC iterations.

[0040] For that purpose, the control system 100 includes a stochastic gradient estimator 111. The stochastic gradient estimator 111 first determines partial gradients associated with the selected setpoint subset. The partial gradients correspond to the gradient of the cost function for the selected setpoint subset. One or more setpoints of the selected setpoint subset are perturbed. The stochastic gradient estimator 111 also generates a probability distribution of partial gradients obtained at each ESC iteration and associated with the selected (or current) setpoint subset and past selected setpoint subsets. Furthermore, the stochastic gradient estimator 111 determines a statistical estimate of the overall gradient by calculating the first moment, i.e., the mean moment, of the probability distribution of the partial gradients, and the second moment, i.e., the variance, of the probability distribution of the partial gradients. More specifically, each time the stochastic gradient estimator 111 obtains partial gradients of a setpoint subset, the distributions of all past partial gradients and the current partial gradients are calculated, and the mean and variance of the distributions are calculated. The stochastic gradient estimator 111 determines an estimate of the global gradient of the cost function based on the mean and variance.

[0041] The estimated global gradient serves as a proxy for the global gradient, insofar as all set points are eventually perturbed to determine the actual global gradient of the cost function. Thus, the ESC 109 can perturb the next set point or set points of the next subset of set points based on the estimated global gradient, without waiting to calculate the global gradient. The control system 100 uses the estimated global gradient to continually drive the state of the system 115 toward an optimal state corresponding to the optimal set point, without waiting for the actual global gradient.

[0042] The mean of the distribution of the partial gradients provides an estimate of the global gradient, and therefore a direction to move the set point (i.e., increase or decrease the perturbation) to obtain the most likely next optimal set point among all the set points. The variance of the distribution of the partial gradients also provides information related to the estimate of the global gradient. For example, the step size for increasing or decreasing the set point can be determined based on the variance. The stochastic gradient estimator 111 enables the control system 100 to optimize a cost function associated with the system 115 based on the estimate of the global gradient obtained at each iteration of the ESC (or ESC iteration). The stochastic gradient estimator 111 updates the estimate of the global gradient based on the probability distribution of the partial gradients generated at each ESC iteration.

[0043] The stochastic gradient estimator 111 executes at least one stochastic gradient descent algorithm, including, but not limited to, the Adaptive Momentum Estimation (Adam) algorithm, the Adaptive Gradient (Adagrad) algorithm, and the Root Mean Square Propagation (RMSprop) algorithm.

[0044] The stochastic gradient estimator 111 and the ESC 109 jointly execute a stochastic extremum seeking (SES) control algorithm to control one or more actuators by respectively perturbing set points and determining an estimated global gradient. The SES algorithm includes a stochastic gradient descent algorithm executed by the stochastic gradient estimator 111 and an extremum seeking control algorithm executed by the ESC 109.

[0045] The control system 100 also uses a feedback controller 113. The feedback controller 113 is configured to drive the state of the system 115 based on the perturbed setpoint subset at each ESC iteration until it reaches a state corresponding to the optimal setpoint input by the user (i.e., an optimal state). Thus, the feedback controller 113 further perturbs the other subsets of setpoints by continuously feeding back the current state of the system 115 to the ESC 109 until the system 115 operates in an optimal state.

[0046] 2 illustrates the workflow of a control system 200 implemented with a system 201 to minimize the energy consumption of the system 201 according to an exemplary embodiment. The control system 200 is similar to the control system 100 illustrated in FIG. 1. The system 201 is controlled by the control system 200. The system 201 controlled by the control system 200 may be any system for which it is desired to optimize the energy consumption, for example, a vapor compression system, an air conditioning system, and an HVAC system.

[0047] The control system 200 receives input setpoints 203 (θ t) can be received. The control system 200 includes a switcher 107 that obtains input setpoints 203. The switcher 107 can be provided with the total number of actuators and the total number of setpoints of the corresponding system 201. The switcher 107 can create multiple setpoint subsets from the setpoints of the system 201 and select at least one setpoint subset for one time instance or one ESC iteration. The selected setpoint subset is provided to the ESC 109, which perturbs one or more setpoints of the selected setpoint subset. Also, the perturbations or the updated one or more setpoints of the selected setpoint subset are provided to a stochastic gradient estimator 111, which determines a partial gradient of the cost function based on the updated one or more setpoints and estimates a global gradient of the cost function based on a probability distribution of the partial gradients. An output of the stochastic gradient estimator 111 is provided to a feedback controller 113 to control the system 201.

[0048] The feedback controller 113, together with the state estimator 205, forms a feedback loop to optimize the execution of the system 201. This allows the performance output 207 at the input setpoint 203 to be achieved with minimal energy consumption. The state estimator 205 may also include one or more sensors for monitoring the state of the system 201. The feedback controller 113 may obtain the current state of the system 201 from the state estimator 205 and track whether the desired state corresponding to the input setpoint 203 has been reached. If the system 201 determines that the desired state has not been reached, the feedback controller 113 may initiate an extremum seeking control of the setpoint according to a stochastic gradient method. The setpoint 203 may be a predetermined value at which the system 201 is desired to operate.

[0049]

number

[0050]

number

[0051] Control system 200 may include multiple actuators (described in FIG. 1) that may be used to control one or more elements of system 201. The one or more elements control one or more functions of system 201. For example, a first actuator of control system 200 may be used to control the speed of a fan (element 1) of system 201, a second actuator may be used to control a compressor (element 2) of system 201, and so on.

[0052] In an exemplary embodiment, the control system 200 can be triggered to optimize energy consumption based on a determination that at least one element of the system 201 cannot be controlled using a control input. The control system 200 can monitor all elements of the system 201 using a state estimator 205 and obtain a state 213 of each element. The state estimator 205 determines that at least one element is not controllable based on the obtained state 213 of each element. When a user predetermines or fixes a value of a control input to an actuator for controlling an element in real time, the element becomes uncontrollable. In another embodiment, the connection to the actuator for controlling the element can be lost due to some unexpected reason, such as accidental reason.

[0053] Upon triggering, the control system 200 uses a stochastic extremum seeking algorithm (i.e., extremum seeking control using a stochastic gradient algorithm) to determine an operating point for each element of the system 201 so as to operate the system 201 at the input set value 203. The control system 200 also uses the determined operating point for each element to optimize the operation of each element of the system 201. This allows the system 201 to operate at the input set value 203 with minimal power consumption.

[0054] The control system 200 uses data obtained during operation, e.g., operating point history and measured performance output (e.g., power) 207, to modify the stride of an operating point (setpoint) optimization algorithm, e.g., a stochastic extremum seeking algorithm, based on a gradient estimate obtained from the data history. The operating point is updated in real time with each iteration. Between iterations to update the operating point, the system 201 controlled by the feedback controller 113 can reach a steady power state. Unlike conventional extremum seeking control (ESC) methods, all operating points may not be available for operation at every given time point. That is, a subset of all operating points is controllable at a given time point. The subset available at a given time point may not be known at design time. Therefore, the overall gradient is estimated based on operating point data where a particular component or channel is unchanged at all time points. This can be modeled as a stochastic gradient, facilitating the use of stochastic gradient optimization methods commonly used when training machine learning algorithms.

[0055] The state estimator 205 also monitors the state of each element of the system 201 in real time and provides monitoring data 215 to the feedback controller 113. This allows the control system 200 to further optimize the operating points of the elements of the system 201, if necessary.

[0056] Some embodiments are based on the recognition that stochastic gradient optimization can be used for extremum-seeking control to automatically adjust the gains of the control system 200 based on the smoothness of a function in a local neighborhood.

[0057]

number

[0058] Figure 3A illustrates multiple actuators of a system 300 controlled by a control system 301 to minimize energy consumption at a particular set point 303, according to an exemplary embodiment. Control system 301 corresponds to control system 100 shown in Figure 1. Figure 3A will now be described in conjunction with Figure 1.

[0059] The system 300 includes a plurality of actuators, e.g., actuator 1, actuator 2, and actuator n (hereinafter also referred to as a plurality of actuators 305a, 305b, ..., 305n or a plurality of actuators 305a-305n). Each actuator of the plurality of actuators 305a-305n is connected to a respective switch of a plurality of switches 307a, 307b, ..., 307n (also referred to as 307a-307n). The switches 307a-307n are associated with control inputs to control the respective actuators of the plurality of actuators 305a-305n.

[0060] The system 300 can receive as input a particular setpoint 303. In some embodiments, the setpoint 303 may be predefined. In other embodiments, the setpoint 303 is provided in real-time by a user. The setpoint 303 is the parameter at which one wishes to operate the system 300. For example, in a system connected to an air conditioner (AC), the setpoint 300 may be the temperature value (e.g., 22°C) at which one wishes to operate the AC system.

[0061] In an exemplary embodiment, the control system 301 can control the plurality of actuators 305a-305n at a particular operating point based on a particular setpoint of the system 300 received. Upon receiving the setpoint 303, the control system 301 operates the system 300 at the desired setpoint 303 by controlling the plurality of actuators 305a-305n. The system 300 can include a plurality of sensors (not shown in FIG. 3A ) that can detect a state of each of the plurality of actuators 305a-305n. The state of the actuator can provide information such as whether the actuator can be controlled depending on whether the corresponding control input was used or not.

[0062] When a user specifies a control input to an actuator during real-time operation, the actuator is uncontrollable. In another embodiment, the actuator is uncontrollable when the connection to the actuator is lost due to any unexpected reason resulting in high energy consumption.

[0063] The control system 301 determines whether any of the plurality of actuators 305a-305n can be controlled by determining the connection between the plurality of actuators 305a-305n and the switches for controlling the plurality of switches 307a-307n, respectively. For that purpose, the plurality of actuators 305a-305n are continuously monitored. If the connection between one or more of the plurality of actuators 305a-305n and the corresponding switch of the plurality of switches 307a-307n is lost, it is determined that one or more of the plurality of actuators 305a-305n cannot be controlled.

[0064] Based on a determination that one or more of the plurality of actuators 305a-305n are not controllable, the control system 301 executes a stochastic extremum seeking (SES) algorithm using an extremum seeking controller 109 and a stochastic gradient estimator 111. By executing the SES algorithm, the remaining controllable actuators of the plurality of actuators 305a-305n are controlled to operate the system 300 at a specified setpoint 303 with minimal energy consumption.

[0065] To that end, the control system 301 creates a plurality of setpoint subsets from a setpoint set corresponding to the plurality of actuators 305a-305n. The setpoint sets can be used to control the plurality of actuators 305a-305n. In one embodiment, the setpoint sets for the actuators 305a-305n can be adjusted using the switches 307a-307n. Also, one setpoint subset can be selected and one or more setpoints of the setpoint subset corresponding to the controllable actuators can be perturbed. The perturbed one or more setpoints are used to determine a partial gradient of the selected setpoint subset. Also, a probability distribution of the partial gradients is determined based on the partial gradients corresponding to the selected subset and past partial gradients corresponding to the previously selected subsets. Furthermore, statistical parameters such as the mean and variance of the probability distribution are determined. Based on the statistical parameters, an overall gradient is estimated and it is determined whether to increase or decrease the perturbation of each setpoint. Furthermore, the statistical parameters are used to determine the step size for increasing or decreasing the perturbation of the setpoints. The state of the system 300 is driven to a state corresponding to the perturbed setpoints. The conditions are monitored to determine whether an optimal state of the system 300 has been reached, corresponding to the input setpoints 303. Based on the state of the system 300, the control system 301 may continually perturb one or more setpoints corresponding to the controllable actuators until the system 300 reaches an optimal state.

[0066] Figure 3B illustrates a binary sequence 309 of actuator status flags according to an example embodiment. Figure 3B will now be described in conjunction with Figure 3A. The binary sequence 309 of actuator status flags is the result of controlling a number of actuators 305a-305n via respective control switches 307a-307n. The status plot of each actuator includes time on the X-axis and state (1 for ON, 0 for OFF) on the Y-axis.

[0067] FIG. 4A illustrates a subset of actuators of a system 401 selected by a switcher based on the operational constraints of the system 401 according to an exemplary embodiment. The system 401 corresponds, for example, to a vapor compressor system. The vapor compressor system may include different actuators, compressor temperature, compressor speed, expansion valve position, flow reversal valve position. The vapor compressor system is connected to a control system 405. The control system 405 is configured to control the actuators of the vapor compressor system to minimize the energy consumption of the vapor compressor system. To that end, the control system 405 iteratively (i.e., at each ESC iteration) uses a stochastic extremum seeking (SES) algorithm. The SES algorithm is executed by an extremum seeking controller 405c and a stochastic gradient estimator 405b. The control system 405 corresponds to the control system 100 illustrated in FIG. 1. Moreover, a switcher 405a, a stochastic gradient estimator 405b, and an ESC 405c correspond to the switcher 107, the stochastic gradient estimator 111, and the ESC 109, respectively, shown in FIG 1. The vapor compressor system is connected to a control system 405 via a constraint checker 403.

[0068] The operating constraints also include at least one of an input constraint on the input 401a of the vapor compressor system and an output constraint on the output 401b of the vapor compressor system. For the output constraint of the vapor compressor system, after selecting past setpoints of one or more actuators of the vapor compressor system in a past ESC iteration, a critical performance variable of one of the actuators (e.g., the compressor temperature) may be close to or exceed a specified maximum constraint. In this case, the switcher 405a selects an input subset (i.e., the actuators) for the next ESC iteration to obtain a gradient that does not violate the compressor temperature constraint. Thus, the control system 405 may not change the compressor temperature in the next ESC iteration. However, the control system 405 may select an actuator subset that includes the expansion valve position and the flow reversing valve position, and may open (or change) the expansion valve and / or the flow reversing valve position in the next ESC iteration.

[0069] The input constraints have a similar effect on the vapor compressor system. For example, increasing the compressor speed and decreasing the expansion valve opening both have the effect of increasing the magnitude of the pressure differential across the vapor compressor system. A user may not apply both of these changes to an actuator at the same time to avoid large pressure differentials and potential damage to the equipment (or vapor compressor system). This restriction causes switcher 405a to further select a subset of actuators whose setpoints may be perturbed in the next ESC iteration so as not to damage the vapor compressor system.

[0070] Also, the input and output constraints can interact. For example, applying an increase in compressor speed and a decrease in expansion valve opening may be empirically OK, but may violate the constraint on the maximum compressor temperature (constraint violation 409) because the vapor compressor system responds to the actuator setpoints applied at a given time. Thus, the control system 405 needs to change the input setpoints of the vapor compressor system actuators at a given time before estimating the gradient to avoid the constraint violation 409. This effectively selects a subset of actuators at a given time, rather than moving all actuators.

[0071] In another embodiment, assume that the system 401 includes a set of systems, each of which is a heating, ventilation, and air conditioning (HVAC) system. The system 401 or set of systems does not use all actuators at the same time. Assume that 10 HVAC systems are used to regulate the ventilation and air conditioning of a building. When the total power capacity of the building is specified, it is expected that not all systems will utilize maximum power at the same time, for example, when the speed of the compressors in each HVAC system reaches its upper limit. The maximum power consumption of the HVAC systems is more than twice the rated power consumption. If the coordinated ESC method commanded all compressors to run at maximum speed, the maximum power consumption would exceed the total power consumption of the building, which may cause the tripping of the building's circuit breaker or even worse. To solve this, an external signal 407 can be provided as an input to the switcher 405a. The external signal 407 can include the current power consumption of the building. The switcher 405a can use the external signal 407 to determine the number of actuators, e.g., compressors, that the switcher 405a can operate without exceeding the power consumption limit or constraint.

[0072] FIG. 4B illustrates a solar power plant 411 including a solar concentrating mirror 413 controlled by a control system 415 according to an exemplary embodiment. The control system 415 corresponds to the control system 100 illustrated in FIG. 1. The solar concentrating mirror 413 includes sectors 1, 2, 3, ..., 16, each sector including a set of mirrors. The mirror sets are arranged in corresponding spatial sectors. Some embodiments are based on the realization that changes in the mirror positions in all spatial sectors have a significant and noticeable effect on the overall performance of the power plant. In this case, the positions of the mirrors in each sector are necessary because the positions of the mirrors need to be controlled or driven separately to avoid undesirable effects on the solar power plant 411. To adjust the positions of the mirrors in each sector, the solar power plant 411 is connected to the control system 415. The control system 415 includes a sector switcher 415a, a stochastic gradient estimator 415b, and an ESC 415c. Sector switcher 415a, stochastic gradient estimator 415b, and ESC 415c correspond to switcher 107, stochastic gradient estimator 111, and ESC 109, respectively, shown in FIG.

[0073] To avoid possible strong impacts on the overall performance of the power plant, the control system 415 corrects (or changes) the position of the solar concentrating mirror 413 in one spatial sector at a time. To that end, the control system 415 obtains partial gradients at each ESC iteration using the SES algorithm implemented by the ESC 415c and the stochastic gradient estimator 415b. The partial gradients are used to estimate the overall gradient. Thus, the estimated overall gradient can be used to correct the position of the solar concentrating mirror in one spatial sector more quickly, without waiting for the calculation of the actual overall gradient, which would require correction of all spatial sectors.

[0074] FIG. 5 illustrates different algorithms executed by the stochastic gradient estimator 111 according to an exemplary embodiment. The algorithms are based on stochastic gradient descent. The algorithms leverage gradients and gradient statistics to provide a robust estimation of the global gradient. The algorithms also include a momentum-based mechanism to quickly identify stride lengths to improve convergence speed. By way of example, the algorithms include, but are not limited to, Adam 501, Adaptive Gradient (Adagrad) 503, and Root Mean Square Propagation (RMSprop) 505. In an exemplary embodiment, the stochastic gradient estimator 111 may be implemented using a neural network model that is used to execute one or more stochastic gradient algorithms described below.

[0075] Adagrad Adagrad (adaptive gradient algorithm) is a modified stochastic gradient descent algorithm with per-parameter learning rates. Adagrad increases the learning rate for parameters with lower density and decreases the learning rate for parameters with higher density. Thus, Adagrad improves convergence performance over standard stochastic gradient descent when the data is sparse and the parameters with lower density have more information. Adagrad has a base learning rate η, but this learning rate is multiplied by the elements of the vector {Gj,j}, which is the diagonal of the cross product matrix. This diagonal is given by the following equation:

[0076]

number

[0077]

number

[0078]

number

[0079] RMSprop RMSprop is a method for adapting the learning rate to each parameter. It divides the learning rate of a weight by a running average of the magnitude of the recent gradient of that weight. Thus, the running average is first calculated as a mean square.

[0080]

number

[0081] where γ is the forgetting factor. The parameters are updated as follows:

[0082]

number

[0083] RMSprop can also work on mini-batches as opposed to only full batches. Adam

[0084]

number

[0085]

number

[0086] Adapting gains works well when the number of operating points is large, such as the operating conditions of a power grid or a group of buildings, or when there are operating constraints that prevent updates of all operating points from being made at every iteration. In such cases, it is not possible to constantly change all vectors of operating points or measure all power outputs simultaneously. Therefore, only some operating points can be changed and only some gradients can be estimated. An estimate of the global gradient vector can be obtained by evaluating statistics of the gradient history, such as in the Adam algorithm 501. Therefore, adaptive gradient methods, such as the Adam algorithm 501, are well suited for these large-scale problems, as they are primarily used in mini-batch gradient-based updates to train deep neural networks to find search directions that yield local optima using random subsets of gradients.

[0087] 7 shows steps of a method 700 performed to control a set of actuators of a system to minimize energy consumption of the system according to an exemplary embodiment. The set of actuators may be controlled with a corresponding set of setpoints. Also, a user can provide optimal setpoints to operate the system with minimal energy consumption. The method 700 includes controlling one or more setpoints for controlling the corresponding actuators to operate the system at optimal setpoints with minimal energy consumption. The method 700 starts at step 701.

[0088] In step 701, multiple setpoint subsets can be created from a setpoint set. Each setpoint in the setpoint subset can be utilized to control each actuator in a corresponding actuator set. The setpoint subsets can be created based on one or more constraints, including at least one of a physical constraint of the system, such as an upper limit at which the system can operate, a legal constraint, such as a legally permitted operating speed of the system, and a business constraint, such as a minimum total energy consumption.

[0089] A setting value subset may be selected from the multiple setting value subsets in step 703. The setting value subset may be selected randomly or deterministically.

[0090] In step 705, one or more set points of the selected subset of set points may be perturbed at each iteration. A dither signal at one or more set points may be used to perturb the one or more set points. In some embodiments, the dither signal corresponds to a sinusoidal signal. Also, the perturbation of the one or more set points of the selected subset of set points is performed based on the first and second moments of a probability distribution of partial gradients of a cost function. The cost function provides a relationship between the set points of the subset of set points and the operating cost of the system.

[0091] In step 707, a global gradient of the cost function can be estimated for each subset of incremental changes in set points. The estimated global gradient serves as a proxy for the actual global gradient. Thus, the control system can optimize the system by perturbing one or more set points that do not have an actual global gradient at each iteration. Also, a distribution of partial gradients is generated based on a history of partial gradients associated with past subsets of set points.

[0092] In step 709, an estimate of the global gradient can be updated based on the probability distribution of the partial gradients generated in each ESC iteration. The estimated global gradient can be updated in each iteration until the actual global gradient is calculated.

[0093] In step 711, the states of a subset of the actuators of the system may be driven towards the setpoints of the perturbed subset, respectively, and the states of the system may be monitored and fed back to the control system 100 until an optimal state of the system is reached.

[0094] Exemplary Implementations 8 illustrates a vapor compressor system 800 implemented with control system 100 to minimize energy consumption of vapor compressor system 800 according to an exemplary embodiment. Vapor compressor system 800 includes different actuators, e.g., variable speed fans, such as indoor unit fan 801 and outdoor unit fan 803, variable speed compressor 805, electronically actuated valves, such as expansion valve 807 and flow reversing valve 809. Vapor compressor system 800 also includes sensors 811 for monitoring the status of vapor compressor system 800 and the status of each actuator of vapor compressor system 800.

[0095] The control system 100 aims to minimize the energy usage of the vapor compression cycle, which is equivalent to minimizing the steady-state energy consumption 813 of the vapor compression cycle.

[0096] Also, the different components of vapor compressor system 800 are correlated to operate vapor compressor system 800 with minimal energy consumption 813. However, the main challenge is to set these different variable components to the minimum power values.

[0097] Vapor compressor system 800 can provide cooling to a building at a particular set point by operating actuators at predetermined values. For example, vapor compressor system 800 operates ten indoor unit fans 801, six outdoor unit fans 803, five compressors 805, three expansion valves 807, and six flow reversing valves 809. The status of each actuator may be monitored by sensors 811 and provided to control system 100.

[0098] During operation of the steam compressor system 800, a user may wish to operate the steam compressor system 800 at a desired optimum setpoint input by the user. To this end, the user fixes the speeds of the five indoor unit fans 801 and operates the other actuators or remaining actuators of the steam compressor system 800 at predefined values. It is a challenge to operate the steam compressor system 800 at a desired setpoint with minimal energy consumption. Therefore, in order to achieve minimal energy consumption, it is necessary to optimize the values ​​at which the remaining actuators are operated depending on the fixed values ​​of the speeds of the five indoor unit fans 801.

[0099] To that end, the control system 100 uses extremum-seeking control with a stochastic gradient algorithm. By implementing extremum-seeking control with a stochastic gradient algorithm, the control system 100 controls or adjusts the operating points (or setpoints) of the remaining actuators (i.e., actuators that do not have fixed setpoints, such as the outdoor unit fan 803, the compressor 805, the expansion valve 807, and the flow reversing valve 809) to achieve minimum energy consumption.

[0100] Based on the execution of the extremum-seeking control by the stochastic gradient algorithm, the control system 100 determines different combinations of set points. The best combination of operating points (i.e., the global optimum) provides the lowest energy consumption. To that end, the control system 100 operates in a closed loop with the vapor compressor system 800. Thereby, the current state of the vapor compressor system 800 corresponding to the perturbed current set points is fed back to the control system 100. Based on the current state of the vapor compressor system 800, the control system 100 determines whether the optimal state corresponding to the input set point has been reached. If the current state of the vapor compressor system 800 has not reached the optimal state of the vapor compressor system 800, the control system 100 repeats the iterations of the extremum-seeking control by the stochastic gradient algorithm until the optimal state is reached.

[0101] For example, obtaining an optimal combination of operating points to achieve minimum energy consumption while fixing the number of indoor unit fans 801 at five may include adjusting the outdoor unit fans 803 to eight, the compressors 805 to six, the expansion valves 807 to two, and the flow reversing valves 809 to five. Thus, based on a determination that at least one actuator is not controllable because its value is fixed by the user, the operating points of the remaining actuators are jointly controlled in real time by performing extremum seeking control by a stochastic gradient algorithm, thereby allowing the steam compressor system 800 to operate at the desired set point 821 without interruption and with minimum energy consumption.

[0102] 9 illustrates control of a heating, ventilation, and air conditioning (HVAC) system 901 using control system 100 according to an exemplary embodiment. An "HVAC" system refers to any heating, ventilation, and air conditioning (HVAC) system that implements a vapor compression cycle. HVAC systems 901 include a very wide range of systems ranging from systems for providing only outdoor air to building occupants to systems for controlling only the temperature of a building or systems for controlling the temperature and humidity of a building.

[0103] The HVAC system 901 is configured to condition a room 900. The room 900 is occupied by occupants 903, 905, 907, and 909. Arrow 911 represents air supplied by the HVAC system 901 to condition the room 900. One of the occupants 903, 905, 907, and 909 can change the temperature of the room 900 by providing inputs (i.e., specific set points and control inputs) to the HVAC system 901. Thus, one or more actuators of the HVAC system 901 can be controlled. Also, during operation of the HVAC system 901, the state of each actuator can be determined. If it is determined that one or more actuators are not controllable, the control system 100 can perform extremum seeking control with a stochastic gradient algorithm.

[0104] The control system 100 controls a number of control inputs based on performing extremum seeking control with a stochastic gradient algorithm to minimize power consumption of the HVAC system 901. The control inputs may include the position of the expansion valve of the HVAC system 901, the speed of the compressor HVAC system 901, the speed of the indoor fan of the HVAC system 901, the speed of the outdoor fan HVAC system 901, etc. This allows the HVAC system 901 to operate with minimal energy consumption.

[0105] Example Implementation 10 is a block diagram illustrating a computer-based control system 1000 according to an exemplary embodiment. The computer-based control system 1000 can be used to control a controlled system (not shown in FIG. 10). The controlled system can include one of an HVAC system, a compressor, an air conditioning system, an audio system, etc. The control system can also include a set of actuators controlled by the computer-based control system 1000 to operate the controlled system at desired optimal set points with minimal energy consumption.

[0106] The computer-based control system 1000 includes several interfaces for connecting the control system 1000 to other systems and devices. The control system 1000 includes an input interface 1001 configured to accept optimal setpoints 1009 desired to operate the controlled system with minimal energy consumption. In some embodiments, the system 1000 includes an input interface configured to obtain the optimal setpoints 1009 (i.e., a stream of acoustic frames) from an input device 1003, which corresponds to a remote control device for controlling the controlled system.

[0107] In some embodiments, the input interface 1001 includes a network interface controller (NIC) 1005 configured to obtain optimal setting values ​​1009 over a network 1007, which may be one or a combination of a wired network and a wireless network.

[0108] A network interface controller (NIC) 1005 is configured to connect the computer-based control system 1000 to a network 1007 via a bus 1023. The network 1007 connects the computer-based control system 1000 to sensing devices, such as input devices 1003. Additionally or alternatively, the computer-based control system 1000 may include a human machine interface (HMI) 1011. The human machine interface 1011 in the computer-based control system 1000 connects the computer-based control system 1000 to a keyboard 1013 and a pointing device 1015. The pointing device 1015 may include a mouse, a trackball, a touchpad, a joystick, a pointing stick, a stylus, or a touch screen, among others.

[0109] The computer-based control system 1000 includes a processor 1021 configured to execute stored instructions 1017 and a memory 1019 that stores instructions executable by the processor 1021. The processor 1021 may be a single-core processor, a multi-core processor, a computing cluster, or any number of other configurations. The memory 1019 may include random access memory (RAM), read-only memory (ROM), flash memory, or any other suitable memory system. The processor 1021 may be connected to one or more input and output devices via a bus 1023.

[0110] According to some embodiments, the instructions 1017 may implement a method for controlling a set of actuators of a controlled system so as to minimize the energy consumption of the controlled system. To that end, the computer memory 1019 stores a switcher 107, an extremum seeking controller (ESC) 109, a stochastic gradient estimator 111, and a feedback controller. The switcher 107 is configured to create multiple setpoint subsets from one setpoint corresponding to the set of actuators. The setpoint subsets are created based on one or more constraints, such as physical constraints of the controlled system, legal constraints of the controlled system, and business constraints of the controlled system. The switcher 107 is also configured to select at least one setpoint subset from the multiple setpoint subsets. To that end, the switcher 107 is configured to select a subset of actuators from the set of actuators, and the subset of actuators may be selected at least randomly or semi-randomly or deterministically.

[0111] The ESC 109 perturbs one or more setpoints of the selected subset of setpoints at each iteration of the ESC 109 using an extremum seeking control algorithm. To perturb the one or more setpoints, the ESC 109 uses a dither signal at the one or more setpoints. The dither signal corresponds to a sinusoidal signal. Furthermore, the one or more setpoints of the selected subset of setpoints are perturbed based on first and second moments of a probability distribution of partial gradients of the cost function generated by the stochastic gradient estimator 111.

[0112] The stochastic gradient estimator 111 determines a partial gradient associated with the selected setpoint subset. The partial gradient corresponds to a gradient of the cost function with respect to the selected setpoint subset. One or more setpoints of the selected setpoint subset are perturbed. The stochastic gradient estimator 111 also generates a probability distribution of partial gradients associated with the selected (or current) setpoint subset and the previously selected setpoint subsets obtained at each ESC iteration. In addition, the stochastic gradient estimator 111 calculates the first moment, i.e., the mean moment, of the probability distribution of the partial gradients and the second moment, i.e., the variance, of the probability distribution of the partial gradients to statistically estimate the global gradient, and determines a statistical estimate of the global gradient. The stochastic gradient estimator 111 updates the estimate of the global gradient based on the probability distribution of the partial gradients generated at each ESC iteration.

[0113] Furthermore, the feedback controller 113 drives the state of the controlled system based on the perturbed subset of setpoints in the ESC iterations until a state of the controlled system corresponding to the optimal setpoints input by the user (i.e., the optimal state) is reached. Thus, by continuously feeding back the current state of the controlled system to the ESC 109, the feedback controller 113 further perturbs the other subsets of setpoints until the controlled system operates in an optimal state.

[0114] In an exemplary embodiment, the computer-based control system 1000 may include an output interface 1031 configured to inform a user on a display device 1029 that the controlled system is operating optimally and consuming a minimal amount of energy. Examples of the display device 1029 include a computer monitor, a television, a projector, or a mobile device, among others. The computer-based control system 1000 may also be connected to an application interface 1025. The application interface 1025 is configured to connect the computer-based control system 1000 to external devices 1027.

[0115] Embodiment The above description provides exemplary embodiments only and is not intended to limit the scope, application, or configuration of the present disclosure. Rather, the following description of exemplary embodiments provides those skilled in the art with an enabling description for implementing one or more exemplary embodiments. Various changes in the function and arrangement of elements are contemplated without departing from the spirit and scope of the subject matter set forth in the appended claims.

[0116] In the above description, specific details are described to provide a thorough understanding of the embodiments. However, those skilled in the art can understand that the embodiments can be practiced without these specific details. For example, systems, processes, and other elements in the disclosed subject matter may be shown as components in block diagrams so as not to obscure the embodiments in unnecessary detail. Also, well-known processes, structures, and techniques may be shown without unnecessary detail so as not to obscure the embodiments. Moreover, like reference numbers and names in the various drawings refer to like elements.

[0117] Also, each embodiment may be described as a process that is depicted as a flowchart, a flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe operations as a sequential process, many operations may be performed in parallel or simultaneously. Also, the order of operations may be changed. A process may be terminated when the operations of a process are completed, but the process may include additional steps not discussed or shown. Additionally, every operation in a specifically described process need not be included in every embodiment.

[0118] A process may be a method, a function, a procedure, a subroutine, a subprogram, etc. When a process is a function, the termination of the function corresponds to a return of the function to the calling function or the main function.

[0119] Furthermore, embodiments of the disclosed subject matter may be implemented, at least in part, manually or automatically. The manual or automated implementation may be implemented, or at least assisted, by machine, hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented by software, firmware, middleware, or microcode, the program code or code segments to perform the necessary tasks may be stored in a machine-readable medium. A processor may perform the necessary tasks.

[0120] The various methods or steps outlined herein may be coded as software executable on one or more processors employing any one of a variety of operating systems or platforms. Moreover, such software may be written using any of a number of suitable programming languages ​​and / or programming or scripting tools, and compiled as executable machine language code or intermediate code that runs on a framework or virtual machine. Typically, the functionality of the program modules may be combined or distributed in various embodiments as desired.

[0121] The embodiments of the present disclosure may be embodied as methods, which are provided as examples. The operations performed as part of the method may be ordered in any suitable manner. Thus, embodiments may be constructed that perform operations in a different order than those performed sequentially in the exemplary embodiments, and that may include performing some operations simultaneously. Although the present disclosure has been described with reference to certain preferred embodiments, it should be understood that various other adaptations and modifications may be made within the spirit and scope of the present disclosure. Accordingly, the appended claims are intended to cover all such variations and modifications that are within the true spirit and scope of the present disclosure.

Claims

1. a control system for controlling a set of actuators of the system, comprising: The control system includes: At least one processor; a memory for storing instructions for forming modules of the control system; the at least one processor is configured to execute the instructions to form the modules of the control system; The module includes a switcher; The switcher includes: configured to generate a plurality of subsets of settings from a set of settings, the subsets of settings controlling respective ones of the set of actuators; and configured to select a setpoint subset from the plurality of setpoint subsets, the setpoint subset controlling a respective setpoint subset of actuators; The module further includes an extreme value seek controller (ESC); The ESC is configured to perturb at each iteration one or more setpoints of the selected setpoint subset based on first and second moments of a probability distribution of partial gradients of a cost function related to an operating cost of the system, the setpoints of the setpoint subset generated in a current ESC iteration and in a previous ESC iteration; The module further comprises a stochastic gradient estimator; The stochastic gradient estimator may be estimating a global gradient of the cost function for each incremental change in the set of settings; configured to update an estimate of the global gradient based on the probability distributions of the partial gradients generated at each ESC iteration; The module further includes a feedback controller; The feedback controllers are configured to respectively drive states of a subset of the actuators of the system towards the perturbed subset of setpoints.

2. To estimate the global gradient, the stochastic gradient estimator is further configured to calculate a gradient of the cost function for each setting value in the set of settings; The control system of claim 1 , wherein each setpoint in the set of setpoints is perturbed at least some of the times.

3. To estimate the partial gradients, the stochastic gradient estimator is further configured to calculate a gradient of the cost function with respect to the selected subset of settings; The control system of claim 1 , wherein one or more set points of the selected subset of set points are perturbed.

4. To perturb the one or more set points, the ESC is configured to use a dither signal at the one or more set points; The control system of claim 1 , wherein the dither signal corresponds to a sinusoidal signal.

5. The ESC is determining whether to increase or decrease the one or more set values ​​based on the first moment; The control system of claim 1 , configured to determine a stride length associated with an increase or decrease in the one or more set points based on a ratio of the first moment to a square root of the second moment.

6. The control system of claim 1 , wherein the stochastic gradient estimator implements at least one of an Adaptive Momentum Estimation (Adam) algorithm, an Adaptive Gradient (Adagrad) algorithm, and a Root Mean Square Propagation (RMSprop) algorithm.

7. The switcher is configured to create the subset of settings based on one or more constraints; The control system of claim 1 , wherein the one or more constraints include at least one of a physical constraint, a legal constraint, and a business constraint of the system.

8. the cost function is related to the energy consumption of the system; The control system of claim 1 , wherein the at least one processor is further configured to minimize the cost function.

9. 2. The control system of claim 1, wherein to select the setpoint subset, the switcher is further configured to select the actuator subset based on at least one of a random method, a deterministic method, and a semi-random method.

10. each actuator of the actuator set is weighted for selection into the actuator subset; The control system of claim 9 , wherein the weighting value of each actuator is a function of the energy consumption of the actuator.

11. 1. A method for controlling a set of actuators of a system, the method comprising: generating a plurality of subsets of settings from a set of settings, each subset of settings controlling a respective one of the set of actuators; selecting a setpoint subset from the plurality of setpoint subsets, the setpoint subset controlling a respective subset of actuators; perturbing at each iteration one or more setpoints of the selected setpoint subset based on first and second moments of a probability distribution of partial gradients of a cost function related to an operating cost of the system, the setpoints of the setpoint subset generated at a current ESC iteration and at a previous ESC iteration; estimating the overall gradient of the cost function for incremental changes in each subset of settings; updating an estimate of the global gradient based on the probability distributions of the partial gradients generated at each ESC iteration; and respectively driving states of the subset of actuators of the system toward the perturbed subset of setpoints.

12. To estimate the overall gradient, the method further includes calculating a gradient of the cost function for each setting value of the set of settings values; The method of claim 11 , wherein each setting in the set of settings is perturbed.

13. To estimate the partial gradients, the method further includes calculating a gradient of the cost function with respect to the selected subset of settings; The method of claim 11 , wherein one or more of the setting values ​​of the selected subset of setting values ​​are perturbed.

14. To perturb the one or more set points, the method is configured to use a dither signal at the one or more set points; The method of claim 11 , wherein the dither signal corresponds to a sinusoidal signal.

15. To perturb one or more setting values ​​of the selected subset of setting values ​​at each iteration, the method comprises: determining whether to increase or decrease the one or more set points based on the first moment; and 12. The method of claim 11, further comprising: determining a stride length associated with an increase or decrease in the one or more set points based on a ratio of the first moment to a square root of the second moment.

16. The method of claim 11 , further comprising: executing at least one of an Adaptive Momentum Estimation (Adam) algorithm, an Adaptive Gradient (Adagrad) algorithm, and a Root Mean Square Propagation (RMSprop) algorithm.

17. The subset of settings is created based on one or more constraints; The method of claim 11 , wherein the one or more constraints include at least one of physical constraints, legal constraints, and business constraints of the system.

18. The method of claim 11 , wherein the cost function is related to an energy consumption of the system.

Citation Information

Patent Citations

  • regulator

    JP2004164431A

  • Optimal control device, control method and computer program

    JP2019148988A

  • Dither switching extremum seeking control

    US20160132027A1

  • Building energy management system with energy analytics

    US20170212482A1