Method for operating a control unit for a motor vehicle and corresponding control unit
By iteratively selecting neighboring vectors using classification functions and adding them to the reference input vectors, the method efficiently determines output vectors with high accuracy and low computational effort, enhancing the control device's operational efficiency.
Patent Information
- Application Number
- DE102020111204
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-04-24
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2040-04-24
AI Technical Summary
Existing methods for operating control devices in motor vehicles require significant computational effort for determining output vectors, particularly during vehicle operation, and lack efficient improvements to the model.
A method involving the selection of neighboring vectors based on classification vectors derived from the sign function of differences between input and reference vectors, iteratively adding additional reference input vectors until a threshold distance is reached, and calculating the output vector using these vectors, which can be done with low computational power.
This approach allows for the determination of output vectors with high accuracy and improved model resolution using minimal computational resources, enabling real-time adjustments during vehicle operation.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[0001] The invention relates to a method for operating a drive unit for a motor vehicle, which has a control unit and a drive unit and is controlled by means of the control unit, wherein n-dimensional reference input vectors are each assigned a reference output vector which are stored in the control unit and from which an output vector is determined from an n-dimensional input vector which has an operating parameter for the drive unit of the motor vehicle, wherein the following steps are carried out, in particular in the specified order: a. Repeat the following steps until a reference input vector exists in an n-dimensional space around the input vector whose distance to the input vector falls below a threshold value, and / or a maximum number of iterations has been reached: i. Selecting at least one neighboring vector from the reference input vectors, ii. Determining an additional reference input vector from the at least one neighboring vector and adding the additional reference input vector to the reference input vectors; b. Selecting at least one calculation vector closest to the input vector from the reference input vectors and calculating the output vector based on the at least one selected calculation vector.
[0002] For example, German patent application DE 10 2010 028 266 A1 is known from the prior art. This document describes a control unit in a vehicle which has means for calculating at least one output variable for controlling vehicle functions during vehicle operation, based on at least one input variable determined during operation. The control unit has means for calculating the output variable using Bayesian regression of training values determined for the output variable and the input variable before operation.
[0003] German patent application DE 43 04 441 A1 describes a method for operating a technical process, in particular a process in a motor vehicle, using a control unit. The control unit determines parameters for controlling the process from a characteristic map. This map is defined by the process's operating parameters. The characteristic map is represented by a number of support points stored in the control unit's memory. For each support point, at least one address value indicating the point's position in the characteristic map and one payload value indicating the characteristic map's value at that point's position are stored in the control unit's memory. The support points can therefore be positioned anywhere in the characteristic map, independent of a fixed grid of operating parameters. A distance calculation is performed to select a suitable support point for a given operating point of the process.
[0004] Further prior art includes the publication DE 44 18 731 A1 and the non-patent literature SCHMITT, M.; ULLRICH, T.; TOLLE, H: Associative datafields in automotive control. Proceedings of IEEE International Conference on Control and Applications, Vol. 2, 1994, pp. 1239-1244. IEEE Xplore [online]. DOI: 10.1109 / CCA.1994.381339, In: IEEE.
[0005] The object of the invention is to propose a method for operating a control unit for a motor vehicle which has advantages over known methods, in particular enabling the determination of an output vector for an input vector from a model with low computational effort and preferably allowing an improvement or at least a modification of the model during the operation of the control unit.
[0006] According to the invention, this is achieved by a method for operating a drive unit for a motor vehicle with the features of claim 1. It is provided that, for selecting the at least one neighboring vector for each reference input vector, a classification vector is determined which results from the sign function of a difference between the input vector and the respective reference input vector, wherein different classification vectors are determined from the classification vectors and exactly one reference input vector is selected as the neighboring vector for each of the different classification vectors.
[0007] Basically, it is intended that each n-dimensional reference input vector is assigned a reference output vector, from which an output vector is determined for an n-dimensional input vector, whereby the following steps are carried out, in particular in the specified order: a. Repeating the following steps, in particular in the specified order, until in an n-dimensional space, for example in one or more orthants, in particular in each orthant, of the n-dimensional space, around the input vector, there exists a reference input vector whose distance to the input vector falls below a threshold value, and / or a maximum number of iterations has been reached: i. Selecting at least one neighboring vector from the reference input vectors, and ii. Determining an additional reference input vector from the at least one neighboring vector and adding the additional reference input vector to the reference input vectors; b. Selecting at least one calculation vector closest to the input vector from the reference input vectors and calculating the output vector based on the at least one selected calculation vector.
[0008] The control unit serves to control the motor vehicle, in particular to control the vehicle's drive system. The drive system serves to propel the motor vehicle, i.e., to provide the drive torque directed towards propelling the vehicle. Specifically, the control unit is used to control a drive unit of the drive system, which ultimately generates the drive torque. The drive unit is, for example, in the form of an internal combustion engine, in particular a gasoline engine or a diesel engine.
[0009] The control unit is used to determine the output vector corresponding to the input vector using a model. In the case of an internal combustion engine, for example, at least one of the following values serves as the input vector: an engine speed and an injection parameter, in particular a fuel quantity and / or an injection timing. Preferably, the input vector is composed of several of the aforementioned values. An environmental condition, for example an ambient temperature and / or an ambient air pressure, can also be used as an input vector or as a component of the input vector.
[0010] The input vector is an n-dimensional input vector. This means it can have any dimension. For example, the input vector is one-dimensional, i.e., scalar. Preferably, however, the input vector is multidimensional, for example, two-dimensional or three-dimensional. Using the model, the output vector is assigned to the input vector. The output vector includes, for example, at least one of the following values: torque, fuel consumption, pollutant emissions. For example, the output vector is directed to only a single value, i.e., it is scalar. Of course, the output vector can also include multiple values. It can be provided that the input vector is filtered, particularly over time. This avoids jumps in the output vector and / or models a dynamic behavior of the output vector for the input vector.
[0011] To determine the output vector from the input vector, the control unit stores n-dimensional reference input vectors. Reference input vectors are generally understood to be a set of reference input vectors, which can contain any number of reference input vectors. Thus, the reference input vectors can contain no reference input vectors at all, exactly one reference input vector, or multiple reference input vectors. For readability, however, the plural "reference input vectors" is always used, always referring to a set of reference input vectors with any number of reference input vectors. This also applies preferably to the other vectors, even if this is not explicitly stated in each case.
[0012] Each reference input vector is assigned a corresponding reference output vector. The reference input vectors are structured analogously to their respective input vectors, and the reference output vector is analogous to its corresponding output vector. Specifically, the reference input vectors have the same dimension as the input vector and encompass the same quantities or values. Similarly, the reference output vector is structured analogously to the output vector, meaning it has the same dimension and represents the same quantity or value. The reference output vector can therefore only contain a scalar. In principle, the control unit can store any number of reference input vectors and their corresponding reference output vectors; for example, no reference input vectors at all, exactly one reference input vector, or multiple reference input vectors.For this purpose, the control unit has, for example, a corresponding memory.
[0013] It should be noted that if this description refers to at least one vector, then only exactly one vector can be present. Preferably, however, several vectors are present, and the statements regarding the vector or the at least one vector can be applied analogously to each of the several vectors. Conversely, if several vectors are mentioned, then of course only a single vector or at least one of the vectors mentioned can be present. This applies in particular, but not exclusively, to the at least one reference input vector, the at least one neighbor vector, the at least one computation vector, and / or the at least one classification vector.
[0014] To determine the output vector corresponding to the input vector from the reference input vectors, at least one, but preferably several, neighboring vectors are selected from the reference input vectors in a first step. In a second step, the additional reference input vector is determined from this neighboring vector(s) and added to the reference input vectors. Adding the additional reference input vector to the reference input vectors improves the resolution of the model, allowing the subsequent calculation of the output vector to be performed extremely simply and with high accuracy.
[0015] The selection of the neighboring vector(s) from the reference input vectors is therefore preferably carried out – if possible – such that the additional reference input vector determined from it or them is closer to the input vector than the neighboring vector(s) or the reference input vectors that are different from the neighboring vector(s). For example, the reference input vector closest to the input vector is selected as the neighboring vector, or the reference input vectors closest to the input vector are selected as the neighboring vector(s).
[0016] The additional reference input vector is preferably determined by averaging, for example, by weighted averaging or by using the arithmetic mean of the neighboring vector(s). If there is only one neighboring vector, the additional reference input vector corresponds to the neighboring vector after averaging. Naturally, the reference output vector associated with the additional reference input vector is determined analogously from the reference output vector(s) assigned to the neighboring vector(s). The additional reference input vector is also assigned a reference output vector that has the same mathematical dimension as the reference output vectors of the reference input vectors.
[0017] The two steps, the first and the second, are repeated until at least one reference input vector is found whose distance to the input vector falls below the threshold, or until a maximum number of iterations is reached. More generally, the steps are repeated until, for example, in the n-dimensional space, specifically in one or more of the orthants of the n-dimensional space, a reference input vector exists around the input vector that has a distance from the input vector that falls below the threshold, or until the number of iterations, i.e., the number of executions of the two steps, reaches its maximum. For each repetition of the first and second steps, a number of iterations is incremented. If this number reaches its maximum, the condition is satisfied, and the two steps are not repeated again.
[0018] The latter condition, in particular, prevents arbitrarily frequent execution if the additional reference input vector is not closer to the input vector than the original reference input vectors. It should be noted that, regardless of the number of reference input vectors and the number of neighboring vectors, the additional reference input vector is always determined by averaging and is always added to the reference vectors. This also applies if there is no reference input vector at all or only a single one. In the latter case, the additional reference input vector will usually correspond to the existing reference input vector, resulting in two identical reference input vectors from which at least one calculation vector is selected.
[0019] The n-dimensional space spans around the input vector. The input vector thus represents a zero point of the n-dimensional space. The orthants each border the input vector or the zero point and do not overlap it. The n-dimensional space is divided into 2 n Orthantes are subdivided or subdividable. In the case of two-dimensional space, the orthantes can be called quadrants, and in the case of three-dimensional space, octants. The steps mentioned are particularly preferably repeated until a reference input vector is arranged in several of the orthantes, and especially in each of the orthantes, which has a distance to the input vector that is smaller than the threshold value.
[0020] If the aforementioned condition is met or the maximum number of iterations is reached, the computation vector(s) are selected from the reference input vectors, such that the computation vector(s) are the reference input vector(s) closest to the input vector. For example, the computation vector(s) are selected for several of the orthants. In other words, the reference input vector(s) closest to the input vector are selected, and these selected reference input vector(s) are used as the computation vector(s). The selection of the computation vector(s) from the reference input vectors is carried out, for example, such that at least some of the selected computation vector(s) lie in different orthants.
[0021] The computation vectors are preferably selected from the reference input vectors such that exactly one computation vector is located in each of several of the orthantes. Most preferably, exactly one computation vector is selected from the reference input vectors for each of the orthantes, so that exactly one computation vector is located in each of the orthantes. The output vector is then calculated from the selected computation vector(s). This can, in principle, be done in any way. For example, the output vector can be set equal to the reference output vector of the computation vector that is closest to the input vector. Preferably, however, an average is calculated, for example, using the arithmetic mean or inverse distance weighting.
[0022] The described procedure for operating the control unit allows for the determination of the output vector corresponding to the input vector in a unique way. In particular, the required computing power is extremely low. It is also possible, with minimal computing power, to add at least one additional reference input vector and its corresponding reference output vector to the model, thereby improving it. This model improvement is therefore preferably performed during operation of the control unit, especially while the vehicle is in motion.
[0023] It is particularly preferred that a value range is determined for the reference input vectors. This value range contains, for at least one component of the reference input vectors, the minimum and maximum values that the respective component exhibits across all reference input vectors. Preferably, the value range is determined for all components of the reference input vectors. Preferably, the components of the reference input vectors are used, at least partially, in normalized form. This means that the value of each component of the reference input vectors is normalized by the difference between the maximum and minimum values of the respective component.
[0024] This normalized value is then used, for example, when selecting the at least one neighboring vector, particularly when calculating the distance between the reference input vectors and the input vector, and / or when calculating the output value, especially in inverse distance weighting. Preferably, the components of the input vector are also normalized with the value ranges of the reference input vectors when selecting the at least one neighboring vector. Using the normalized components prevents undesirable influence from different orders of magnitude of the components of the input vector or the reference input vectors. Without normalization, components of a larger order of magnitude would receive significantly more weight than components of a smaller order of magnitude.
[0025] A further development of the invention provides that the reference input vectors are reset to stored reference input vectors before the output vector for the input vector is determined. Thus, before the previously described procedure, in which at least one additional reference input vector is added to the reference input vectors, the reference input vectors are reset. For this purpose, stored reference input vectors are read out, in particular from memory, and used as the reference input vectors. This means that any additional reference input vectors previously added to the reference input vectors are discarded. This reliably prevents any influence on the result or the output vector.
[0026] The invention provides that, for selecting at least one neighboring vector for each reference input vector, a classification vector is determined, which results from the sign function of a difference between the input vector and the respective reference input vector. For each reference input vector, the corresponding classification vector is first calculated by taking the difference between the input vector and the respective reference input vector. This difference is then subjected to the sign function, so that the classification vector ultimately indicates the direction in which the reference input vector lies with respect to the input vector. The components of the classification vector can each take the values -1, 0, and +1. Thus, three possible classifications result for each component. This allows for a particularly simple and rapid selection of the neighboring vectors.
[0027] For each of the reference input vectors, there is a corresponding classification vector, so the number of classification vectors equals the number of reference input vectors. The same principles apply to the classification vectors as were stated for the reference input vectors. The classification vectors also form a set of classification vectors, which can contain any number of classification vectors—that is, no classification vectors at all, exactly one classification vector, or several classification vectors.
[0028] The invention provides that different classification vectors are determined from the classification vectors and that, for each different classification vector, exactly one reference input vector is selected as a neighboring vector. First, the classification vectors are examined to determine whether they are different from one another, and different classification vectors are then compiled. For example, the reference input vectors are sorted according to their classification vectors.
[0029] For each of the different classification vectors, exactly one reference input vector is selected as a neighbor vector. This means that the selected neighbor vectors have different classification vectors. It is particularly preferred that exactly one reference input vector is selected for each different classification vector. Therefore, there are as many neighbor vectors as there are different classification vectors. Thus, there can be exactly one neighbor vector or several neighbor vectors. This achieves a particularly high accuracy in determining the output vector.
[0030] In simplified terms, the system intends to select exactly one neighboring vector from the reference input vectors for each of several orthants, and specifically for each orthant. The classification vectors ultimately specify in which orthant each reference input vector is located. For example, the values 0 and +1 of components of the classification vector are grouped together. Thus, one orthant contains the classification vectors whose component has the value -1, while another orthant contains the classification vectors whose component has either the value 0 or +1.
[0031] By selecting the neighboring vectors such that different classification vectors are assigned to the reference input vectors, the selected neighboring vectors lie in different orthants, so that several of the orthants contain exactly one neighboring vector each, whereas the remaining orthants contain no neighboring vectors. It is particularly preferred that each of the orthants contains exactly one neighboring vector, or one of the neighboring vectors. However, this is a simplified view. Preferably, all possible values of the component are distinguished. The described procedure achieves the aforementioned high accuracy.
[0032] A further development of the invention provides that, from among the reference input vectors whose classification vectors are identical, the one with the smallest distance to the input vector is selected as the neighboring vector. Thus, if reference input vectors with identical classification vectors are present, the distance to the input vector is determined for each of them. Subsequently, the smallest distance is determined from these distances, and the reference input vector with the smallest distance to the input vector is used as the neighboring vector. This achieves particularly high accuracy. The described classification of the reference input vectors using the classification vectors is preferably carried out after each additional reference input vector is added to the reference input vectors.
[0033] In simplified terms, the procedure is designed so that for each orthant, the reference input vector closest to the input vector in that orthant is selected as the neighbor vector. The reference input vectors are thus distributed among the orthants. If several reference input vectors lie within the same orthant, their respective distances to the input vector are determined. The reference input vector with the smallest distance within that orthant is then used as the neighbor vector. This procedure is preferably carried out for all orthants, so that preferably each orthant has one of the reference input vectors as its neighbor vector. Naturally, this only applies if each orthant actually contains a reference input vector.In the orthant(s) in which no reference input vector exists, no neighboring vector can be selected from the reference input vectors.
[0034] A further development of the invention provides that the distance is calculated by normalizing and summing components of the reference input vectors with components of the input vector. Each component of the reference input vector is thus normalized with the corresponding component of the input vector. Subsequently, the normalized components of the reference input vectors are summed to determine the distances of the reference input vectors to the input vector. It may also be possible to square the components before summing to correct the sign. In this case, the distance preferably corresponds to the square root of the sum of the components of the respective reference input vector. In the described manner, the selection of neighboring vectors can be carried out particularly quickly and efficiently.
[0035] A further development of the invention provides that the reference output vector of the additional reference input vector is calculated from the reference output vectors of the neighboring vectors, in particular by averaging or by means of inverse distance weighting. This procedure has already been mentioned above. The reference output vector is also assigned to the additional reference input vector in this respect. The reference output vector of the additional reference input vector is determined from the reference output vectors of the neighboring vectors.
[0036] For example, it may be possible to set the reference output vector of the additional reference input vector equal to the reference output vector of the neighboring vector that has the smallest distance to the reference input vector. However, a significant increase in accuracy can be achieved by using the reference output vectors of several of the neighboring vectors, in particular all neighboring vectors, to determine the reference output vector. For example, the reference output vector of the additional reference input vector can be obtained by averaging, in particular by calculating the arithmetic mean, of the reference output vectors of the neighboring vectors.
[0037] A further development of the invention provides that the output vector is calculated from the reference output vector assigned to the at least one calculation vector, in particular by averaging or by means of inverse distance weighting. The calculation of the output vector is analogous to the calculation of the reference output vector of the additional reference input vector. Preferably, regardless of the number of selected calculation vectors, the output vector is calculated from all calculation vectors or their assigned reference output vectors. Reference is therefore made to the corresponding explanations.
[0038] Ultimately, the described method involves first iteratively determining additional reference input vectors that are sufficiently close to the input vector. This is preferably done by interpolation between the existing reference input vectors, especially the stored reference input vectors. The iterative addition of the additional reference input vectors continues until at least one reference input vector has a sufficiently small distance to the input vector, or until the maximum number of iterations has been reached.
[0039] Preferably, several reference input vectors are available, the distance of which to the input vector is less than the threshold value. Particularly preferably, such a reference input vector is determined for each of the orthants, if possible. In particular, at least one reference input vector must already be present in each of the orthants before the addition of the at least one additional reference input vector. This enables particularly high accuracy in determining the output vector.
[0040] A further development of the invention provides that, in order to determine individual errors of the reference input vectors, the following steps are carried out for each of the reference input vectors, in particular in the specified order: a. Temporarily storing the respective reference input vector as a test vector and removing the reference input vector from the reference input vectors, b. Calculating the output vector using the test vector as the input vector, c. Determining the individual fault from the difference between the output vector and the reference output vector assigned to the test vector, d. Assigning the respective individual defect to the test vector, and e. Adding the test vector to the reference input vectors.
[0041] From time to time, it can be useful to determine an individual error for each of the reference input vectors. This individual error ultimately describes the accuracy with which the reference output vector of one of the reference input vectors can be determined from the other reference input vectors and their associated reference output vectors, without having to refer back to that single reference input vector and its reference output vector.
[0042] For this purpose, the reference input vector is temporarily stored as a test vector, for example in a suitable buffer. The reference input vector, or test vector, is then removed from the reference input vectors. Subsequently, the test vector is used as the input vector, and the output vector is calculated from the remaining reference input vectors for the input vector. The individual fault is then determined by calculating the difference between the output vector and the reference output vector that corresponds to the test vector.
[0043] The individual fault is then assigned to the test vector and stored along with it. Finally, the test vector is added back to the difference vectors, so that the same reference input vectors are present as before the individual fault was determined for the reference input vector. This procedure is preferably performed for each of the reference input vectors. Subsequently, it is possible to assess whether all reference input vectors are necessary to achieve a sufficiently high accuracy in determining the output vector.
[0044] A further development of the invention provides that, to determine the individual defect, the difference is corrected for the sign. In determining the individual defect, the difference between the output vector and the reference output vector assigned to the test vector is calculated. The individual defect then corresponds to the corrected difference to achieve a high degree of accuracy. For example, it is possible to square the difference for sign correction. In this case, the individual defect corresponds to the square root of the squared difference. This procedure represents an extremely accurate and reliable method for determining the individual defect.
[0045] A further development of the invention provides that, in order to optimize the reference input vectors, at least one of the following steps, in particular all of the following steps, preferably in the specified order, are carried out: a. Determining the individual errors of the reference input vectors; b. Calculating a total origin error from the individual errors, in particular divided by the number of reference input vectors, preferably from squared individual errors, c. Perform the following steps, in particular in the order given, for each of the reference input vectors: i. Removing the respective reference input vector from the reference input vectors, ii. Determining the individual error of each of the remaining reference input vectors, iii. Calculating a total reduction error of the removed reference input vectors from the individual errors of the remaining reference input vectors, in particular divided by the number of reference input vectors, preferably from squared individual errors, iv. Assigning the total reduction error to the remote reference input vector; v. Adding the remote reference input vector to the reference input vectors; d. Removing the reference input vector with the smallest total reduction error and / or with a total reduction error less than the original total error from the reference input vectors.
[0046] First, the individual errors of the reference input vectors are calculated and assigned to the respective reference input vectors in the manner described above. Then, for example, to optimize the reference input vectors, the reference input vector with the smallest individual error can be removed, and the optimization can be stopped. Preferably, however, the total original error is calculated from the individual errors. For this purpose, the individual errors are summed, for example. It is particularly preferred that the total original error is equal to the sum of the individual errors of all reference input vectors, divided by the number of reference input vectors. It is also possible to square the individual errors before summing them.In this case, the total original error preferably corresponds to the square root of the sum of the squared individual errors divided by the number of reference input vectors.
[0047] The total reduction error is then calculated for each of the reference input vectors. This is done using a procedure similar to that used to determine the individual error. First, the respective reference input vector is removed from the remaining reference input vectors, and then the individual error of each of the remaining reference input vectors is calculated using these remaining vectors. Each of the remaining reference input vectors is then assigned the individual error that would exist without the removed reference input vector.
[0048] The total reduction error is determined from the individual errors of the remaining reference input vectors. This is done analogously to the calculation of the original total error, so reference is made to the corresponding explanations. The reduction error is assigned to the removed reference input vector, and this vector is then added back to the reference input vectors. Therefore, the total reduction error, or a value for the total reduction error, is subsequently available for each of the reference input vectors.
[0049] The total reduction error describes the accuracy of the method for determining the output vector for the input vector when using only a subset of the reference input vectors, specifically excluding the removed reference input vector. It thus allows a statement to be made as to whether the removed reference input vector contributes to the accuracy of the method or whether the reference input vector can potentially be omitted.
[0050] The plan is to check the total reduction errors of the reference input vectors. It may be possible to identify the reference input vector with the smallest total reduction error and remove it from the list of reference input vectors. Because the reference input vector with the smallest total reduction error is associated with it, removing this vector results in a smaller loss of accuracy than removing the other reference input vectors.
[0051] Additionally or alternatively, it is checked whether the total reduction error is smaller than the total original error. For example, all reference input vectors for which this condition is met are removed from the reference input vectors. However, it is particularly preferred to remove only the reference input vector with the smallest total reduction error from the reference input vectors, provided that the total reduction error of this reference input vector is also less than the total original error.
[0052] The described approach enables a particularly effective reduction in the number of reference input vectors and, accordingly, a reduction in the memory required to store the reference input vectors, especially without an impermissible reduction in the accuracy of the model based on the reference input vectors.
[0053] A further development of the invention provides that, given a new reference input vector with a corresponding new reference output vector, the following steps are carried out in the specified order: a. Determining the individual errors of the reference input vectors; b. Temporarily storing the reference input vector with the smallest single error and removing this reference input vector from the reference input vectors; c. Calculate the output vector using the new reference input vector as the input vector; d. Determining the individual error from a difference between the output vector and the reference output vector assigned to the new reference input vector; e. Adding the remote reference input vector to the reference input vectors; f. Replacing the reference input vector with the smallest single error with the new reference input vector if the single error of the new reference input vector is larger than the smallest single error.
[0054] This represents a particularly simple and computationally efficient approach to optimizing the reference input vectors. Finally, the individual errors are analyzed to determine whether replacing the least required reference input vector with the new one will improve accuracy. Further details within this description, especially the following sections, should also be noted.
[0055] A further development of the invention provides that, when the new reference input vector with the associated new reference output vector is available, the following steps are carried out, in particular in the specified order: a. Determining the individual errors of the reference input vectors; b. Calculating a total origin error from the individual errors, in particular divided by the number of reference input vectors, preferably from squared individual errors; c. Perform the following steps, in particular in the order given, for one or more of the reference input vectors, in particular for the reference input vector with the smallest single error: i. Replacing the respective reference input vector in the reference input vectors with the new reference input vector, ii. Determining the individual error of each of the reference input vectors, iii. Calculating a substitute total error of the reference input vectors from the individual errors of the reference input vectors, in particular divided by the number of reference input vectors, preferably from squared individual errors, iv. Assigning the replacement total error to the replaced reference input vector, v. Removing the new reference input vector from the reference input vectors and inserting the replaced reference input vector into the reference input vectors; d. Replacing the reference input vector with the smallest substitute total error and / or with a substitute total error that is less than the original total error, with the new reference input vector.
[0056] The new reference input vector and the corresponding new reference output vector are determined, for example, by setting the new reference input vector, particularly at the drive unit or drive assembly, and measuring or otherwise determining the resulting reference output vector. The individual errors and the total original error are then calculated in the manner described above. Reference is made to the corresponding explanations.
[0057] Subsequently, for at least one of the reference input vectors, it is checked whether the accuracy of the model can be improved by replacing the reference input vector with the new reference input vector. Preferably, this procedure is carried out at least for the reference input vector with the smallest single error. However, it is also possible to perform the procedure for several reference input vectors, in particular those with the smallest single errors, or for all reference input vectors.
[0058] The basic procedure involves replacing one reference input vector with a new one, i.e., removing the old reference input vector and inserting the new one. The individual error for each reference input vector is then determined as previously described. The equivalent total error is calculated from the individual errors of the reference input vectors. This is done analogously to determining the original total error, so please refer to the relevant sections. The equivalent total error is assigned to the replaced reference input vector. Subsequently, the new reference input vector is removed from the reference input vectors, and the replaced reference input vector is reinserted. Finally, after these steps, the reference input vectors remain the same as before.
[0059] The next step is to check whether replacing the reference input vector, or one of the reference input vectors, with the new reference input vector offers an accuracy advantage. For example, the reference input vector with the smallest equivalent total error is replaced by the new reference input vector. Alternatively, the reference input vector whose equivalent total error is less than the original total error is replaced by the new reference input vector. The reference input vectors are then preferably stored, i.e., saved as stored reference input vectors.
[0060] The two conditions are preferably combined. In this respect, the reference input vector with the smallest equivalent total error is replaced by the new reference input vector, but only if the equivalent total error of the reference input vector is smaller than the original total error. In this way, the accuracy of the model for determining the output vector from the input vector can be significantly improved. The described procedure for replacing the reference input vector with the new reference input vector is particularly preferably carried out only if the number of reference input vectors, in particular the number of stored reference input vectors, is equal to a defined maximum number. Only then is it usually necessary to replace existing reference input vectors.
[0061] A further development of the invention provides that, if a reference input vector corresponding to the new reference input vector is present, the new reference output vector is determined from the reference output vector assigned to the corresponding reference input vector and the new reference output vector. For example, it is provided that the new reference output vector is set equal to the average of the reference output vector assigned to the corresponding reference input vector and the new reference output vector. Thus, if the new reference input vector is equal to one of the existing reference input vectors, the reference output vector assigned to that reference input vector is adjusted using the new reference output vector. Subsequently, the reference input vectors are preferably stored, i.e., saved as stored reference input vectors.This results in an iterative improvement of the model.
[0062] A further development of the invention provides that, when the new reference input vector and the associated new reference output vector are available, the following steps are carried out, in particular in the specified order: a. Determining the individual errors of the reference input vectors; b. Calculating the total original error as the sum of the individual errors, in particular divided by the number of reference input vectors, preferably from squared individual errors, c. Adding the new reference input vector to the reference input vectors; d. Re-determining the individual errors of the reference input vectors; e. Calculating a new total original error as the sum of the individual errors, in particular divided by the number of reference input vectors, preferably from squared individual errors, f. Removal of the new reference input vector from the reference input vectors when the new total origin error exceeds the total origin error.
[0063] This procedure is used to check whether adding the new reference input vector and the corresponding new reference output vector offers an accuracy advantage. For this purpose, the original total error and the new original total error are determined using the already established procedure. The original total error is the sum of the individual errors before adding the new reference input vector, and the new original total error is the sum of the errors after adding the new reference input vector.
[0064] Based on the original total error and the new original total error, a decision is made as to whether adding the new reference input vector to the reference input vectors is advantageous. The new reference input vector is removed from the reference input vectors if the new original total error is greater than the original total error. Otherwise, the new reference input vector is retained as part of the reference input vectors. This approach is particularly preferred if none of the existing reference input vectors are replaced by the new reference input vector, especially due to insufficient accuracy. The reference input vectors are then preferably stored, i.e., saved as stored reference input vectors.
[0065] For example, the first step is to check whether one of the existing reference input vectors can be replaced by the new reference input vector, as described above. If this is not the case, i.e., the corresponding conditions are not met, then the next step, as described, is to check whether adding the new reference input vector to the existing reference input vectors offers any advantages. This approach allows for a particularly high level of model accuracy.
[0066] The invention further relates to a drive unit for a motor vehicle which is operated according to the described method, wherein the drive unit comprises a control unit and a drive assembly and can be controlled by means of the control unit. It is provided that each n-dimensional reference input vector is assigned a reference output vector which is stored in the control unit, wherein the control unit is designed and configured to determine an output vector from the reference input vectors to an n-dimensional input vector representing an operating parameter for the drive assembly of the motor vehicle, wherein the following steps are carried out, in particular in the specified order: a. Repeating the following steps, in particular in the specified order, until in an n-dimensional space, for example in one or more orthants, in particular in each orthant, of the n-dimensional space, around the input vector, there exists a reference input vector whose distance to the input vector falls below a threshold value, and / or a maximum number of iterations has been reached: i. Selecting at least one neighboring vector from the reference input vectors, and ii. Determining an additional reference input vector from the at least one neighboring vector and adding the additional reference input vector to the reference input vectors; b. Selecting at least one calculation vector closest to the input vector from the reference input vectors and calculating the output vector based on the at least one selected calculation vector.
[0067] It is further provided that, for the selection of at least one neighboring vector for each reference input vector, a classification vector is determined which results from the sign function of a difference between the input vector and the respective reference input vector, whereby different classification vectors are determined from the classification vectors and for different classification vectors exactly one reference input vector is selected as a neighboring vector.
[0068] The advantages of such a control unit design and such a procedure have already been mentioned. Both the control unit and the method for operating it may be further developed as described in this document, and reference is made to that description in that regard.
[0069] In addition to the control unit, the drive system includes a drive unit, such as an internal combustion engine, which is controlled by the control unit. For example, the same input vector, containing operating parameters for the drive unit, is supplied to both the drive unit and the control unit. The drive unit is operated based on these operating parameters, while the control unit determines the output vector from the input vector, i.e., the operating parameters. A measured value, representing an output variable of the drive unit, is compared with the output vector. If there is a deviation, particularly one exceeding a tolerance limit, a fault in the internal combustion engine is detected, and / or the input vector is adjusted so that the measured value matches the output vector.
[0070] The invention is explained in more detail below with reference to the exemplary embodiments shown in the drawing, without limiting the invention. The drawing shows: Fig. 1 a schematic representation of a drive system for a motor vehicle, comprising a drive unit and a control unit, as well as Fig. 2 a diagram which illustrates a procedure for operating the control unit.
[0071] The Fig. Figure 1 shows a schematic representation of a drive unit 1 for a motor vehicle, comprising a drive unit 2 and a control unit 3 for controlling the drive unit 2. The drive unit 2 is preferably in the form of an internal combustion engine. An input vector 4 is set at the drive unit 2, which in the embodiment shown here consists, for example, of a target speed 5 and at least one injection parameter 6. The injection parameter 6 is, for example, a quantity of fuel to be injected, an injection timing, or the like.
[0072] The operation of the drive unit 2 is based on the target speed 5 and the injection parameter 6. The operation of the drive unit 2 results in a measured value 7 for torque, a measured value 8 for fuel consumption, and a measured value 9 for emissions. The measured values 7, 8, and 9 for torque, fuel consumption, and emissions together form an actual value 10, or each of these values can be considered an actual value 10. In the former case, the actual value 10 can also be referred to as an actual value vector.
[0073] The input vector 4 is provided not only to the drive unit 2, but also to the control unit 3 as an input variable. The control unit 3 stores several n-dimensional reference input vectors in a memory 11, each of which is assigned a reference output vector. The reference input vector is of the same type as the input vector 4, and the reference output vector is of the same type as the actual value 10.
[0074] Based on the reference input vectors, the control unit 3 determines an output vector 12 from the input vector 4, which contains a model value 13 for torque, a model value 14 for fuel consumption, and a model value 15 for emissions. It is possible that the actual values 10 are fed directly back to the control unit 3. However, it is also possible that a difference 16 is first calculated from the actual value 10 and the output vector 12, which is then fed back to the control unit 3.
[0075] The Fig.Figure 2 shows a diagram illustrating an example of a method for operating the control unit 3. Reference input vectors 17 to 24 are shown, each with a corresponding reference output vector. Input vector 4 is also indicated. An n-dimensional space around input vector 4 is divided, for example, into orthants 25, 26, 27, and 28. In the two-dimensional space shown here as an example, the orthants 25, 26, 27, and 28 can also be referred to as quadrants. In each case, the orthants 25 to 28 originate from input vector 4. It can be seen that (purely by way of example) several of the reference input vectors 17 to 24 are present in each of the orthants 25 to 28.
[0076] Preferably, a classification vector is determined for each of the reference input vectors 17 to 24, and the reference input vectors 17 to 24 are then classified based on these classification vectors. Ultimately, this method allows for a more precise division than simply dividing the reference input vectors 17 to 24 among the orthants 25, 26, 27, and 28, because the values -1, 0, and +1 are used for classification for each component of the classification vectors, resulting in three possible classes for each component. The reference input vectors 17 to 24 are classified based on these classification vectors such that reference input vectors 17 to 24 with identical classification vectors are in the same class. Thus, all reference input vectors 17 to 24 that have the same classification vectors are assigned to the same class.In total, there are as many classes as there are different classification vectors.
[0077] Neighbor vectors are selected from the reference input vectors 17 to 24, whereby these are understood to be, in particular, the reference input vectors 17 to 24 that are closest to input vector 4 in each of the classes or in each of the orthants 25 to 28. In the present embodiment, the reference input vectors 18, 20, 22 and 24 are used as neighbor vectors.
[0078] From the neighboring vectors 18, 20, 22, and 24, an additional reference input vector 29, along with its corresponding additional reference output vector, is determined. For example, the reference input vector 29 corresponds to the arithmetic midpoint between the neighboring vectors 18, 20, 22, and 24. In the example shown here, it lies at the intersection of lines, one of which passes through the reference input vectors 18 and 22, and the other through the reference input vectors 20 and 24. It can be seen that the reference input vector 29 is closer to input vector 4 than the previous reference input vectors 17 to 24.
[0079] The reference input vectors 17 to 24 and 29, which are closest to input vector 4, are again used as neighboring vectors, preferably by repeating the classification described above. These are reference input vectors 20, 22, 24, and 29. From these, a further additional reference input vector 30 is determined and added to the reference input vectors. This procedure is repeated until at least one of the reference input vectors 17 to 24, 29, and 30 has a distance to input vector 4 that is less than a threshold value. However, the procedure is particularly preferably repeated until, for each class or in each of the orthants 25 to 28, there is a reference input vector 17 to 24, 29, and 30 that satisfies these conditions.
[0080] Subsequently, from the reference input vectors 17 to 24, 29, and 30, those vectors closest to input vector 4 are selected as calculation vectors. Preferably, one of the reference input vectors 17 to 24, 29, and 30 is used as a calculation vector for each class or from each of the orthants 25 to 28. The output vector is then calculated from these calculation vectors and their associated reference output vectors, in particular by averaging or by means of inverse distance weighting.
[0081] The described procedure not only allows for the rapid assignment of the output vector to the input vector, but also enables the improvement of the model, in particular the addition or replacement of the reference input vectors 17 to 24 with further reference input vectors and their corresponding reference output vectors. Therefore, it is not necessary to perform a computationally intensive Bayesian regression. Rather, the application and improvement of the model is possible and intended to be carried out within the normal operation of the drive unit 1. REFERENCE MARK LIST: 1 Drive unit 2 Drive unit 3 Control unit 4 Input vector 5 Target speed 6 injection parameters 7 Torque 8 Fuel consumption 9 emissions 10 measured values 11 storage 12 Output vector 13 Model type 14 Model type 15 model types 16 difference 17 Reference input vector 18 Reference input vector 19 Reference input vector 20 Reference input vector 21 Reference input vector 22 Reference input vector 23 Reference input vector 24 Reference input vector 25 Orthant 26 Orthant 27 Orthant 28 Orthant 29 Reference input vector 30 Reference input vector
Claims
[1] Method for operating a drive device (1) for a motor vehicle, which has a control unit (3) and a drive unit (2) and is controlled by means of the control unit, wherein n-dimensional reference input vectors (17, 18, 19, 20, 21, 22, 23, 24) are each assigned a reference output vector, which are stored in the control unit (3) and from which an output vector (12) is determined for an operating parameter for the drive unit (2) of the motor vehicle, wherein the following steps are carried out: a. Repeating the following steps until a reference input vector (17, 18, 19, 20, 21, 22, 23, 24) is present in an n-dimensional space around the input vector (4) whose distance from the input vector (4) is below a threshold value and / or a maximum number of iterations is reached: i. Selecting at least one neighboring vector from the reference input vectors (17, 18, 19, 20, 21, 22, 23, 24), ii. determining an additional reference input vector from the at least one neighboring vector and adding the additional reference input vector (29, 30) to the reference input vectors (17, 18, 19, 20, 21, 22, 23, 24); b. selecting at least one calculation vector closest to the input vector (4) from the reference input vectors (17, 18, 19, 20, 21, 22, 23, 24) and calculating the output vector based on the at least one selected calculation vector, characterized byin that for selecting the at least one neighboring vector for each of the reference input vectors (17, 18, 19, 29, 21, 22, 23, 24) a classification vector is determined which results from the sign function of a difference between the input vector (4) and the respective reference input vector (17, 18, 19, 20, 21, 22, 23, 24), wherein different classification vectors are determined from the classification vectors and for different classification vectors in each case exactly one reference input vector (17, 18, 19, 20, 21, 22, 23, 24) is selected as the neighboring vector. [2] Method according to claim 1, characterized by that from the reference input vectors (17,18,19,20,21,22,23,24) whose classification vectors are identical, the one which has the smallest distance to the input vector (4) is selected as the neighboring vector. [3] Method according to one of the preceding claims, characterized bythat the distance is calculated by normalizing and summing components of the reference input vectors (17,18) with components of the input vector (4). [4] Method according to one of the preceding claims, characterized by that the reference output vector of the additional reference input vector (29,30) is calculated from the reference output vectors of the neighboring vectors. [5] Method according to one of the preceding claims, characterized by that the output vector (12) is calculated from the reference output vector associated with the at least one calculation vector. [6] Method according to one of the preceding claims, characterized by that to determine individual errors of the reference input vectors (17,18,19,20,21,22,23,24) for each of the reference input vectors (17,18,19,20,21,22,23,24) the following steps are carried out: a. buffering the respective reference input vector (17, 18, 19, 20, 21, 22, 23, 24) as a test vector and removing the reference input vector (17, 18, 19, 20, 21, 22, 23, 24) from the reference input vectors (17, 18, 19, 20, 21, 22, 23, 24); b. Calculating the output vector (12) with the test vector as input vector (4); c. Determining the respective individual error from a difference between the output vector (12) and the reference output vector assigned to the test vector; d. Assigning the respective individual error to the test vector; and e. Adding the test vector to the reference input vectors (17,18,19,20,21,22,23,24). [7] Method according to one of the preceding claims, characterized by that when a new reference input vector with a corresponding new reference output vector is present, the following steps are carried out in the specified order: a. Determine the individual errors of the reference input vectors (17,18,19,20,21,22,23,24); b. buffering the reference input vector (17,18,19,20,21,22,23,24) with the smallest single error and removing this reference input vector (17,18,19,20,21,22,23,24) from the reference input vectors (17,18,19,20,21,22,23,24); c. Calculating the output vector (12) with the new reference input vector as input vector (4); d. determining the individual error from a difference between the output vector (12) and the reference output vector associated with the new reference input vector; e. Adding the removed reference input vector (17,18,19,20,21,22,23,24) to the reference input vectors (17,18,19,20,21,22,23,24); f. Replacing the reference input vector (17,18,19,20,21,22,23,24) with the smallest single error by the new reference input vector if the single error of the new reference input vector is larger than the smallest single error. [8] Drive device (1) for a motor vehicle, which is operated according to the method according to claim 1, wherein the drive device (1) has a control unit (3) and a drive unit (2) and can be controlled by means of the control unit, wherein n-dimensional reference input vectors (17, 18, 19, 20, 21, 22, 23, 24) are each assigned a reference output vector, which is stored in the control unit (3), wherein the control unit (3) is provided and designed to determine an output vector (12) from the reference input vectors (17, 18, 19, 20, 21, 22, 23, 24) for an operating parameter for the drive unit (2) of the motor vehicle, wherein the following steps are carried out: a. Repeating the following steps until a reference input vector (17, 18, 19, 20, 21, 22, 23, 24) is present in an n-dimensional space around the input vector (4) whose distance from the input vector (4) is below a threshold value and / or a maximum number of iterations is reached: i. Selecting at least one neighboring vector from the reference input vectors (17, 18, 19, 20, 21, 22, 23, 24), ii. determining an additional reference input vector from the at least one neighboring vector and adding the additional reference input vector (29, 30) to the reference input vectors (17, 18, 19, 20, 21, 22, 23, 24); b. selecting at least one calculation vector closest to the input vector (4) from the reference input vectors (17, 18, 19, 20, 21, 22, 23, 24) and calculating the output vector based on the at least one selected calculation vector, characterized byin that for selecting the at least one neighboring vector for each of the reference input vectors (17, 18, 19, 29, 21, 22, 23, 24) a classification vector is determined which results from the sign function of a difference between the input vector (4) and the respective reference input vector (17, 18, 19, 20, 21, 22, 23, 24), wherein different classification vectors are determined from the classification vectors and for different classification vectors in each case exactly one reference input vector (17, 18, 19, 20, 21, 22, 23, 24) is selected as the neighboring vector.
Citation Information
Patent Citations
Control unit and method for calculating an output variable for a control system
DE102010028266A1
Method for operating a process using a family of characteristic curves
DE4304441A1
Control and regulation of processes in motor vehicles
DE4418731A1
