This application claims priority to German Patent Application 10 2013 106 083.8, which was filed Jun. 12, 2013 and is incorporated herein by reference.
The present invention relates to methods and devices for determining at least one parameter of a model of a technical installation.
The behavior of technical devices can frequently be described by models, for example, in the form of equations. Such models frequently include one or more parameters which have to be determined before the model can then be used to describe the technical installation. For example, a relaxation of an open terminal voltage of a battery can be described with the aid of an equation which includes parameters. If the parameters are known or estimated, it is possible, for example, to use the model to determine an open terminal voltage in the completely relaxed state (that is to say after a long time), the open terminal voltage being, in turn, characteristic for a charging state (degree of charge or degree of discharge) of the battery.
In order to determine such parameters of the model, it is customary to measure at least one physical quantity of the technical installation (for example, a battery voltage against time in the above example of a battery) and then to adapt the parameters in such a way that the model describes the measurement as well as possible. Various algorithms are known for adapting the parameters, for example, the least-square algorithm or the least-mean-square algorithm.
In some cases, here, the at least one physical quantity of the technical installation is repeatedly measured. In such cases, it can be desirable to be able to further adapt the parameter or the parameters of the model with each measurement, and not to have to wait until all the measurements are present. Recursive implementations exist for this purpose, for example of the least-square algorithm, but they require a comparatively high outlay on computation, which can entail, for example, a correspondingly high outlay on hardware for the implementation.
Embodiments of the present application provide methods and devices which can be used to efficiently estimate one or more parameters of a model of a technical installation, in particular in cases where measured values are sequentially provided.
Exemplary embodiments of the invention will now be described in more detail with reference to the attached drawing, in which:
Exemplary embodiments are explained in detail below. It is to be noted that these are considered purely as illustrative and not as restrictive. In particular, a description of an exemplary embodiment having a multiplicity of features or elements is not to be construed as meaning that all the features or elements are required for the implementation. Rather, it is possible in the case of other exemplary embodiments to omit some of the illustrated features or elements, or to replace them by alternative features or elements. It is also possible in the case of some exemplary embodiments to provide additional features or elements. Features and elements of various exemplary embodiments can be combined with one another, unless otherwise specified.
In the case of exemplary embodiments which are not explained in more detail below, use is made of a gradient method which approximates the least-square algorithm, in order to estimate parameters of a model of a technical installation. A technical installation is to be understood as any type of technical installation, for example, technical unit, system, device and the like on which it is possible to measure physical quantities which can then in turn be used to estimate the parameters of the model.
A device 13 in accordance with an exemplary embodiment is illustrated schematically in a block diagram in
The device 13 comprises a detecting device 11, for example one or more sensors, measurement units and the like, in which one or more physical quantities of the technical installation 10 can be detected. For example, the detecting device 11 can detect one or more quantities such as, for example, a current, a voltage, a temperature, a length or a force. In particular, the detection can be performed in this case with a prescribed scanning rate over time. An evaluation device 12 evaluates the detected physical quantity (quantities) and adjusts the parameters of the model of the detected quantity (quantities), it being possible to perform the adjustment again with each detected value of the physical quantity during detection over time. The evaluation device 12 can, in particular, have an appropriately programmed microprocessor with an assigned memory for this evaluation. In the case of other exemplary embodiments, the evaluation can be implemented directly by dedicated hardware, for example, in the form of an application specific integrated circuit (ASIC). Options for determining or estimating the parameters which can be implemented in the evaluation device 12 are explained in more detail further below, in particular with reference to
A flowchart for illustrating a method in accordance with an exemplary embodiment is illustrated schematically in
At 20, one or more physical quantities of a technical installation, for example voltage, current, length, force or temperature, are measured. At 21, one or more parameters of a model of the technical installation are updated on the basis of the measurement. If at 22, the measurement series is terminated (YES at 22), the method is terminated at 23, and the parameters of the model which were last updated at 21 constitute the result of the method. On the basis of these model parameters, it is then possible, for example, to predict a response of the system with the aid of the model. While the measurement series is not yet terminated (NO at 22), the method is continued at 20 in order to measure the one or more physical quantities at successive scanning instants, for example. In the case of some exemplary embodiments, the physical quantity changes in this case from measurement to measurement on its own, as it were, for example when the quantity describes a decay response of a system or the like. In the case of other exemplary embodiments, it is possible between measurements to vary ambient parameters, for example ambient temperature, ambient brightness or the like, in a controlled fashion in order thus to describe the dependence of the measured physical quantity as a function of the ambient parameter in a model.
Examples for the evaluation in the evaluation device 12 of
A cost function J(θ) of the least-square algorithm can be written in this case as
Here, θ is a vector which includes the parameter to be determined, and y[n] is an nth measured value of the physical quantity, n running from 0 to N-1 so that N represents a total number of measured values (for example, measured values of a physical quantity recorded at N times). In this case, it is to be noted that physical quantities can generally be measured directly or indirectly. In the case of an indirect measurement, one or more other physical quantities is/are measured, and the physical quantity is derived from them. s[n;θ] represents the value of the models for the nth measured value when use is made of the parameter θ. e[n] specifies the error value y[n]−s[n;θ]. In one exemplary embodiment, a vector s which includes as components the values s[n;θ], where n=0 . . . N-1, can also be written as Hθ, in the case of a number p of parameters (p≧1) the matrix H being an N×p matrix and is denoted as observation matrix. The vector e can also be formed from the components e[n], and a vector y can be formed from the components y[n], and so it holds that e=(y−s) or e=(y−Hθ). In this case, a vector primed with a T denotes below the transposition, that is to say the row vector, for example, while otherwise vectors are to be understood as row vectors, or vice versa. In the case of a matrix, the primed T signifies the transposed matrix. Note that generally it is possible in the case of each of the equations represented to convert row vectors into column vectors by transposition, and vice versa, without the content of the equation being changed in the process. The gradient (a vector)
of the cost function J(θ) is given by
The gradient can also be written as
h[n] denoting the row n of the matrix H which is assigned to the nth measured value, for example the scanning time. The aim is now to find the minimum of the cost function J(θ). This can be written, for example, as
{circumflex over (θ)}=(HTH)−1HTy (4)
{circumflex over (θ)} denoting an estimate for the parameters θ.
In order to be able to carry out the calculation according to equation (4), however, all the scanned values have to be present. On the other hand, in the case of some exemplary embodiments use is made of a calculation method in which the parameter vector θ is updated with each measured value y[n].
The fundamental principle is illustrated schematically in
The time-dependent gradient
of the cost function of the procedure described with reference to
In comparison to equation (3), this means in essence that equation (3) forms the sum of the gradient from equation (5) for the scanning instant n=0 . . . N-1. This means that when, for example, not all measurements are used or are available (for example, when measurements can be carried out only over a limited time), the procedure illustrated above with reference to
The procedure has a relatively low computational outlay, for example, only 2(p+1) multiplications are required for each pass of the method, p being the number of the parameters. Depending on system, model and quality (for example, noise) of the measured values, the procedure described can nevertheless offer rapid convergence, such that only relatively few measured values are required in order to obtain a good approximation of the parameters θ.
The gradient-based calculation 32 from
θ[−1]=0 (6)
2. In each n≧0 (for example up to the termination of a measurement, for example a last scanning instant):
ŷ[n]=h[n]θ[n-1] (7)
e[n]=y[n]−ŷ[n] (8)
θ[n]=θ[n-1]+2μh[n]e[n] (9).
Here, equation 7 corresponds to the multiplication in the multiplier 30 of
The aim below is now to illustrate a particular example of the application of the above described exemplary embodiments, specifically in order to determine an open terminal voltage of a battery, in particular a rechargeable battery. The open terminal voltage of a rechargeable battery is in this case directly related to a charging state of the battery, it being possible, for example, to specify the charging state as the degree of charge (for example 90% charged, 80% charged etc.) or as the degree of discharge (for example, 90% discharged, 80% discharged etc.). The determination of such a charging state of a rechargeable battery is important for many mobile applications, for example cell phones, motor vehicles, cameras etc., for example in order that a user can be informed of the charging state.
In this case, the precise determination of the charging state requires as accurate as possible knowledge of the open terminal voltage in a relaxed state. However, it is typically possible, for example, for even a plurality of hours to pass until the terminal voltage of a battery used is completely relaxed, that is to say reaches a stationary value, for example, after the separation of a load from such a battery or after such a unit is switched into a state of low load (for example a rest mode). The unit is frequently brought into operation again within this period, and so the stationary state is not reached at all and therefore cannot be directly measured.
One procedure for determining the stationary value approximately nevertheless is in this case to measure the values of the open terminal voltage only for a relatively short time after the separation of a load from the battery or after the transition to a state of low load, and then to use the measured values to estimate a stationary state of the open terminal voltage. To this end, it is possible in the exemplary embodiments to make use, in particular, of the procedure described above with reference to
An appropriate device in accordance with an exemplary embodiment is shown in
Here, the battery 41 of
In a state of low load 40, for example a rest state, or a state in which the load 40 is separated from the battery 41, a voltmeter 42 measures the terminal voltage of the battery 41 in relation to a number of scanning instants. The evaluation device 43 uses the measured values in order to estimate a parameter of a model of the relaxation process of the battery. The open terminal voltage of the battery 41 in the stationary state can then be estimated therefrom and from this, in turn, the charging state of the battery can be determined (for example by a table). By way of example, the charging state can then be output via an output device 44, for example a display, in order to inform a user. In other exemplary embodiments, automatic measures can also be taken as a function of the determined charging state. For example, in the case of a motor vehicle with a low battery loading, that is to say a high degree of discharge of the battery 41, it is possible to start an auxiliary motor which is operated with a fuel such as petrol and in turn drives a generator in order to charge the battery 41, or in some exemplary embodiments heavy consumers can be deactivated in order to save current.
The response of the open terminal voltage can, for example, be described by the following model, it also being possible to use other models:
Here, Vt is the terminal voltage of the battery present at the instant t. In one exemplary embodiment, Vt is measured, for example, during the relaxation phase at times tn, n=1 . . . N. V∞ is a model parameter. γ, α and δ are parameters. Γ is set to +1 or −1, depending on whether there was a preceding charging phase or a discharging phase. In order to estimate the parameters γ, α and δ, equation (8) is transformed into an ordinary linear estimation problem of the least-square algorithm, and this the exponential multiplicative error structure, which is characterized by the term
ε is a further parameter dependent on t and corresponds in essence to the error term e[n].
The following formulation can be selected for the discharge case by referring to equation (8):
ŷ[n]=h[n]*θ[n]+e[n] (9),
where
ŷ[n]=log({circumflex over (V)}∞,n−Vt,n)2 (10)
h[n]=[1, log(n), log(log(n))] (11)
θ[n]=[C,A,D] (12).
Here, {circumflex over (V)}∞,n is a value for V∞ calculated from the model (compare equation (8)) in relation to the time step n, while Vt,n denotes a corresponding nth measured value, that is to say the measured value at time tn.
The parameters C, A and D are derived from the above parameters γ, α and δ in accordance with C=2×log(γ), A=−2×α and D=−2×δ.
As is to be seen, in particular the matrix H is formed by the vectors h[n], prescribed by system properties and is a function of time (or of the time index n).
During successive measurement of the values Vt, n, the procedure described above with reference to
In order to estimate the open terminal voltage in a relaxed state, Vt can then be calculated for a long time t, for example t=3 h, by the model and the estimated parameters.
Examples of the performance of the procedure for a discharge process of a rechargeable battery are illustrated in
A measured curve of the terminal voltage is denoted by 50 in
Illustrated correspondingly in
It must, however, be remarked that
Number | Date | Country | Kind |
---|---|---|---|
10 2013 106 083.8 | Jun 2013 | DE | national |