The following disclosure relates generally to techniques for controlling operations of one or more batteries whose behavioral responses are modeled using information gathered from active excitation of the batteries, such as to maximize battery life while performing other battery power use activities.
Attempts have been made to implement automated control systems for various types of physical systems having inputs or other control elements that the control system can manipulate in an attempt to provide desired output or other behavior of the physical systems—one example of such automated control is to manage operations of a battery that is discharging electrical power to support a load and/or is charging using electrical power from a source, while uncertainty exists about an internal temperature and/or chemical state of the battery, and potentially with ongoing changes in load, source and/or internal state of the battery. Such automated control systems have used various types of architectures and underlying computing technologies to attempt to implement such functionality.
However, various difficulties exist with existing automated control systems and their underlying architectures and computing technologies for battery systems, including with respect to determining how the systems will respond in different situations and to managing uncertainty in a current state of a system being controlled and in how different types of inputs will affect operation of the automated control systems.
Techniques are described for implementing automated control systems to control or otherwise manipulate at least some operations of batteries and of target physical systems that use them, such as based at least in part on models of the batteries' dynamic behaviors that are generated by gathering and analyzing information about the batteries' operations under varying conditions (e.g., under varying battery charge levels and/or loads). In at least some embodiments, the described techniques include performing excitation of a target battery system (e.g., for a lithium ion battery cell) by, for each of multiple charge levels of the battery and for each of multiple resistive loads, injecting multi-frequency microvolt pulses into the battery (e.g., separate pulses for each of the battery's anode and cathode), and using intelligent sensors (also referred to generally as “active sensors” herein) to collect time changes of the responses to those pulses. Information about the inputs and the responses is then analyzed and used to generate a model of the battery's behavior, such as an incremental parametric non-linear state model representing the internal dynamics of the battery (e.g., with parameters such as voltage, current, power, etc.), which is further used to control additional ongoing battery operations (e.g., to determine further control actions to perform for the battery), including in some cases to update a previously existing model of the battery (e.g., an existing model that is based at least in part on other types of information about the battery) and to use the updated battery model to control whether and how much power is supplied to and/or extracted from the battery (e.g., in a current or future time period). Additional details are described below related to performing such improved modeling of a target system's state and operational characteristics via battery excitation activities, and to using a resulting model of the target system in particular manners, and some or all of the described techniques are performed in at least some embodiments by automated operations of one or more Model Realization System (MRS) components, optionally as part of or in conjunction with one or more CDD (Collaborative Distributed Decision) systems controlling specific target systems that include one or more batteries.
In at least some embodiments, the described techniques include learning and generating a dynamic model (e.g., a parametric linear model) of a battery (e.g., a lithium ion battery cell) that characterizes flow of its internal state and the corresponding effect of control operations performed on the battery, such as during or before operations to control the battery operations. By injecting electrical pulses into the battery to generate responses, internal dynamics of the battery may be measured (e.g., to reflect the internal battery chemistry, such as number of free ions at the anode and cathode; internal battery temperature; etc.) and used for generating the dynamic battery model with values for one or more parameters (e.g., voltage, current, power, etc.). Furthermore, by measuring battery responses at different charge levels and using different resistive loads, the generated parametric model better represents operations of the battery across a range of operating conditions.
In at least some embodiments, the described techniques are further used to provide a feedback control system for a target system having one or more batteries that dynamically change during operation, including to generate and use a model of the target system that is improved in real-time by generating and using updated models based on information generated by active sensors. The described techniques include injecting signals into the target system in such a manner that they do not substantially alter the behavior of the target system (referred to herein as a “non-demolition” strategy), but with the injected signals eliciting a response that reflects the internal characteristics of the target system. In at least some such embodiments, the described techniques encode the dynamics of the target system under control in a function of the state of the target system referred to as a data Hamiltonian model, and further generate updates in real-time to the model of the dynamics of the target system. Some characteristics of the target system under control may not be completely known (e.g., internal state of the battery), with a data Hamiltonian model encoding the known information based at least in part on modeling performed by a model realization system.
The described techniques may provide a variety of benefits and advantages in various situations. In particular, many traditional control system approaches involving batteries have been ineffective for controlling complex systems in which internal state information cannot be determined and/or in which models of the batteries' behavior are difficult or impossible to obtain (e.g., via conventional techniques for attempting to describe dynamics via encoding physical principles and empirical relationships in complex mathematical representations), while the use of the described techniques overcome such problems based at least in part by actively gathering and analyzing information about operations of batteries under varying conditions such as battery charge levels and/or loads (e.g., by probing the internal state of the batteries being controlled in a non-demolition manner). Such traditional control system approaches typically involve the system designers beginning with requirements for battery system behavior, using the requirements to develop a static model of the system with constraints and other criteria, and attempting to optimize the run-time battery system operations in light of the constraints and other criteria. Conversely, in at least some embodiments, the described techniques do not need to use such constraints and other criteria, nor to develop such a resulting static model, nor to do such optimization—instead, actual behavior of a battery system is measured and used to generate a corresponding behavioral model. Additional non-exclusive examples of such benefits and advantages include the following (with further details provided herein): improving how a current state of a target system is modeled, such as to generate a function and/or or structure that models internal operations of the target system based on actual data that is collected from active excitation of the target system rather than merely attempting to estimate target system state; increasing capabilities for handling uncertainty management and/or optimal dispatch and commitment and/or anomaly detection and response; etc.
For illustrative purposes, some embodiments are described below in which specific types of data is gathered and used in particular manners to perform specific types of control actions for specific types of target systems, including via active excitation and corresponding measurement of particular types of components. However, it will be understood that such described techniques may be used in other manners in other embodiments, including with other types of target systems and active excitation techniques, and that the invention is thus not limited to the exemplary details provided.
In this example,
With respect to such an overall total system model HT of a target system that includes an battery, the target system may, for example, include one or more batteries used to store and provide electrical power (e.g., for a local load, for an electrical grid that supports various loads in various locations, etc.), and the automated operations to control the target system may include using characteristics of at least one such battery in the target system to perform automated control of DC (direct current) power that is provided from and/or stored by that battery. In such embodiments, the automated operations of one or more CDD agents may include generating an overall total system model of battery performance by receiving information about inputs to, outputs from, and other attributes related to the one or more batteries (e.g., electrical current and/or voltage being output for use, electrical current and/or voltage being input for storage, temperature readings external to the one or more batteries as part of their surrounding environment, etc.), and using such information as part of modeling current response behavior characteristics of the one or more batteries—given such modeled information, the CDD agent(s) that control the one or more batteries may then use such information to make decisions on current and/or future control actions in a manner that reflects actual behavior of the target system. In at least some embodiments, the response behavior of the battery is modeled as follows:
{dot over (x)}=Aq
where x is the state of the battery, u is a vector of input (control), y is a vector of responses, qi represents one of multiple battery charge levels, Li represents one of multiple resistive load levels, and A, B and C represent learned modeled factors (e.g., constants).
In this example, the control system 195a further performs a control loop to control operation of the battery 195b of the target system, such as to drive the target system to a desired dynamic behavior. In particular, the control system may include a CDD agent (as discussed in greater detail below with respect to
As part of controlling use of a lithium ion battery system in
In addition, while in some embodiments the model realization system and control agent may be implemented as separate components (e.g., with the model realization system implemented in whole or in part at the location of the battery, and/or in whole or in part at a remote location), in other embodiments the control agent and model realization system may be implemented as a single component (whether at the location of the battery or remote from it). Further details regarding operation of the control agent to determine operations to take for the battery are discussed in greater detail below.
However, before further discussion of the model realization system and its functionality, a more general description of the control of target systems using such representations and other models is provided.
In particular,
In particular, target system 1160 and target system 2170 are example target systems illustrated in this example, although it will be appreciated that only one target system or numerous target systems may be available in particular embodiments and situations, and that each such target system may include a variety of mechanical, electronic, chemical, biological, and/or other types of components to implement operations of the target system in a manner specific to the target system. In this example, the one or more users (not shown) may interact with the CDD system 140 to generate an example automated control system 122 for target system 1, with the automated control system including multiple decision modules (or “agents”) 124 in this example that will cooperatively interact to control portions of the target system 1160 when later deployed and implemented. The interactions of the users with the CDD system 140 to create the automated control system 122 may involve a variety of interactions over time, including in some cases independent actions of different groups of users. In addition, as part of the process of creating and/or training or testing automated control system 122, it may perform one or more interactions with the target system 1 as illustrated, such as to obtain partial initial state information, although some or all training activities may in at least some embodiments include simulating effects of control actions in the target system 1 without actually implementing those control actions at that time. In some embodiments and situations, such initial user interactions may be used to generate an initial rule-based overall system model of a target system that is based at least in part on binary rules.
After the automated control system 122 is created, the automated control system may be deployed and implemented to begin performing operations involving controlling the target system 1160, such as by optionally executing the automated control system 122 on the one or more computing systems 190 of the CDD system 140, so as to interact over the computer networks 100 with the target system 1. In other embodiments and situations, the automated control system 122 may instead be deployed by executing local copies of some or all of the automated control system 122 (e.g., one or more of the multiple decision modules 124) in a manner local to the target system 1, as illustrated with respect to a deployed copy 121 of some or all of automated control system 1, such as on one or more computing systems (not shown) that are part of or otherwise associated with the target system 1. In addition, in embodiments and situations in which initial user interactions are used to generate an initial rule-based system model of a target system using binary rules, the initially deployed automated control system 122 may be based on such an initial rule-based system model, and data from the operation of the target system under control of that initially deployed automated control system 122 may be gathered and used to include information about current characteristics of the target system in a revised model of the target system. Furthermore, in at least some embodiments, a model realization system may further generate a model of a battery within a target system in the manner discussed herein, whether before or during other operations of an automated control system for a target system that includes the battery, and whether for use instead of or in addition to any user-specified battery model (e.g., to replace or supplement/update any such user-specified battery model, to update an existing battery model with additional details, etc.).
In a similar manner to that discussed with respect to automated control system 122, one or more users (whether the same users, overlapping users, or completely unrelated users to those that were involved in creating the automated control system 122) may similarly interact over the computer network 100 with the CDD system 140 to create a separate automated control system 126 for use in controlling some or all of the target system 2170. In this example, the automated control system 126 for target system 2 includes only a single decision module (or “agent”) 128 that will perform all of the control actions for the automated control system 126. The automated control system 126 may similarly be deployed and implemented for target system 2 in a manner similar to that discussed with respect to automated control system 122, such as to execute locally on the one or more computing systems 190 and/or on one or more computing systems (not shown) that are part of or otherwise associated with the target system 2, although a deployed copy of automated control system 2 is not illustrated in this example. It will be further appreciated that the automated control systems 122 and/or 126 may further include other components and/or functionality that are separate from the particular decision modules 124 and 128, respectively, although such other components and/or functionality are not illustrated in
The network 100 may, for example, be a publicly accessible network of linked networks, possibly operated by various distinct parties, such as the Internet, with the CDD system 140 available to any users or only certain users over the network 100. In other embodiments, the network 100 may be a private network, such as, for example, a corporate or university network that is wholly or partially inaccessible to non-privileged users. In still other embodiments, the network 100 may include one or more private networks with access to and/or from the Internet. Thus, while the CDD system 140 in the illustrated embodiment is implemented in an online manner to support various users over the one or more computer networks 100, in other embodiments a copy of the CDD system 140 may instead be implemented in other manners, such as to support a single user or a group of related users (e.g., a company or other organization), such as if the one or more computer networks 100 are instead an internal computer network of the company or other organization, and with such a copy of the CDD system optionally not being available to other users external to the company or other organizations. In addition, the CDD system 140, each of its components (including component 142 and optional other components 117, such as one or more CDD Control Action Determination components and/or one or more CDD Coordinated Control Management components and/or one or more CDD Model Realization Systems), each of the decision modules, and/or each of the automated control systems may include software instructions that execute on one or more computing systems (not shown) by one or more processors (not shown), such as to configure those processors and computing systems to operate as specialized machines with respect to performing their programmed functionality.
As noted above, various types of data may be obtained and used as part of modeling operational characteristics of a target system in a general overall model, including information about prior input data to the target system and resulting behavior of the target system. In some embodiments and situations, such data may include data that is gathered in an automated manner from one or more types of passive hardware sensors that do not use the types of excitation information discussed elsewhere herein, and in some embodiments and situations, such data may include information about actions of human users or otherwise information about such humans. The term “sensor” and “sensor data” as used herein generally refers to such data regardless of source or type, including data from hardware sensors, unless otherwise indicated with respect to a particular situation. In addition, the modeling of the current overall characteristics of a target system and/or of current internal state of the target system's batteries via excitation activities may in at least some embodiments be performed to complete or repair or otherwise address conflicts in state information for one or more parts of the target system, such as from lack of sufficient internal state structure information or other information, and to enable learning of or other improvements to a function or other model of the target system's internal state and operational characteristics. Additional details are included below related to obtaining and using such sensor data.
While not illustrated in
As noted above, in at least some embodiments, the model of a target system to be controlled is encoded as a data Hamiltonian model that is a function of three types of variables (state variables, momentum variables and control variables), and is composed of three additive elements (the physical model, the constrained model and the learned model). The physical and constrained models are determined respectively by the physical principles characterizing the system and operational requirements. The learned model is generated by a model realization system from the active sensor signals. In particular, the three types of variables used in the function for the data Hamiltonian model include a vector defining the state of the battery, a vector defining the momentum of the battery, and a vector of action variables that control the battery. The three additive elements that compose the data Hamiltonian model include three Hamiltonians (H0, HC and ΔHB), where H0 is the physical Hamiltonian of the battery, HC is the constrained Hamiltonian representing the known operational and requirement constraints, and ΔHB is the learned Hamiltonian as a function of collecting data from the active sensors, with the total Hamiltonian model in the following form:
HT=H0+HC+ΔHB.
H0 and HC are determined from stored operational rules and historical data of the battery. The total Hamiltonian model HT has the same properties of the Hamiltonian of classic mechanics, but adapted to electrical devices. In addition to the total Hamiltonian model HT that characterizes the dynamic target system, a control system implemented by the described techniques may in some embodiments use a specified desired behavior Hamiltonian HD, which reflects the desired behavior of the system under control, and affects the dynamics of the control signal produced by the control system.
The total Hamiltonian model HT encodes the evolution of the battery system under control, with the evolution represented in the form of the extended Hamilton Jacobi equations, as follows:
where q(t) is the state vector of the battery being learned, p(t) is their momentum, and u(t) is the control action vector. The first two equations are classic evolution equations of the dynamics of the dynamic target system, and the last equation describes control of the battery on the DC side to satisfy constraints and approximate the desired behavior represented by HD. The parameter is an empirical parameter to ensure stability of the control system.
Turning now to
With respect to
As previously noted, in at least some embodiments, a model of a battery's dynamic behavior is generated by gathering and analyzing information about the batteries' operations under varying conditions (e.g., under varying battery charge levels and/or loads). As part of doing so, a pulse signal is injected for each range of charge level, and sensors' time response is measured and used for generating a parametric dynamic model of the battery. This process is repeated for each range of charge level, for each of several resistive loads. The range may be determined, for example, by selecting the largest range for each level that is consistent with the sensitivity of the battery to charge and load changes. In addition, the operations of the model realization system may be carried out in some embodiments by real-time software that includes the computation of the estimated battery charge, and generates a linear parametric model of the dynamics of the voltage, current and power of the battery as a function of load and temperature. The generating of the parametric linear model may use dynamic realization and filtering algorithms to estimate the parameters of the model for each range of charge and load, and also include a process for determining the quality of the generated model, and whether the selected charge and load ranges are correct. For the purpose of these examples, a battery cell is considered standard (e.g., acceptable for use) if its' model parameters generate a metric by simulation that is within the acceptable value for the corresponding metric of the base battery cell of its kind.
It is noted that the use of an impulse response method to measure the system transfer function leads to potential safety risks to the battery as low-frequency oscillations may occur inside the battery. The frequency of these oscillations is typically on the order of 1-5 Hz. If not properly controlled, irreversible damages to the battery can quickly occur. To prevent such damages, a PID (proportional-integral-derivative) controller with feedback control may be used (e.g., implemented in the Raspberry Pi architecture). To achieve safety control, a PID controller may be used in such embodiments to drive a power amplifier in order to counter-act the voltage induced on the battery by the low-frequency oscillation. The battery voltage is measured in real-time and is used as the feedback signal to compare with the expected target voltage (e.g., time-average voltage). A digital low-pass filter may further be implemented to avoid interference with high-frequency response of the battery, to improve efficacy of the impulse response measurement.
Turning to information 200A of
Y(s)=G(s)u(s)
u(s)=H(s)e(s)
e(s)=YT(s)−Y(s)
where Y is the instantaneous output voltage of the battery, and YT is the target voltage for the PID controller, which can be the moving time-averaged value of Y. Therefore, the system transfer function is
where P(s)(k) and Q(s)(m) are k-th and m-th order polynomials with k<=m. In this particular example, only proportional and integral controls are used for the PID controller:
i.e.,
And the transfer function of the battery is known (e.g., is given by the manufacturer), and takes the following general form:
where the terms
and
grossly describe the chemistry, phase, and low-pass filtering characteristics of the battery, respectively. The parameters α, β, γ, ξ, ω, k1, k2 are battery-specific and are known. Note that the double-pole at s=0 ensures sufficient attenuation at DC. By plugging Equations (B) and (C) into (A), the overall system transfer function should take the following form:
where αi(i==0 . . . 3) and βj(j=0 . . . 3) are given by the parameters α, β, γ, ξ, ω, k1, k2, kp, kl in Equations (B) and (C). Note that, as shown in Equation (C), G(s) is a function of the voltage signal frequency, which is different from the frequency component of s=σ+jω in Laplace transform. A pole localization strategy given by
is used, which matches the polynomial orders in Equation (D). The zero- and pole-locations of Equation (E) are chosen in this example as design parameters to satisfy the following design objectives:
Low-frequency band-pass filtering
Zero phase-shift for the overall system
Guaranteed stability within the frequency pass-band.
Finally, by equating the fractional polynomials given in Equations (D) and (E), the governing parameters of the PID controller (i.e., kp and k1) can be expressed in terms of battery-specific and design parameters α, β, γ, ξ, ω, k1, k2, k, δ, ϵ, all of which are known. In this example, the term AC is used to refer to voltage (or current) that varies rapidly in time (i.e., high frequency signal, e.g., >100 kHz), and DC is used to refer to voltage (or current) that changes slow in time (i.e., low frequency, e.g., <10 Hz). The intermediate frequencies can take various forms.
Information 202A of
In one example of the systems illustrated in information 202A of
Information 200B of
With respect to the examples of
where e(t) is the time-dependent error function (the input to H in information 200A of
Therefore, the transfer function is given by
Using Equation (F), the following can be written:
Using the Adams-Bashforth method gives
After rearranging the terms, the following equation results:
which gives an example formula for implementation of the PID incremental control model.
Information 200C of
In at least some situations, an incremental model used to describe system dynamics is considered linear within a specified incremental time interval. With respect to the described techniques for the examples above involving generating a numerical model of a given system via learning, they may use characterization of the system using experimentally obtained data to train a predetermined generalized system model. In the context of modeling an electrical system, carefully designed small “perturbative signals” may be used as the input to the electric circuit without disrupting the existing system states. By doing so, an input-output relation is established for the given system. The output signals in response to the perturbative input signals are subsequently detected as the system response, which fully characterizes a locally linear time-invariant (LTI) system.
As part of studying an electrical system, a fundamental question may include what would the output signal be for any given input signal. As there is an infinite number of possible input signals in the time domain, the input-output relationship may be analyzed in the frequency domain via Fourier transform. For this reason, it is beneficial to probe the system with input at multiple frequencies that cover the spectrum of interest, and detect the output at frequencies of interest. Note that the input and output spectrum are not necessarily the same for any given system. To achieve efficient sampling in the frequency domain, an impulse response method can be used to characterize the system in the frequency domain, which is sufficient to fully characterize any LTI system. For nonlinear systems, such as the battery discussed in these examples, this technique is still valid for incremental models as the changes in system states are small compared to the system nonlinearity.
Mathematically, an impulse can be treated as a Dirac delta function. Using an impulse as the input, the response of the system is termed the impulse response. As an impulse in the time domain translates to a constant value (unity for all frequencies) in the frequency domain, the impulse response gives the full-frequency response of the system. In the time domain, the impulse response is the convolution of the transfer function and the Dirac delta function, which gives the same result:
h(t)=∫h(t−T)δ(T)dT
i.e., the impulse response of the system is the system transfer function in time domain. For a given dynamic system defined as
δ{dot over (x)}=Aδx+Bδu
δy=Cδx
where δy is an observation of state δy for the input δu.
In the incremental model,
x(t+Δ)=x(t)+δx(t+Δ)
u(t+Δ)=u(t)+δu(t+Δ)
The relationship between the impulse response function (i.e. the transfer function) and the parameters of the system dynamics (A, B, and C) can then be determined.
The time domain transfer function of the system dynamics described by the incremental model can be expressed in the following form:
h(t)=CeAtB (1)
This can be shown as follows below. For the dynamic system described above without the external control u, the homogeneous equation results as follows:
δ{dot over (x)}=Aδx
The solution of this homogeneous equation is
δx(t)=eAtδx(0)
Including the external control u provides the following:
δ{dot over (x)}=Aδx+Bδu (2)
If an intermediate variable z is defined, such that
δx=eAtz (3)
the time derivative of Equation (3) is
δ{dot over (x)}=AeAtz+eAtż (4)
Plugging Equation (3) into Equation (2) gives
δ{dot over (x)}=AeAtz+Bu (5)
Comparing Equations (4) and (5) yields
eAtż=Bu (6)
From Equation (6),
ż=e−AtBu (7)
Integrating Equation (7) provides
Multiplying both sides of Equation (8) by e−At provides
Plugging Equation (3) into Equation (9) and knowing that z(0)=δx(0) by evaluating Equation (3) at t=0 gives
Let the initial incremental state be zero
δx(0)=0
Equation (10) becomes
As the observable is related to the state by
δy(t)=Cδx(t)
Equation (10) can be written as
According to the impulse response theory, when the input is a delta function, i.e.,
u(t)=δ(t)
the output, i.e., δy(t), in Equation (12) becomes the time domain transfer function of the system: i.e.,
h(t)=CeAtB
Note: A, B, and C are parametric matrices whose initial values can be obtained through Kalman minimum-state realization algorithm. C is the same as the observation matrix H used in Kalman Filter Model (not to be confused with Hamiltonian notation discussed elsewhere herein).
With respect to Kalman minimal-state realization, in the Laplace domain, Equation (1) becomes the following:
h(s)=C(sI−A)−1B (13)
Suppose the system has n states, m inputs/controls, and k outputs/observables: the dimensions of h, A, B, and C are k×m, n×n, n×m, and k×n, respectively. In general, the transfer function in time domain is
For each hij, where i=1, . . . , k and j=1, . . . , m, its Laplace transform can be written in the form of
where pij and qij are polynomials.
Therefore, the complete system transfer function in Laplace domain is
which can be rewritten as
where Δ(s) is the minimum common multiple of qij's, i.e., all of the polynomial denominators. Using Cramer's rule gives
where cof(A) is the cofactor matrix of A, and det(A) is its determinant. It is noteworthy that
Δ(s)=det(sI−A).
Providing
det(sI−A)=sn+pn−1sn−1+ . . . +p1s+p0 (15)
and
cof(sI−A)=βn−1sn−1+ . . . +β1s+β0 (16)
where pi(i=0, . . . , n−1) is scalar and βj(j=0, . . . , n−1) is n-by-n matrix.
From Equation (14),
det(sI−A)I=(sI−A)cof(sI−A)
Therefore
(sn+pn−1sn−1+ . . . +p1s+p0)I=(sI−A)(βn−1sn−1+ . . . +β1s+β0) (17)
Equating same-order terms on both sides of Equation (17) gives
sn: I=βn−1=>βn−1=I
sn−1: pn−1I=−Aβn−1+βn−2=>βn−2=A+pn−1I
. . .
sn−k+1:βn−k=Ak−1αpn−1Ak−2+ . . . +pn−(k−1)A+pn−kI
. . .
s1: β0=An−1+pn−1An−2+ . . . +p1A+p0I (18)
From Equations (13-16),
Note that if h(t) is linear, h(s) is rational. Using polynomial regression (and specifying an appropriate polynomial order), the experimental data (i.e., the time-domain system impulse response) can be described by
For each of the m input/control signals, k output/observation signals are acquired. Therefore, Σ αjsj is a scalar polynomial and [Σ hisi]k×m is a k-by-m matrix of polynomials. Equating Equations (19) and (20) gives
Δ(s)=Σαjsj=Σpjsj (21)
and
[Σhisi]k×m=c(Σβisi)B (22)
Therefore, polynomial regression of experimental data gives hi and αj, the latter of which is equal to pj according to Equation (21). For the chosen controllability form, pj uniquely determines the A matrix. Plugging A and pj into Equation (18), βl can be computed, and matrices C and B can be solved for by plugging βi into Equation (22) and equating same-order terms. Note that the solutions of C and B are not unique, but if B is given/chosen, C becomes unique. Suppose the system has a dimension of n with m inputs and k outputs, A would be an n-by-n matrix, B would be n-by-m, C would be k-by-n, and hi would be n-by-n. For a canonical controllable system with n states, m inputs/controls, and k outputs/observables,
To construct A, B, and C, solve n+m+k×m unknowns, the number of which is typically smaller than that of knowns obtained from the measurement.
As one specific example, consider a number of dimension/states of a battery system to be 4, namely: voltage, current, power, and temperature. Using the canonical controllable form gives
If 2 controls are used and 3 observables are made,
and
The general form of the system impulse response is known in the time domain, Equation (1). An alternative to Kalman minimal-state realization method described above is to generate the system model by data regressions on experimental data h(t) directly. If A, B, and C are scalars, taking natural logarithms of both sides of Equation (1) yields
ln(h(t))=ln C+At+ln B=At+(ln C+ln B) (23)
where h(t) is the time-domain impulse response (experimental data), and A, B, C define the system dynamics, controls, and observations, respectively. Using Equation (23), the system impulse response function (i.e., the system model) becomes linearized with respect to t. Through linear data regressions, the parameters A, B, and C can be determined. However, as A, B, and C are matrices/vectors in general, taking logarithms becomes problematic algebraically. The following method can be used to achieve the same direct data regression. Consider the power expansion of an exponential function
In matrix algebra, the same relationship holds
where I is the identity matrix, A is an n-by-n system matrix, and t is scalar time variable. Taking only the first 3 low-order terms, for example, gives
Subsequently, the data regression problem becomes the following nonlinear quadratic minimization problem
min([h(t)−{tilde over (h)}(t)]TQ[h(t)−{tilde over (h)}(t)])
where Q is the weight matrix for optimization algorithm. Note that, although C and B are mathematically inseparable in general, C can be uniquely determined by specifying/choosing a specific form of B (e.g., canonical controllable form). If desirable, higher-order terms may be included, e.g.,
As the exact response of a battery is dependent on the charge level, the impulse response of the battery may be measured at different charge levels (e.g., 10%, 25%, 50%, 75%, and 90%). In computational models, the charge level is given by the time integral of current and the initial conditions (i.e., the known charge levels at time-zero).
Additional details regarding an example algorithm for generating the battery model are included in some embodiments in U.S. Patent Application No. 62/796,521, filed Jan. 24, 2019 and entitled “Model Realization Algorithm,” which is incorporated herein by reference in its entirety, and other example details are included elsewhere herein, including with respect to the examples of
For example, in some embodiments, the following applies.
Impulse response: h(t)=CeAtB (if continuous time) or h(N)=CAN−1B (if discrete time)
↓
Markov parameter blocks m×k matrix [G0, G1, G2, . . . GN] with m controls and k sensors
shifted Hankel matrix
Find decomposition P and Q, such that
where P=rank of H.
Decomposition can be implemented in various manners, without restrictions.
=> infinite number of decompositions=> infinite redirections (A,B,C).
(2) Discrete-time and continuous-time system parameters are related by
Ad=eAcΔ
Bd=eAcΔBc
Cd=Cc
where d is discrete, c is continuous, and A is the sampling interval
State-Space of Discrete-Time Linear Systems:
Markov Parameter Sequence (Matrix Impulse Response)
Continuous-Time Systems:
(1) system {umlaut over (x)}+w2x=u
=>┌{dot over (x)}1=x2
└{dot over (x)}2=−w2x1+u
Impulse response h(t)=CeAtB See example chart 298 of
(2) system {umlaut over (x)}+2ζw{dot over (x)}+w2x=u
(2nd-order filter) ζ=0.707
x1=x
{dot over (x)}1=x2={dot over (x)}
{dot over (x)}2={umlaut over (x)}1=−2ζwx2−w2x1+u
See example chart 299 of
Additional non-exclusive examples of techniques for generating a battery model and implementing a model realization system in at least some embodiments include the following.
In at least some embodiments, a learning approach is used to develop parametric linear models of dynamical systems, such as for systems that each includes one or more batteries and/or for other types of systems. The approach selects an appropriate state as a parameter to characterize the model. For example, in a battery system, the selected state is battery charge, such as with the battery charge discretized into a finite number of levels (e.g., with the number of levels selected so that the linear approximation between levels is valid), and a linear model is learned for each level interval. The linear model between levels is generated by exciting the device with an impulse and reading out the response of the system via sensors, with the response called an impulse response signal. This signal, which is usually a vector signal, is used to algorithmically generate a linear state representation of the input/output dynamics of the system under study. The minimum state realization for each level of the characteristic state of the model (for a battery it is the charge) is a linear dynamic model with constant coefficients.
With respect to this approach in the current example, which may be implemented by an embodiment of a model realization system, a first step is to select the characteristic state to use, such as charge for a battery system. In this approach, the characteristic state is not determined by direct measurements—instead, for a battery, the charge is computed from measurements of current i(t) using the following equation (I):
where Δ is a small positive quantity, and q(t) is the computed charge at time t. If q(t+Δ)≥ql, where ql is a level of the characteristic state, then an impulse is generated and fed to the battery. The corresponding signals of the outputs are measured and recorded over a period of time T, where T is called the relaxation time. This process is repeated a few times to obtain an average response for the level ql. The impulse signals are wide-sense frequency response, but the system is usually a low-pass frequency system. Therefore, the outputs at normal operation are not significantly changed by the impulses.
In this example, the model realization system embodiment uses a state-space realization approach to generate the parametric linear dynamics of the system of minimum state dimension, as follows:
{dot over (x)}=Aq
y=Cq
where x(t) is the state of the model of the current characteristics interval with initial value of the level ql. In general, x(t)∈Rn, where n is finite, and u(t)∈Rk is the signal vector corresponding to the inputs to the parametric mode; y(t)∈Rm is the vector signal of outputs. The n×n matrix Aq
For each characteristic interval, this embodiment of the model realization system uses the impulse response data to construct the matrix parameters of a minimal state-space realization, with the impulse response of the system given in Equation (II) is:
h(t)=CeAtB (III)
For simplicity, ql is suppressed in (III) and following formulas, and h(t) is a vector signal of dimension m that represents the response of the system to an impulse as the input. The algorithm solves equation (III) for the system parameters C, A and B, based on the determination of a series of matrices for the right-hand-side of (III) that are referred to as Markov parameters.
The minimal state-space realization approach discussed above may be implemented using, for example, Kalman's algorithm. If so, and given the Markov parameters block series [M0, M1, M2, . . . , MN] (e.g., computed by the Cayley Hamilton theorem), where the number of time points N is greater than or equal to the number of matrices' entries in the minimum realization, the approach first constructs a Hankel matrix as follows:
and the shifted Hankel matrix
where r is the rank of the Hankel matrix. When r is sufficiently large, it is the minimum dimension of the state of the system. Once the minimum Hankel matrix is constructed, the next step is to find a (P, Q) decomposition of the Hankel matrix H such that
where Ip is an identify matrix of rank ρ.
To obtain (P, Q), Singular Value Decomposition (SVD) may, for example, be used to find another Hankel matrix S as well as matrices U and V that satisfy the following:
USV=H (VII)
It follows that
P=(US1/2)−1 (VIII)
Q=(S1/2V)−1 (IX)
provide a decomposition (matrices P and Q) that satisfies Equation (VI). This iteration also guarantees to terminate in finite time provided that A, B and C do exist. The system matrices are then given by the following:
A=[P
B=[PH]n×m (XI)
C=[HQ]k×n (XII)
Continuing with the approach for this example embodiment of a model realization system,
Measurements for the model realization system embodiment are performed with the AC circuit shown in
While conducting the measurements discussed above, free electrons may be injected into and pulled out of the cathode and anode, respectively, at high intensity within very short periods of time. As a result, oscillatory interactions may occur between the free electrons and the ions inside the Li-ion battery, which may lead to oscillatory current output at frequencies characteristic to the battery. If uncontrolled, the battery may be irreversibly damaged. To control the oscillatory current output (typically 1-5 Hz), an impedance actuator in parallel to the load may be used, such as for an impedance actuator constructed from a high-current rating MOSFET (metal-oxide-semiconductor field-effect transistor) controlled by a real-time PID controller.
With respect to such a PID controller, it may take into account the proportion (P), integral (I), and differential (D) of the error between the output and target signals, in order to achieve the control objectives of a feedback loop. Coefficients kP, ki, and kD represent such proportional, integral, and differential parameters of the PID controller, respectively, and the relationship between the control u(t) and the error e(t) at time t is given by
where e(t) is the error measurement that satisfies:
e(t)=x(t)−y(t)
where x(t) is the measured DC current of the battery, and y(t)) is the desired current generated by the processor. At time t+Δ, the control is given by
Subtracting Equation XXI from Equation XXII gives:
In Equation XXIII, the integral term and differential term may be estimated by numerical algorithms such as, for example, Adam-Bashfort for the integration, and modified trapezoidal for the derivative, with the numerical algorithms chosen in this example so that the order of the error is O(Δ3). For numerical purposes, equation (XXIII) may be implemented with two time scales as follows: 2Δ for control implementation, and for data collection. The parameters of the controller may be computed using, for example, a modified Routh-Hurwicz algorithm in a pole allocation schema. An example embodiment of a routine 200G for implementing operations of a real-time modified PID controller is shown in
The example approach described above provides quality control determination of battery cells or other components of distributed energy resource (DER) systems. In addition, a behavioral model for a reference battery (e.g., a battery cell of high quality) may be generated using a sequence of parametric models for a set of charge levels and a set of loads, with such a battery referred to at times as a ‘reference standard’ battery and/or ‘standard cell’ (e.g., for a type of battery, such as lithium-ion, nickel-cadmium, nickel-metal-hydride, small sealed lead acid batteries, etc.; for an associated group of batteries, such as to be used together in a common target system and/or for a common purpose; etc.), and with the generated behavioral model for the battery referred to at times as a ‘reference standard behavioral model’ and stored for use in comparison to other behavioral models of other batteries of that type or for potential inclusion in the associated group. Each battery that is a candidate for an implementation may be evaluated using this approach, and the resulting generated models may be compared against the model for the ‘reference standard’ (e.g., to provide a standardized or normed comparison against a fixed standard) and/or against each other (e.g., to provide a relative comparison). If the differences between a candidate battery and the standard battery are calculated and are sufficiently low (e.g., below a defined threshold), the candidate battery may be treated as acceptable or good, such as to be used in a particular battery system. If the differences between two or more candidate batteries are calculated, some quantity or group of the candidate batteries (e.g., the top 1, the top X, the top X %, etc., with respect to one or more measures of the generated parametric models) may similarly be treated as acceptable or good, or more generally zero or more of the group of candidate batteries may be treated as acceptable or good if they satisfy one or more satisfied criteria (e.g., with respect to one or more performance criteria, such as with respect to current and/or voltage produced at one or more charge levels and/or resistive loads), such as to be used in one or more particular battery systems. Such a proposed test of a candidate battery may, for example, take only a couple of seconds.
In addition, the generation of the parametric model for the standard battery cell may be repeated for many charge/discharge cycles in at least some embodiments to determine, for the particular standard battery cell and/or the type of battery of the standard battery cell, the marginal degradation of the battery performance. The measured degradation may further be extrapolated to determine an estimated longevity of this particular battery cell and/or type of battery cell, such as for use in establishing rules for future operation of the battery that maximize one or more goals (e.g., battery life, economic value, etc.).
Another possible application of the approach described above in some embodiments is for selecting battery groups whose batteries exhibit nearly uniform behavior, such as for implementing quality operation on industrial batteries.
Another possible application of the approach described above in some embodiments is to generate initial models for a particular battery and/or a particular type of battery that are used in subsequent implementation of battery control (e.g., real-time or near-real-time control).
It will be appreciated that the approach described above may be used in other manners in other embodiments, some of which are further described herein.
Some further aspects of performing automated operations to control such a target system with one or more batteries and/or other types are target systems are included in U.S. patent application Ser. No. 16/103,788, filed Aug. 14, 2018 and entitled “Using Battery State Excitation To Control Battery Operations;” in U.S. patent application Ser. No. 15/096,091, filed Apr. 11, 2016 and entitled “Using Battery DC Characteristics To Control Power Output;” and in U.S. patent application Ser. No. 15/410,647, filed Jan. 19, 2017 and entitled “Using Sensor Data To Assist In Controlling A Target System By Modeling The Functionality Of The Target System,” which claims the priority benefit of U.S. Provisional Patent Application No. 62/336,418, filed May 13, 2016 and entitled “Using Sensor Data To Assist In Controlling A Target System By Modeling The Functionality Of The Target System;” each of which is hereby incorporated by reference in its entirety.
In at least some embodiments, initial modeling of a state of a target system is performed using one or more data Hamiltonian functions, and the described techniques include generate, update and/or improve such data Hamiltonian function(s) (e.g., in order to complete an underlying Hamiltonian-based model) based on analysis of one or more types of sensor data. A CDD system controlling such a target system may, in at least some embodiments and situations, implement multiple CDD decision modules or sub-systems (also referred to at times herein as CDI, or Collaborative Distributed Inferencing, control agents, such that a particular embodiment of the CDD system with one or more such CDI control agents may be referred to as a CDI system) to distribute the control and management through an agent-based network with synchronization via a mean field Hamiltonian approach, such as with each agent characterized by a data Hamiltonian that defines the dynamics and interaction of one or more corresponding components in the target system, and with each such data Hamiltonian of an agent being dynamically computed from sensory data and actions. Such a data Hamiltonian (for a single target system component) and/or mean field Hamiltonian (for multiple coordinated target system components) can be thought of as a mathematical function that helps navigate a query through huge bodies of information by defining a spectrum of possible outcomes, including to model history, current situation and possible options. Non-exclusive example embodiments using such techniques are further described herein, but it will be appreciated that other embodiments may differ in one or more manners from these example embodiments.
As noted above, a data Hamiltonian may be implemented as a function that captures the flow and interdependence of a data domain, and may have three types of variables (e.g., state variables, flow variables, and decision or control variables). A CDI control agent may be implemented as an optimization-based engine operating in a data domain that belongs to a multi-data domain, with agent optimization functionality encoded in the agent's Hamiltonian. The CDD system may be implemented as a formal, distributed rule-based optimization process for resolving time-based queries from a distributed agent-based domain in real-time. A CDI control agent of the CDD system may be implemented using Horn clause rules of three types, as follows: absolute rules that characterize the physics of a physical target system being controlled (or otherwise describe unchangeable rules in other types of target systems), and have truth value equal to true in any Hamiltonian realization (e.g., a value of 0 for false or 1 for true); hard rules that characterize the desired behavior and goals, and have truth value equal to true in any Hamiltonian realization (e.g., a value of 0 for false or 1 for true); and soft rules that characterize the empirical knowledge of the operation, heuristic strategies, economic dispatch, and response to anomalies and learning strategies, and have a variable, probabilistic truth value in [0,1], as well as an associated confidence value for that variable, probabilistic truth value in some embodiments. Meta-rules are special kinds of soft rules used to transform sensory data and desired behavior into constraint data Hamiltonians. Soft rules can be thought of as being used to navigate queries through “gradients” (information that is neither true nor false), as a means of identifying what areas of data are pertinent to any given query. Thus, such rules for a CDI control agent define the constraints for a data Hamiltonian for the agent, and may be converted to a constraint optimization problem that a corresponding CDD system solves. For example, such conversion may include the following: transform truth values {0,1} to a [0,1] interval; transform variables and parameters to continuous variables and parameters; transform absolute rules to equality constraints; transform hard rules to equality constraints; transform soft rules to inequality constraints; transform inclusion sets to functional forms; transform algorithms to differential equations; etc.
Some further aspects of implementing such techniques for modeling target systems and performing automated operations to control such target systems, including in a distributed manner using multiple agents, are included in U.S. patent application Ser. No. 14/746,738, filed Jun. 22, 2015 and entitled “Cooperative Distributed Control Of Target Systems;” in U.S. Patent Application No. 62/182,968, filed Jun. 22, 2015 and entitled “Applications Of Cooperative Distributed Control Of Target Systems;” in U.S. Patent Application No. 62/182,796, filed Jun. 22, 2015 and entitled “Gauge Systems;” and in international PCT Patent Application No. PCT/US2015/037022, filed Jun. 22, 2015 and entitled “Cooperative Distributed Control Of Target Systems,” each of which is hereby incorporated by reference in its entirety.
In addition, while the operation of the model realization system may be performed only once in some embodiments and situations, such as to learn a battery behavior model that is subsequently used, in other embodiments the model realization system may be used in a similar manner multiple times (e.g., periodically, continuously or substantially continuously, etc.), such as to continue to improve the control agent over time (e.g., to structurally adapt the control agent to changes that occur to the system over time, such as the addition and/or removal and/or modification of one or more loads, the addition and/or removal and/or modification of one or more sources, changes to the internal state and operational characteristics of the battery, changes to one or more other elements, etc.). Furthermore, while not illustrated in the examples of
It will be appreciated that the examples of
In the illustrated embodiment, the one or more model realization system components 345 are executing in memory 330 as part of the CDD system 340, and in some embodiments the component(s) each includes various software instructions that when executed program one or more of the hardware CPU processors 305 to provide an embodiment of a model realization system as described elsewhere herein. During operation, in at least some embodiments, each model realization system component may obtain various input data 324 (e.g., from one or more active sensors, not shown) and modify one or more target battery state models (e.g., copies of models 322 stored on storage 320), as well as exchange various information with other executing components, as discussed in greater detail elsewhere herein.
The server computing system 300 has components in the illustrated embodiment that include one or more hardware CPU (“central processing unit”) computer processors 305, various I/O (“input/output”) hardware components 310, storage 320, and memory 330. The illustrated I/O components include a display 311, a network connection 312, a computer-readable media drive 313, and other I/O devices 315 (e.g., a keyboard, a mouse, speakers, etc.). In addition, the illustrated client computer systems 350 may each have components similar to those of server computing system 300, including one or more hardware CPUs 351, I/O components 352, storage 354, and memory 357, although some details are not illustrated for the computing systems 350 for the sake of brevity. The target systems 360 and 370 may also each include one or more computing systems (not shown) having components that are similar to some or all of the components illustrated with respect to server computing system 300, including to optionally locally execute one or more CDD components, but such computing systems and components are not illustrated in this example for the sake of brevity.
The CDD system 340 is executing in memory 330 and includes components 342-346, and in some embodiments the system and/or components each includes various software instructions that when executed program one or more of the CPU processors 305 to provide an embodiment of a CDD system as described elsewhere herein. The CDD system 340 may interact with computing systems 350 over the network 390 (e.g., via the Internet and/or the World Wide Web, via a private cellular network, etc.), as well as the target systems 360 and 370 in this example. In this example embodiment, the CDD system includes functionality related to generating and deploying decision modules in configured manners for customers or other users, as discussed in greater detail elsewhere herein, as well as generating or deploying model realization system components 345 at runtime to improve modeled state information of a corresponding target system. The other computing systems 350 may also be executing various software as part of interactions with the CDD system 340 and/or its components. For example, client computing systems 350 may be executing software in memory 357 to interact with CDD system 340 (e.g., as part of a Web browser, a specialized client-side application program, etc.), such as to interact with one or more interfaces (not shown) of the CDD system 340 to configure and deploy automated control systems (e.g., stored automated control systems 325 that were previously created by the CDD system 340 for use in controlling one or more physical target systems) or other decision modules 329, as well as to perform various other types of actions, as discussed in greater detail elsewhere. Various information related to the functionality of the CDD system 340 may be stored in storage 320, such as information 321 related to users of the CDD system (e.g., account information), and information 323 related to one or more target systems (e.g., systems that have batteries to be controlled).
It will be appreciated that computing systems 300 and 350 and target systems 360 and 370 are merely illustrative and are not intended to limit the scope of the present invention. The computing systems may instead each include multiple interacting computing systems or devices, and the computing systems/nodes may be connected to other devices that are not illustrated, including through one or more networks such as the Internet, via the Web, or via private networks (e.g., mobile communication networks, etc.). More generally, a computing node or other computing system or device may comprise any combination of hardware that may interact and perform the described types of functionality, including without limitation desktop or other computers, database servers, network storage devices and other network devices, PDAs, cell phones, wireless phones, pagers, electronic organizers, Internet appliances, television-based systems (e.g., using set-top boxes and/or personal/digital video recorders), and various other consumer products that include appropriate communication capabilities. In addition, the functionality provided by the illustrated CDD system 340 and its components may in some embodiments be distributed in additional components. Similarly, in some embodiments some of the functionality of the CDD system 340 and/or CDD components 342-346 may not be provided and/or other additional functionality may be available.
As part of implementing an automated control system for a particular target system, an embodiment of a Collaborative Distributed Decision (CDD) system may use the described techniques to perform various automated activities involved in constructing and implementing the automated control system, including generating one or more CDI agents (also referred to as a CDD decision module or system, or a portion of such module or system) for use as some or all of an automated control system in controlling particular target systems.
In particular, the CDD system may in some embodiments implement a Decision Module Construction component that interacts with one or more users to obtain a description of a target system, including restrictions related to the various elements of the target system, and one or more goals to be achieved during control of the target system—the Decision Module Construction component then performs various automated actions to generate, test and deploy one or more executable decision modules (also referred to at times as “decision elements” and/or “agents”) to use in performing the control of the target system. When the one or more executable decision modules are deployed and executed, the CDD system may further provide various components within or external to the decision modules being executed to manage their control of the target system, such as a Control Action Determination component of each decision module as part of a control system to optimize or otherwise enhance the control actions that the decision module generates, a model realization system component to determined modeled battery information for the target system, and/or one or more Coordinated Control Management components to coordinate the control actions of multiple decision modules that are collectively performing the control of the target system.
As noted above, a Collaborative Distributed Decision (CDD) system may in some embodiments use at least some of the described techniques to perform various automated activities involved in constructing and implementing an automated control system for a specified target system, such as to modify or otherwise manipulate inputs or other control elements of the target system that affect its operation (e.g., affect one or more outputs of the target system). An automated control system for such a target system may in some situations have a distributed architecture that provides cooperative distributed control of the target system, such as with multiple decision modules that each control a portion of the target system and that operate in a partially decoupled manner with respect to each other. If so, the various decision modules' operations for the automated control system may be at least partially synchronized, such as by each reaching a consensus with one or more other decision modules at one or more times, even if a fully synchronized convergence of all decision modules at all times is not guaranteed or achieved.
The CDD system may in some embodiments implement a Decision Module Construction component that interacts with one or more users to obtain a description of a target system, including restrictions related to the various elements of the target system, and one or more goals to be achieved during control of the target system—the Decision Module Construction component then performs various automated actions to generate, test and deploy one or more executable decision modules to use in performing the control of the target system. The Decision Module Construction component may thus operate as part of a configuration or setup phase that occurs before a later run-time phase in which the generated decision modules are executed to perform control of the target system, although in some embodiments and situations the Decision Module Construction component may be further used after an initial deployment to improve or extend or otherwise modify an automated control system that has one or more decision modules (e.g., while the automated control system continues to be used to control the target system), such as to add, remove or modify decision modules for the automated control system.
In some embodiments, some or all automated control systems that are generated and deployed may further provide various components within them for execution during the runtime operation of the automated control system, such as by including such components within decision modules in some embodiments and situations. Such components may include, for example, a Control Action Determination component of each decision module (or of some decision modules) to optimize or otherwise determine and improve the control actions that the decision module generates, and/or a model realization system component of each decision module (or of some decision modules) to determine modeled battery information for the target system. For example, such a Control Action Determination component in a decision module may in some embodiments attempt to automatically determine the decision module's control actions for a particular time to reflect a near-optimal solution with respect to or one more goals and in light of a model of the decision module for the target system that has multiple inter-related constraints and based on current state information that is modeled for the target system—if so, such a near-optimal solution may be based at least in part on a partially optimized solution that is within a threshold amount of a fully optimized solution. Such determination of one or more control actions to perform may occur for a particular time and for each of one or more decision modules, as well as be repeated over multiple times for ongoing control by at least some decision modules in some situations. In some embodiments, the model for a decision module is implemented as a Hamiltonian function that reflects a set of coupled differential equations based in part on constraints representing at least part of the target system, such as to allow the model and its Hamiltonian function implementation to be updated over multiple time periods by adding additional expressions within the evolving Hamiltonian function, as discussed in greater detail elsewhere herein.
In some embodiments, the components included within a generated and deployed automated control system for execution during the automated control system's runtime operation may further include one or more Coordinated Control Management components to coordinate the control actions of multiple decision modules that are collectively performing the control of a target system for the automated control system. For example, some or all decision modules may each include such a Coordinated Control Management component in some embodiments to attempt to synchronize that decision module's local solutions and proposed control actions with those of one or more other decision modules in the automated control system, such as by determining a consensus shared model with those other decision modules that simultaneously provides solutions from the decision module's local model and the models of the one or more other decision modules. Such inter-module synchronizations may occur repeatedly to determine one or more control actions for each decision module at a particular time, as well as to be repeated over multiple times for ongoing control. In addition, each decision module's model is implemented in some embodiments as a Hamiltonian function that reflects a set of coupled differential equations based in part on constraints representing at least part of the target system, such as to allow each decision module's model and its Hamiltonian function implementation to be combined with the models of one or more other decision modules by adding additional expressions for those other decision modules' models within the initial Hamiltonian function for the local model of the decision module, as discussed in greater detail elsewhere herein.
It will also be appreciated that, while various items are illustrated as being stored in memory or on storage while being used, these items or portions of them may be transferred between memory and other storage devices for purposes of memory management and data integrity. Alternatively, in other embodiments some or all of the software modules and/or systems may execute in memory on another device and communicate with the illustrated computing systems via inter-computer communication. Thus, in some embodiments, some or all of the described techniques may be performed by hardware means that include one or more processors and/or memory and/or storage when configured by one or more software programs (e.g., by the model realization system components 345 and/or other of the CDD components 342-346, or more generally by the CDD system 340) and/or data structures, such as by execution of software instructions of the one or more software programs and/or by storage of such software instructions and/or data structures. Furthermore, in some embodiments, some or all of the systems and/or components may be implemented or provided in other manners, such as by using means that are implemented at least partially or completely in firmware and/or hardware, including, but not limited to, one or more application-specific integrated circuits (ASICs), standard integrated circuits, controllers (e.g., by executing appropriate instructions, and including microcontrollers and/or embedded controllers), field-programmable gate arrays (FPGAs), complex programmable logic devices (CPLDs), etc. Some or all of the components, systems and data structures may also be stored (e.g., as software instructions or structured data) on a non-transitory computer-readable storage medium, such as a hard disk or flash drive or other non-volatile storage device, volatile or non-volatile memory (e.g., RAM), a network storage device, or a portable media article to be read by an appropriate drive (e.g., a DVD disk, a CD disk, an optical disk, etc.) or via an appropriate connection. The systems, components and data structures may also in some embodiments be transmitted as generated data signals (e.g., as part of a carrier wave or other analog or digital propagated signal) on a variety of computer-readable transmission mediums, including wireless-based and wired/cable-based mediums, and may take a variety of forms (e.g., as part of a single or multiplexed analog signal, or as multiple discrete digital packets or frames). Such computer program products may also take other forms in other embodiments. Accordingly, the present invention may be practiced with other computer system configurations.
The illustrated embodiment of the routine begins at block 410, where information or instructions are received. If it is determined in block 420 that the information or instructions of block 410 include an indication to create or revise one or more decision modules for use as part of an automated control system for a particular target system, the routine continues to block 425 to initiate execution of a Decision Module Construction component, and in block 430 obtains and stores one or more resulting decision modules for the target system that are created in block 425. One example of a routine for such a Decision Module Construction component is discussed in greater detail with respect to
After block 430, or if it is instead determined in block 420 that the information or instructions received in block 410 are not to create or revise one or more decision modules, the routine continues to block 440 to determine whether the information or instructions received in block 410 indicate to deploy one or more created decision modules to control a specified target system, such as for one or more decision modules that are some or all of an automated control system for that target system. The one or more decision modules to deploy may have been created immediately prior with respect to block 425, such that the deployment occurs in a manner that is substantially simultaneous with the creation, or in other situations may include one or more decision modules that were created at a previous time and stored for later use. If it is determined to deploy one or more such decision modules for such a target system, the routine continues to block 450 to initiate the execution of those one or more decision modules for that target system, such as on one or more computing systems local to an environment of the target system, or instead on one or more remote computing systems that communicate with the target system over one or more intermediary computer networks (e.g., one or more computing systems under control of a provider of the CDD system).
After block 450, the routine continues to block 460 to determine whether to perform distributed management of multiple decision modules being deployed in a manner external to those decision modules, such as via one or more centralized Coordinated Control Management components. If so, the routine continues to block 465 to initiate execution of one or more such centralized CDD Coordinated Control Management components for use with those decision modules. After block 465, or if it is instead determined in block 460 to not perform such distributed management in an external manner (e.g., if only one decision module is executed, if multiple decision modules are executed but coordinate their operations in a distributed peer-to-peer manner via local CDD Coordinated Control Management components, etc.), the routine continues to block 470 to optionally obtain and store information about the operations of the one or more decision modules and/or resulting activities that occur in the target system, such as for later analysis and/or reporting.
If it is instead determined in block 440 that the information or instructions received in block 410 are not to deploy one or more decision modules, the routine continues instead to block 485 to perform one or more other indicated operations if appropriate. For example, such other authorized operations may include obtaining results information about the operation of a target system in other manners (e.g., by monitoring outputs or other state information for the target system), analyzing results of operations of decision modules and/or activities of corresponding target systems, generating reports or otherwise providing information to users regarding such operations and/or activities, etc. In addition, in some embodiments the analysis of activities of a particular target system over time may allow patterns to be identified in operation of the target system, such as to allow a model of that target system to be modified accordingly (whether manually or in an automated learning manner) to reflect those patterns and to respond based on them. In addition, as discussed in greater detail elsewhere, distributed operation of multiple decision modules for an automated control system in a partially decoupled manner allows various changes to be made while the automated control system is in operation, such as to add one or more new decision modules, to remove one or more existing decision modules, to modify the operation of a particular decision module (e.g., by changing rules or other information describing the target system that is part of a model for the decision module), etc. In addition, the partially decoupled nature of multiple such decision modules in an automated control system allows one or more such decision modules to operate individually at times, such as if network communication issues or other problems prevent communication between multiple decision modules that would otherwise allow their individualized control actions to be coordinated—in such situations, some or all such decision modules may continue to operate in an individualized manner, such as to provide useful ongoing control operations for a target system even if optimal or near-optimal solutions cannot be identified from coordination and synchronization between a group of multiple decision modules that collectively provide the automated control system for the target system.
After blocks 470 or 485, the routine continues to block 495 to determine whether to continue, such as until an explicit indication to terminate is received. If it is determined to continue, the routine returns to block 410, and otherwise continues to block 499 and ends.
The illustrated embodiment of the routine 500 begins at block 510, where the routine provides or updates a displayed user interface to one or more users, such as via a request received at an online version of component that is implementing the routine, or instead based on the routine being executed by one or more such users on computing systems that they control. While various operations are shown in the illustrated embodiment of the routine as occurring in a serial manner for the purpose of illustration, it will be appreciated that user interactions with such a user interface may occur in an iterative manner and/or over multiple periods of time and/or user sessions, including to update a user interface previously displayed to a user in various manners (e.g., to reflect a user action, to reflect user feedback generated by operation of the routine or from another component, etc.), as discussed further below.
After block 510, the routine continues to block 515 to receive information from one or more such users describing a target system to be controlled, including information about a plurality of elements of the target system that include one or more manipulatable control elements and optionally one or more outputs that the control elements affect, information about rules that specify restrictions involving the elements, information about state information that will be available during controlling of the system (e.g., values of particular elements or other state variables, such as from passive sensors), and one or more goals to achieve during the controlling of the target system. It will be appreciated that such information may be obtained over a period of time from one or more users, including in some embodiments for a first group of one or more users to supply some information related to a target system and for one or more other second groups of users to independently provide other information about the target system, such as to reflect different areas of expertise of the different users and/or different parts of the target system. After block 515, the routine continues to block 518 to identify any errors that have been received in the user input, and to prompt the user(s) to correct those errors, such as by updating the display in a corresponding manner as discussed with respect to block 510. While the identification of such errors is illustrated as occurring after the receiving of the information in block 515, it will be appreciated that some or all such errors may instead be identified as the users are inputting information into the user interface, such as to identify syntax errors in rules or other information that the users specify.
After block 518, the routine continues to block 520 to determine whether, if there are one or more batteries in the target system, to obtain one or more models for the one or more batteries from the CDD Model Realization System, and if so continues to block 525 to obtain the model(s). One example embodiment of a routine for implementing operations of the CDD Model Realization System is further illustrated with respect to
After block 530, the routine continues to block 535 to, for each subset of target system description information (or for all the received information if no such subsets are identified), convert that subset (or all the information) into a set of constraints that encapsulate the restrictions, goals, and other specified information for that subset (or for all the information). In block 540, the routine then identifies any errors that occur from the converting process, and if any are identified, may prompt the user to correct those errors, such as in a manner similar to that described with respect to blocks 518 and 510. While not illustrated in this example, the routine may in some situations in blocks 518 and/or 540 return to block 510 when such errors are identified, to display corresponding feedback to the user(s) and to allow the user(s) to make corrections and re-perform following operations such as those of blocks 515-540. The errors identified in the converting process in block 540 may include, for example, errors related to inconsistent restrictions, such as if the restrictions as a group are impossible to satisfy.
After block 540, the routine continues to block 545 to, for each set of constraints (or a single constraint set if no subsets were identified in block 530), apply one or more validation rules to the set of constraints to test overall effectiveness of the corresponding information that the constraints represent, and to prompt the one or more users to correct any errors that are identified in a manner similar to that with respect to blocks 518, 540 and 510. Such validation rules may test one or more of controllability, observability, stability, and goal completeness, as well as any user-added validation rules, as discussed in greater detail elsewhere. In block 550, the routine then converts each validated set of constraints to a set of coupled differential equations that model at least a portion of the target system to which the underlying information corresponds.
After block 550, the routine continues to block 553 to perform activities related to training a model for each set of coupled differential equations, including to determine one or more of a size of a training time window to use, size of multiple training time slices within the time window, and/or a type of training time slice within the time window. In some embodiments and situations, the determination of one or more such sizes or types of information is performed by using default or pre-specified information, while in other embodiments and situations the users may specify such information, or an automated determination of such information may be performed in one or more manners (e.g., by testing different sizes and evaluating results to find sizes with the best performance). Different types of time slices may include, for example, successions of time slices that overlap or do not overlap, such that the training for a second time slice may be dependent only on results of a first time slice (if they do not overlap) or instead may be based at least in part on updating information already determined for at least some of the first time slice (if they do overlap in part or in whole). After block 553, the routine continues to block 555 to, for each set of coupled differential equations representing a model, train the model for that set of coupled differential equations using partial initial state information determined externally for the target system (e.g., from passive sensors), including to estimate values of variable that are not known and/or directly observable for the target system by simulating effects of performing control actions over the time window, such as for successive time slices throughout the time window, and to test the simulated performance of the trained model. Additional details related to training and testing are included elsewhere herein.
After block 555, the routine continues to block 560 to determine whether the training and testing was successful, and if not returns to block 510 to display corresponding feedback information to the users to allow them to correct errors that caused the lack of success. If it is instead determined in block 560 that the testing and training were successful, however, or after block 583 with a model updated with one or more learned soft rules, the routine continues instead to block 588 to generate an executable decision module for each trained and tested model that includes that model, as well as a local CCD Control Action Determination component that the decision module will use when executed to determine optimal or near-optimal control actions to perform for the target system based on the information included in the model and in light of the one or more goals for that decision module, and that includes or uses at least one CCD Model Realization System component generated in block 542. The generated executable decision module may in some embodiments and situations further include a local CCD Coordinated Control Management component to coordinate control actions of multiple decision modules that collectively will provide an automated control system for the target system, such as by synchronizing respective models of the various decision modules over time. In addition, the generated executable decision module may in some embodiments and situations further include a local CCD Model Realization System component to use to generate one or more battery models during execution of the decision module, such as to update a battery model that was present in the decision module at the time execution began, to create a new battery model for one or more batteries added to the target system while the decision module is operating (e.g., to replace or supplement one or more batteries present when the decision module began operating), etc. After block 588, the routine continues to block 590 to provide the generated executable decision modules for use, including to optionally store them for later execution and/or deployment.
It if was determined in block 505 to use a model realization system, the routine continues to block 565, where the model realization system is used to determine and generate a battery behavior model for each of one or more batteries in the target system, as discussed in greater detail elsewhere herein. The routine then continues to block 583 to store and/or provide information about the determined battery behavior model(s), such as for use in further decision module construction with respect to blocks 510-560 and 588, before continuing to block 505.
After block 590, the routine continues to block 595 to determine whether to continue, such as until an explicit indication to terminate is received. If it is determined to continue, the routine returns to block 510, and otherwise continues to block 599 and ends.
The illustrated embodiment of the routine 600 begins at block 610, where an initial model for the decision module is determined that describes at least a portion of a target system to be controlled, one or more goals for the decision module to attempt to achieve related to control of the target system, and optionally initial state information for the target system. The routine continues to block 615 to perform one or more actions to train the initial model if needed, as discussed in greater detail with respect to blocks 553 and 555 of
After block 615, the routine continues to block 617 to optionally initiate execution of a CDD Model Realization System component if one is included with the decision module. One example of execution of such a CDD Model Realization System is illustrated in
After block 617, the routine continues to block 619 to determine a time period to use for performing each control action decision for the decision module, such as to reflect a rate at which control element modifications in the target system are needed and/or to reflect a rate at which new incoming state information is received that may alter future manipulations of the control elements. The routine then continues to block 620 to start the next time period, beginning with a first time period moving forward from the startup of the execution of the decision module. Blocks 620-680 are then performed in a control loop for each such time period going forward until execution of the decision module is suspended or terminated, although in other embodiments a particular decision module may execute for only a single time period each time that it is executed.
In block 625, the routine optionally obtains state information for the time period, such as current state information that has been received from the target system (e.g., via one or more passive sensors) or one or more related external sources since the last time period began, and/or by actively retrieving current values of one or more elements of the target system or corresponding variables as needed. In block 630, the routine then initiates execution of a local CCD Control Action Determination component of the decision module, with one example of such a routine discussed in greater detail with respect to routine 700 of
After blocks 642 or 643, the routine continues to block 644 to determine if other decision modules are collectively controlling portions of the current target system, such as part of the same automated control system as the local decision module, and if so continues to block 645. Otherwise, the routine selects the local proposed control actions of the decision module as a final determined control action to perform, and continues to block 675 to implement those control actions for the current time period.
If there are other operating decision modules, the routine in block 645 determines if the local decision module includes a local copy of a CDD Coordinated Control Management (CCM) component for use in synchronizing the proposed control action determinations for the decision module's local solutions with activities of other decision modules that are collectively controlling the same target system. If so, the routine continues to block 647 to provide the one or more proposed control action determinations of the decision module and the corresponding current local model for the decision module to the local CDD CCM component, and otherwise continues to block 649 to provide the one or more proposed control action determinations for the decision module and the corresponding local model of the decision module to one or more centralized CDD CCM components.
After blocks 647 or 649, the routine continues to block 655 to obtain results of the actions of the CDD CCM component(s) in blocks 647 or 649, including to either obtain a further updated model resulting from synchronization of the local model for the current decision module with information from one or more other decision modules, such that the further updated model indicates one or more final control action determinations to perform for the time period for the current decision module, or an indication that no such synchronization was completed in the allowed time. The routine continues to block 660 to determine whether the synchronization was completed, and if so continues to block 665 to store the further updated model from the synchronization, and otherwise continues to block 670 to use the prior proposed control action determinations locally to the decision module as the final control action determinations for the time period.
After blocks 665 or 670, the routine continues to block 675 to implement the one or more final determined control actions for the decision module in the target system, such as by interacting with one or more effectuators in the target system that modify values or otherwise manipulate one or more control elements of the target system, or by otherwise providing input to the target system to cause such modifications or other manipulations to occur. In block 680, the routine optionally obtains information about the results in the target system of the control actions performed, and stores and/or provides information to the CDD system about such obtained results and/or about the activities of the decision module for the current time period. After block 680, the routine continues to block 682 to determine whether to do a possible update of a behavior model for a battery by the model realization system, such as periodically or as otherwise determined. If so, the routine continues to block 684 to initiate operations of the CDD Decision Module Construction component with respect to the model realization system component in blocks 565-583, such as to return with an updated version of the model and/or a corresponding decision module.
After block 684, or if it was determined in block 682 to not do a possible structural model adaptation update based on learned soft rules, the routine continues to block 695 to determine whether to continue, such as until an indication to terminate or suspend is received (e.g., to reflect an end to current operation of the target system or an end of use of the decision module to control at least a portion of the target system). If it is determined to continue, the routine returns to block 620 to start the next time period, and otherwise continues to block 699 and ends.
The illustrated embodiment of the routine 700 begins at block 703, where information or a request is received. The routine continues to block 705 to determine a type of the information or request, and to proceed accordingly. In particular, if a request is received in block 703 to attempt to determine a solution for a current time period given a current model of the local decision module, the routine continues to block 710 to begin to perform such activities, as discussed in greater detail with respect to block 710-790. If it is instead determined in block 705 that a request to relax one or more rules or other restrictions for the current model of the local decision module is received, such as discussed in greater detail with respect to blocks 760 and 765, the routine continues to block 765. If it is determined in block 705 that a request is received to repair one or more rules or other restrictions for the current model of the local decision module, such as discussed in greater detail with respect to blocks 775 and 780, the routine continues to block 780 to obtain user input to use during the rule repair process (e.g., to interact with a CDD Decision Module Construction component, or to instead interact with one or more users in another manner), such as to allow the current model for the local decision module to later be updated and replaced based on further resulting user actions, or if operation of the target system can be suspended, to optionally wait to further perform the routine 700 until such an updated model is received. If it is instead determined in block 705 that the information or request is of another type, the routine continues instead to block 708 to perform one or more other indicated operations as appropriate, and to then proceed to block 799. Such other indicated operations may include, for example, receiving information about current models and/or control actions proposed or performed by one or more other decision modules that are collectively controlling a target system with the local decision module (such as for use in synchronizing the model of the local decision module with such other decision modules by generating a consensus or converged shared model, as discussed in greater detail with respect to routine 800 of
If it determined in block 705 that a request for a solution was received in block 703 for a current time period and based on a current model of the local decision module, the routine continues to block 710 to receive a current set of coupled differential equations that represent the current model for the local decision module of at least a portion of the target system, optionally along with additional state information for the target system for the current time. The routine then continues to block 715 to determine whether to train or re-train the model, such as if the routine is called for a first time upon initial execution of a corresponding decision module or if error measurements from ongoing operations indicate a need for re-training, as discussed in greater detail with respect to blocks 755, 770 and 730. If it is determined to train or re-train the model, the routine continues to block 720 to determine one or more of the size of a training time window, size of training time slices within the time window, and/or type of training time slices within the training time window, such as in a manner similar to that previously discussed with respect to block 553 of routine 500 of
After block 725, or if it is instead determined in block 715 not to train or re-train the model, the routine continues to block 730 to perform a piecewise linear analysis to attempt to determine a solution for the current model and any additional state information that was obtained in block 710, with the solution (if determined) including one or more proposed control action determinations for the local decision module to take for a current time period, as well as in some embodiments to use one or more model error gauges to make one or more error measurements with respect to the current model, as discussed in greater detail elsewhere. The routine then continues to block 735 to determine if the operations in block 730 determined a solution within an amount of time allowed for the operation of block 730 (e.g., a defined subset or fraction of the current time period), and if so continues to block 740 to update the current set of coupled differential equations and the resulting current model for the local decision module to reflect the solution, with the resulting updated information provided as an output of the routine 700.
If it is instead determined in block 735 that the operations in block 730 did not determine a solution, the routine continues to block 745 to determine if additional time is available within the current time period for further attempts to determine a solution, and if not continues to block 790 to provide output of the routine 700 indicating that no solution was determined for the current time period.
If additional time is available within the current time period, however, the routine continues to perform blocks 755-780 to perform one or more further attempts to identify the solution—it will be appreciated that one or more of the operations of blocks 755-780 may be repeatedly performed multiple times for a given time period if sufficient time is available to continue further solution determination attempts. In particular, the routine continues to block 755 if additional time is determined to be available in block 745, where it determines whether the measurements from one or more gauges indicate model error measurements that are over one or more thresholds indicating modifications to the model are needed, such as based on the model error measurements from the gauges discussed with respect to block 730. If not, the routine continues to block 760 to determine whether there are one or more rules or other restrictions in the current model that are available to be relaxed for the current time period (that have not previously attempted to be relaxed during the time period, if this is not the first pass through this portion of the routing for the current time period), and if so continues to block 765 to relax one or more such rules or other restrictions and to return to block 730 to re-attempt the piecewise linear analysis with the revised model based on those relaxed rules or other restrictions.
If it is instead determined in block 755 that the model error measurements from one or more of the gauges are sufficient to satisfy one or more corresponding thresholds, the routine continues instead to block 770 to determine whether to re-train the model based on one or more of the gauges indicating sufficient errors to do so, such as based on accumulated errors over one or more time periods of updates to the model. If so, the routine returns to block 720 to perform such re-training in blocks 720 and 725, and then continues to block 730 to re-attempt the piecewise linear analysis with the resulting re-trained model.
If it is instead determined in block 770 not to re-train the model (or if the model was re-trained already for the current time period and the resulting re-attempt in block 730 again failed to find a solution), the routine continues to block 775 to determine whether the model error measurements from one or more of the gauges indicate a subset of one or more rules or other restrictions in the model that potentially have errors that need to be repaired. If so, the routine continues to block 780 to provide information to one or more users via the CDD Decision Module Construction component, to allow the users to revise the rules or other restrictions as appropriate, although in other embodiments some or all such rule repair activities may instead be attempted or performed in an automated manner. After block 780, or if it is instead determined in block 775 not to repair any rules, the routine continues to block 790 to provide an indication that no solution was determined for the current time period. After blocks 740, 708, or 790, the routine continues to block 799 and ends. It will be appreciated that if the routine 700 was instead implemented as a centralized routine that supports one or more decision modules remote from the executing component for the routine, the routine 700 may instead return to block 703 to await further information or requests.
The illustrated embodiment of the routine 800 begins at block 805, where it waits to receive information or another indication. The routine continues to block 810 to determine if a consensus model or other updated information for another decision module has been received, such as from a copy of the routine 800 executing for that other decision module, and if so continues to block 815 to use the received information to update local intermediate shared model information for use with the local decision module on whose behalf the current copy of the routine 800 is executing, as discussed in greater detail with respect to block 830. If it is instead determined in block 810 that the information or request received in block 805 is not information related to one or more other decision modules, or after block 815, the routine continues to block 820 to determine whether to currently perform a synchronization for the current local model of the local decision module by using information about an intermediate shared model of the local decision module that includes information for one or more other decision modules, such as to do such synchronization each time that an update to the local decision module's model is received (e.g., based on operation of the routine 700 for a copy of the CDD Control Action Determination component local to that decision module) in block 805 and/or each time that information to update the local decision module's intermediate shared model is received in block 805 and used in block 815, or instead as explicitly indicated in block 805—if the synchronization is to currently be performed, the routine continues to block 825 and begins to perform blocks 820-880 related to such synchronization activities. Otherwise, the routine continues to block 885 to perform one or more other indicated operations as appropriate, such as to receive requests from the CDD system or other requestor for current information about operation of the routine 800 and/or to provide corresponding information to one or more entities (e.g., to reflect prior requests), etc.
If it is determined in block 820 that synchronization is to be currently performed, such as based on updated model-related information that is received in block 805, the routine continues to block 825 to obtain a current local model for the local decision module to use in the synchronizing, with the model including one or more proposed control actions to perform for a current time period based on a local solution for the local decision module. The routine then continues to block 830 to retrieve information for an intermediate shared model of the local decision module that represents information for one or more other decision modules (e.g., all other decision modules) that are collectively participating in controlling the target system, with that intermediate shared model similarly representing one or more other proposed control actions resulting from local solutions of those one or more other decision modules, optionally after partial or complete synchronization has been performed for those one or more other decision modules between themselves.
The routine then continues to block 835 to attempt to determine a consensus shared model that synchronizes the current model of the local decision module and the intermediate shared model by simultaneously providing solutions to both the local decision module's current model and the intermediate shared model. In some embodiments, the operations of block 835 are performed in a manner similar to that discussed with respect to blocks 710-730 of routine 700 of
After block 835, the routine continues to block 840 to determine whether the operations of block 835 succeeded in an allowed amount of time, such as a fraction or other portion of the current time period for which the synchronization is attempted to be performed, and if so the routine continues to block 845 to update both the local model and the intermediate shared model of the local decision module to reflect the consensus shared model. As earlier noted, if sufficient time is allowed for each decision module to repeatedly determine a consensus shared model with changing intermediate shared models representing one or more other decision modules of a collective group, the decision modules of the collective group may eventually converge on a single converged shared model, although in other embodiments and situations there may not be sufficient time for such convergence to occur, or other issues may prevent such convergence. After block 845, the routine continues to block 850 to optionally notify other decision modules of the consensus shared model determined for the local decision module (and/or of a converged shared model, if the operations of 835 were a last step in creating such a converged shared model), such as if each of the notified decision modules is implementing its own local version of the routine 800 and the provided information will be used as part of an intermediate shared model of those other decision modules that includes information from the current local decision module's newly constructed consensus shared model.
If it is instead determined in block 840 that a synchronization did not occur in the allowed time, the routine continues to perform blocks 860-875 to re-attempt the synchronization with one or more modifications, sometimes repeatedly if sufficient time is available, and in a manner similar to that discussed with respect to blocks 745-780 of routine 700 of
If it is instead determined in block 870 that no further actions are to be performed with respect to relaxation, repair and/or re-training, the routine continues instead to block 880. After blocks 850, 880 or 885, the routine continues to block 895 to determine whether to continue, such as until an explicit indication to terminate or suspend operation of the routine 800 is received, such as to reflect an end to operation of the target system and/or an end to use of the local decision module and/or a collective group of multiple decision modules to control the target system. If it is determined to continue, the routine returns to block 805, and otherwise continues to block 899 and ends.
The illustrated embodiment of the routine 900 begins at block 903, where it receives instructions or other information. In block 905, the routine then determines whether instructions received in block 903 are to generate one or more battery models for indicated batteries, and if so continues to block 910, where it receives information about one or more batteries of a target system. In block 915, the routine then determines and generates a battery behavior model for each of the one or more indicated batteries, as discussed in greater detail elsewhere herein, and stores those generated models for subsequent use.
After block 915, or if it is instead determined in block 905 that the instructions received in block 903 are not to generate one or more battery models for indicated batteries, the routine continues to block 925 to determine if the instructions received in block 903 indicate to use a battery as a reference standard (e.g., for a type of battery, for a particular target system, etc.) against which to compare other batteries, and if so continues to block 930 to store a model for that battery to be a reference standard model (e.g., for one of the battery models just generated in block 915, for a previously generated and stored model for a battery, for a battery model received in block 903, etc.).
After block 930, or if it is instead determined in block 925 that the instructions received in block 903 are not to use a battery as a reference standard, the routine continues to block 935 to determine if the instructions received in block 903 indicate to compare at least one battery to a reference standard battery (e.g., with models for the at least one battery and/or the reference standard battery just generated in block 915), and if so continues to block 940. In block 940, the model for each of the indicated batteries is compared to the reference standard model, and a determination is made of whether differences between the two models are sufficiently small (e.g., below a defined threshold), such as to indicate that the battery whose model is being compared to the reference standard is of sufficiently high quality (or otherwise sufficiently similar to the reference standard battery) for subsequent use in a target system.
After block 940, or if it is instead determined in block 935 that the instructions received in block 903 are not to compare at least one battery to a reference standard battery, the routine continues to block 945 to determine if the instructions received in block 903 indicate to compare two or more batteries to each other (e.g., with models for some or all of the two or more batteries just generated in block 915), and if so continues to block 950. In block 950, the model for each of the indicated batteries is compared to each other (e.g., with respect to one or more performance metrics for the batteries, such as voltage and/or current output under one or more battery charge levels and/or loads; to one or more error measures associated with the batteries' model generation; etc.), and a determination is made of zero or more of the models that satisfy one or more indicated criteria (e.g., the top 1 or N batteries from the comparison, the top X % of batteries from the comparison, all batteries that satisfy a specified performance metric, etc.), such as to indicate that the corresponding batteries (if any) for the determined one or more models are of sufficiently high quality (or otherwise sufficiently satisfy the indicated criteria) for subsequent use in a target system.
After block 950, or if it is instead determined in block 945 that the instructions received in block 903 are not to compare two or more batteries to each other, the routine continues to block 985 to optionally perform one or more indicated operations if appropriate. Non-exclusive examples of such other operations may include, for example, retrieving a previously generated model for a particular battery or battery type (e.g., a reference standard model for the battery type) for use in a decision module being constructed or for another purpose, receiving information at other times than initial model generation (e.g., to update a battery model, such as based on additional information obtained during use of the battery in a target system) and storing and/or using that received information (e.g., to perform a corresponding model update), etc. After bock 985, the routine continues to block 990 to provide requested information and/or information determined during the routine execution (e.g., in one or more of blocks 940 and 950) to a requester (e.g., another routine from which the routine 900 was invoked, such as with respect to block 525 of routine 500), and then continues to block 995.
In block 995 the routine determines whether to continue, such as until an explicit indication to terminate is received. If it is determined to continue, the routine returns to block 910, such as to perform further updates to the total system model, and otherwise continues to block 999 and ends.
The routine begins at block 1010, where it optionally provides initial state information for the target system to a CDD system for use in an automated control system of the CDD system for the target system, such as in response to a request from the CDD system or its automated control system for the target system, or instead based on configuration specific to the target system (e.g., to be performed upon startup of the target system). After block 1010, the routine continues to block 1020 to receive one or more inputs from a collective group of one or more decision modules that implement the automated control system for the target system, including one or more modified values for or other manipulations of one or more control elements of a plurality of elements of the target system that are performed by one or more such decision modules of the automated control system. As discussed in greater detail elsewhere, the blocks 1020, 1030, 1040 may be repeatedly performed for each of multiple time periods, which may vary greatly in time depending on the target system (e.g., a microsecond, a millisecond, a hundredth of a second, a tenth of a second, a second, 2 seconds, 5 seconds, 10 seconds, 15 seconds, 30 seconds, a minute, 5 minutes, 10 minutes, 15 minutes, 30 minutes, an hour, etc.).
After block 1020, the routine continues to block 1030 to perform one or more actions in the target system based on the inputs received, including to optionally produce one or more resulting outputs or other results within the target system based on the manipulations of the control elements. In block 1040, the routine then optionally provides information about the outputs or other results within the target system and/or provides other current state information for the target system to the automated control system of the CDD system and/or to particular decision modules of the automated control system, such as to be obtained and measured or otherwise analyzed via passive sensors and/or active sensors. The routine then continues to block 1095 to determine whether to continue, such as until an explicit indication to terminate or suspend operation of the target system is received. If it is determined to continue, the routine returns to block 1020 to begin a next set of control actions for a next time period, and otherwise continues to block 1099 and ends. As discussed in greater detail elsewhere, state information that is provided to a particular decision module may include requests from external systems to the target system, which the automated control system and its decision modules may determine how to respond to in one or more manners.
It will also be appreciated that in some embodiments the functionality provided by the routines discussed above may be provided in alternative ways, such as being split among more routines or consolidated into fewer routines. Similarly, in some embodiments illustrated routines may provide more or less functionality than is described, such as when other illustrated routines instead lack or include such functionality respectively, or when the amount of functionality that is provided is altered. In addition, while various operations may be illustrated as being performed in a particular manner (e.g., in serial or in parallel, synchronously or asynchronously, etc.) and/or in a particular order, those skilled in the art will appreciate that in other embodiments the operations may be performed in other orders and in other manners. Those skilled in the art will also appreciate that the data structures discussed above may be structured in different manners, such as by having a single data structure split into multiple data structures or by having multiple data structures consolidated into a single data structure. Similarly, in some embodiments illustrated data structures may store more or less information than is described, such as when other illustrated data structures instead lack or include such information respectively, or when the amount or types of information that is stored is altered.
From the foregoing it will be appreciated that, although specific embodiments have been described herein for purposes of illustration, various modifications may be made without deviating from the spirit and scope of the invention. Accordingly, the invention is not limited except as by the appended claims and the elements recited therein. In addition, while certain aspects of the invention are presented below in certain claim forms, the inventors contemplate the various aspects of the invention in any available claim form. For example, while only some aspects of the invention may currently be recited as being embodied in a computer-readable medium, other aspects may likewise be so embodied.
This application claims the benefit of U.S. Provisional Patent Application No. 62/796,581, filed Jan. 24, 2019 and entitled “Using Battery State Excitation To Model And Control Battery Operations,” which is hereby incorporated by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
5724239 | Kaneko | Mar 1998 | A |
5727128 | Morrison | Mar 1998 | A |
5755378 | Dage | May 1998 | A |
5963447 | Kohn et al. | Oct 1999 | A |
6088689 | Kohn et al. | Jul 2000 | A |
6694044 | Pavlovic et al. | Feb 2004 | B1 |
7052105 | Ushigome | May 2006 | B2 |
7072723 | Kohn et al. | Jul 2006 | B2 |
7216004 | Kohn et al. | May 2007 | B2 |
7574383 | Parasnis et al. | Aug 2009 | B1 |
RE42284 | Severson | Apr 2011 | E |
8261283 | Tsafrir et al. | Sep 2012 | B2 |
8429106 | Downs et al. | Apr 2013 | B2 |
8606788 | Chen et al. | Dec 2013 | B2 |
8949772 | Talby et al. | Feb 2015 | B1 |
8977874 | Rabii | Mar 2015 | B2 |
9946517 | Talby et al. | Apr 2018 | B2 |
10223656 | Kopp | Mar 2019 | B2 |
10386422 | Christensen | Aug 2019 | B2 |
10424961 | Maluf | Sep 2019 | B1 |
10452045 | Kohn | Oct 2019 | B1 |
10520905 | Cross | Dec 2019 | B2 |
10601316 | Kohn | Mar 2020 | B2 |
20020049899 | Kenworthy | Apr 2002 | A1 |
20030069868 | Vos | Apr 2003 | A1 |
20030234812 | Drucker et al. | Dec 2003 | A1 |
20040260666 | Pestotnik et al. | Dec 2004 | A1 |
20050102044 | Kohn et al. | May 2005 | A1 |
20050273413 | Vaudrie | Dec 2005 | A1 |
20060218074 | Kohn | Sep 2006 | A1 |
20060229769 | Grichnik et al. | Oct 2006 | A1 |
20080167756 | Golden et al. | Jul 2008 | A1 |
20090113049 | Nasle | Apr 2009 | A1 |
20110035071 | Sun | Feb 2011 | A1 |
20110178622 | Tuszynski | Jul 2011 | A1 |
20110298626 | Fechalos et al. | Dec 2011 | A1 |
20120072181 | Imani | Mar 2012 | A1 |
20120143356 | Berg-Sonne | Jun 2012 | A1 |
20120274281 | Kim | Nov 2012 | A1 |
20120283887 | Goldsmith et al. | Nov 2012 | A1 |
20130080530 | Frees et al. | Mar 2013 | A1 |
20130099576 | Chuah et al. | Apr 2013 | A1 |
20130119916 | Wang et al. | May 2013 | A1 |
20130253942 | Liu et al. | Sep 2013 | A1 |
20130274936 | Donahue et al. | Oct 2013 | A1 |
20140114517 | Tani et al. | Apr 2014 | A1 |
20140217976 | McGrath | Aug 2014 | A1 |
20140250377 | Bisca et al. | Sep 2014 | A1 |
20140277600 | Kolinsky et al. | Sep 2014 | A1 |
20150032394 | Kimura et al. | Jan 2015 | A1 |
20150058078 | Ehrenberg et al. | Feb 2015 | A1 |
20150184550 | Wichmann | Jul 2015 | A1 |
20150253749 | Kniazev et al. | Sep 2015 | A1 |
20150279182 | Kanaujia et al. | Oct 2015 | A1 |
20150370228 | Kohn et al. | Dec 2015 | A1 |
20150370232 | Kohn et al. | Dec 2015 | A1 |
20160004228 | Kohn | Jan 2016 | A1 |
20160018806 | Kohn et al. | Jan 2016 | A1 |
20160125435 | Kohn et al. | May 2016 | A1 |
20160216708 | Krivoshein et al. | Jul 2016 | A1 |
20160239759 | Sung | Aug 2016 | A1 |
20170219660 | Christensen | Aug 2017 | A1 |
20170271984 | Kohn et al. | Sep 2017 | A1 |
20170315517 | da Silva et al. | Nov 2017 | A1 |
20170315523 | Cross et al. | Nov 2017 | A1 |
Number | Date | Country |
---|---|---|
2008-546370 | Dec 2008 | JP |
2015-025685 | Feb 2015 | JP |
2016-105672 | Jun 2016 | JP |
6584040 | Oct 2019 | JP |
2014030349 | Feb 2014 | WO |
2014089959 | Jun 2014 | WO |
2016025080 | Feb 2016 | WO |
Entry |
---|
Hyndman, “Forecasting: Principles & Practice”, Workshop at University of Western Australia (robjhyndman.com/uwa), 138 pages, Sep. 23-25, 2014. |
Leng et al., “Effect of Temperature on the Aging Rate of Li Ion Battery Operating Above Room Temperature,” Scientific Reports 5:12967, Aug. 2015, 12 pages. |
Shim et al., “Past, present, and future of decision support technology”, Decision Support Systems 33 (2002), 16 pages (pp. 111-126). |
Liserre et al., “Future Energy Systems”, IEEE Industrial Electronics Magazine, Mar. 2010, 20 pages (pp. 18-37). |
Sarkis, “A strategic decision framework for green supply chain management”, Journal of Cleaner Production 11 (2003) 13 pages (pp. 397-409). |
Chong et al., “Sensor Networks: Evolution, Opportunities, and Challenges”, Proceedings of the IEEE, vol. 91, No. 8, Aug. 2003, 10 pages (pp. 1247-1256). |
Gu et al , “Hybrid Systems: Chattering Approximation to Relaxed Controls,” Lecture Notes in Computer Science vol. 1066: Hybrid Systems III, 1996, 25 pages. |
Kohn et al., “Multiple Agent Hybrid Control: Carrier Manifolds and Chattering Approximations to Optimal Control,” 33rd Conference on Decision and Control Lake Buena Vista, FL, Dec. 1994, 7 pages. |
Kohn et al., “A Hybrid Systems Approach to Computer-Aided Control Engineering,” IEEE Control Systems 15(2), 1995, 30 pages. |
Kohn et al., “Hybrid Systems as Finsler Manifolds: Finite State Control as Approximation to Connections,” Lecture Notes in Computer Science vol: 999: Hybrid Systems II, 1995, 28 pages. |
Kohn et al., “Viability in Hybrid Systems,” Theoretical Computer Science 138, 1995, 28 pages. |
Kohn et al , “Digital to Hybrid Program Transformations,” IEEE International Symposium on Intelligent Control, Dearborn, MI, Sep. 15-18, 1996, 6 pages. |
Kohn et al., “Hybrid Dynamic Programming,” Lecture Notes in Computer Science vol. 1201: Hybrid and Real-Time Systems, 1997, 7 pages. |
Kohn et al., “Implementing Sensor Fusion Using a Cost-Based Approach,” American Control Conference, Albuquerque, NM, Jun. 1997, 5 pages. |
Kohn et al., “Control Synthesis in Hybrid Systems with Finsler Dynamics,” Houston Journal of Mathematics 28(2), 2002, 23 pages. |
Kohn et al., “A Micro-Grid Distributed Intelligent Control and Management System,” IEEE Transactions on Smart Grid 6(6), Nov. 2015, 11 pages. |
Uddin, K., “The effects of high frequency current ripple on electric vehicle battery performance,” Applied Energy 178 (2016), 13 pages. |
Schutter, B. De “Minimal state-space realization in linear system theory: an overview”, Journal of Computational and Applied Mathematics, 121 (2000) 331-354. |
Number | Date | Country | |
---|---|---|---|
62796581 | Jan 2019 | US |