Control device for a power device, power arrangement with such a control device and method for operating a power device
Patent Information
- Application Number
- DE102023111115
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-04-28
- Publication Date
- 2024-10-10
- Estimated Expiration
- 2043-04-28
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
The invention relates to a control device for a power device, a power arrangement with a power device and such a control device and a method for operating a power device. In order to find optimized manipulated variables for controlling a power device, particularly with regard to achieving specific operating objectives, control devices are typically configured to implement classical, deterministic methods or methods derived therefrom. However, using such methods, particularly when they rely on gradients, only a local optimum within a characteristic map can be found with relative certainty. This can lead to a power device being operated at the same operating point with different manipulated variables at different times. While this is not necessarily disadvantageous with regard to achieving the operating objectives, it is problematic in sensitive areas where the operation of the power device must be certified.In such areas, safety reasons generally require that the power device exhibit a clear operating behavior, in particular a clear assignment of manipulated variables to operating points in the characteristic map. While it is fundamentally possible to search for a global optimum in the characteristic map using simple extensions such as branch-and-bound, starting from several initial values, such methods involve a high numerical effort, which can hardly be achieved in real time on a typical control device, especially not during the runtime of the power device. GB 2 390 706 A discloses that a signal is processed according to one or more adjustable control parameters to produce a processing result. A combination of a genetic and a deterministic algorithm is used to adjust the control parameters over a series of iterations, thereby tending to improve the resulting processing result. DE 10 2014 212 747 A1 discloses an input terminal for computer-aided control optimization for a technical system, such as a gas turbine, wind turbine, etc., for reading in at least one state parameter that indicates a first system state of the technical system, as well as for reading in at least one setting parameter for establishing a reward function suitable for training a neural network. A simulation module is used to simulate the execution of an action sequence on the technical system starting from the first system state and to predict resulting subsequent states of the technical system. Furthermore, an optimization module is used to set up the reward function based on the setting parameter, to generate a plurality of action sequences for the first system state, to transmit the action sequences to the simulation module, and to receive the resulting subsequent states.In addition, the optimization module is used to determine the expected rewards for the resulting subsequent states using the configured reward function and to determine a reward-optimizing action sequence. CH 710 433 A2 discloses a control method for optimising the operation of a power plant with power plant units during a selected operating period, the operating period being divided so that it has regular intervals within which each of the power plant units has either an on-state or an off-state.The control method includes: determining a preferred case for each of the competing operating modes for each of the intervals; based on the preferred cases, selecting proposed part-load operating sequences for the selected operating period; determining shutdown operation for each of the power units having the off-state for one or more intervals during the selected operating period, and therefrom, calculating an economic shutdown result; determining part-load operation for each of the power units having the on-state for one or more intervals during the selected operating period, and therefrom, calculating an economic part-load result; calculating an economic sequence result for each of the proposed part-load operating sequences; and comparing the economic sequence results. The invention is based on the object of creating a power device, a power arrangement with a power device and such a control device and a method for operating a power device, wherein the aforementioned disadvantages are at least reduced, preferably do not occur. The object is achieved by providing the present technical teaching, in particular the teaching of the independent claims as well as the preferred embodiments disclosed in the dependent claims and the description. The object is achieved in particular by providing a control device for a power device, wherein the control device is configured to determine a control manipulated variable vector which has, as components, manipulated variables for controlling the power device. The control device has a first optimization module which is configured to determine a first optimized manipulated variable vector by means of a first, non-evolutionary algorithm. The control device also has a second optimization module which is configured to receive the first optimized manipulated variable vector from the first optimization module and to determine a second optimized manipulated variable vector by means of a second, evolutionary algorithm using the first optimized manipulated variable vector.Finally, the control device comprises a control module configured to determine the control manipulated variable vector as a function of the second optimized manipulated variable vector. By combining two different optimization methods, a first of which relies on a non-evolutionary algorithm and a second of which uses an evolutionary algorithm, various advantages can be combined with limited numerical effort: The non-evolutionary algorithm enables very precise calculation, particularly by searching for a local optimum, while the evolutionary algorithm extends the search in a simple and numerically manageable manner to regions of the characteristic map away from the local optimum, thus opening up the possibility of finding a global optimum.The combination of the two algorithms thus makes it possible, in particular, to search for a global optimum in real time, i.e., during runtime while the power device is operating, even on a conventional control device (i.e., one that has not been specifically upgraded in terms of computing power). This allows, not least, the operation of the power device to be optimized cost-effectively—not only with regard to achieving operating goals such as the lowest possible fuel consumption or compliance with statutory emission targets, but also with a view to certification. In particular, the second optimized manipulated variable vector is determined in real time, in particular during the runtime of the control device and in particular during the runtime of the power device controlled by the control device. In particular, the control manipulated variable vector is determined in real time, in particular during the runtime of the control device and in particular during the runtime of the power device controlled by the control device. In the context of the present technical teaching, a power device is understood in particular to be a device configured to provide power, in particular electrical and / or mechanical power, or to convert or consume power. The power device can thus be designed in particular as a power supply device or as a power conversion device. A power supply device is understood in particular to be a device that provides power, in particular electrical and / or mechanical power, using electrical, mechanical, chemical, or electrochemical energy—or another form of energy.A power conversion device is understood in particular to be a device that uses or consumes power, in particular electrical or mechanical power, in particular to convert or store energy, for example to provide chemical energy in the form of certain substances such as hydrogen or methanol, or electrochemical energy, using electrical energy. In particular, the power device can be an internal combustion engine, a combined internal combustion engine-generator device, i.e. a genset, a fuel cell, an energy storage device, in particular a battery, or an electrolyzer. However, the power device can also be a larger, complex system, for example comprising a plurality of the aforementioned devices, or in particular also a data center or a microgrid.In particular, the power device may also be a controllable or adjustable load on an electrical network. The control device is particularly configured to operate the power device. In one embodiment, the control device is configured to operate an internal combustion engine, an internal combustion engine-generator combination device, i.e., a genset, a fuel cell, an energy storage device, in particular a battery, an electrolyzer, a data center or microgrid, or another controllable or regulatable load on an electrical network. In particular, the control device is configured to operate, i.e. in particular to control, the power device with the control manipulated variable vector. In the context of the present technical teaching, a vector, specifically a manipulated variable vector, is understood in particular to mean a combination of at least one manipulated variable, regardless of how the at least one manipulated variable is represented within the control device. In particular, any desired number or combination of manipulated variables can be understood or represented as a vector with at least one component, wherein the number of vector components corresponds to the number of manipulated variables. In the context of the present technical teaching, a manipulated variable is understood to be a variable that is suitable for controlling an actuator of the power device. It is possible for the manipulated variable to be directly suitable for controlling the actuator, for example because it is given as a specific voltage or current that can be directly applied to the actuator in order to control it; alternatively, it is possible for the manipulated variable to be suitable for deriving, in particular calculating, at least one further variable for directly controlling the actuator. For example, the manipulated variable can be a fuel mass to be introduced into a combustion chamber of an internal combustion engine, which can be converted into at least one control variable for controlling an injector. The at least one actuator can be an actuator or actuator of the power device. In particular, the actuator can be an actuator of an engine block of an internal combustion engine, for example, an injector, a valve, or a flap. However, the actuator can also be an actuator outside the power device, in particular outside an engine block, for example, an actuator provided for influencing an externally provided cooling circuit, for example, a valve, a pump, or the like, or an actuator of a transmission or an electrical device to which the power device is operatively connected. In the context of the present technical teaching, a module is generally understood to mean, in particular, a conceptually or physically definable or delimited functional unit configured to perform at least one specific function. This may be a separate computing device, a part of a computing device, a hardware structure, or a software structure, each configured and intended to fulfill the at least one specific function. In one embodiment, the control device is configured to detect, determine, or receive—in particular current—operating parameters of the power device, such as measured values, for example, an ambient temperature or an ambient air pressure, target values for operation, limit values, environmental boundary conditions, and optionally other parameters. In particular, the first optimization module is configured to use the operating parameters to determine the first optimized manipulated variable vector; in particular, the first optimized manipulated variable vector is determined as a function of the operating parameters. In one embodiment, the first optimization module is configured to receive the second optimized manipulated variable vector from the second optimization module, and the second optimization module is configured to transmit the second optimized manipulated variable vector to the first optimization module. The first optimization module is configured, in particular, to determine the first optimized manipulated variable vector, in particular—within the scope of the iteration described below—a new first optimized manipulated variable vector, based on the received second optimized manipulated variable vector. According to a further development of the invention, the first optimization module is configured to determine the first optimized manipulated variable vector using a gradient method as the first, non-evolutionary algorithm. In particular, this allows the first optimization module to find a local optimum in the characteristic map with very high accuracy. According to a further development of the invention, the second optimization module is configured to generate a predetermined number of test manipulated variable vectors in order to use the first optimized manipulated variable vector as a further test manipulated variable vector, so that a first set of manipulated variable vectors with the cardinality of a predetermined total number is formed. The first set of manipulated variable vectors comprises the predetermined number of test manipulated variable vectors and the first optimized manipulated variable vector as a further test manipulated variable vector. The second optimization module is further configured to determine the second optimized manipulated variable vector from the first set of manipulated variable vectors using the second evolutionary algorithm.Thus, by means of the evolutionary algorithm, the second optimization module can also achieve manipulated variable vectors away from the local optimum possibly found with the first optimized manipulated variable vector in a simple and less computationally intensive manner and thus contribute to finding a global optimum and in particular a unique control manipulated variable vector for a specific operating point - especially with regard to certification. In particular, in one embodiment, the test manipulated variable vectors are randomly generated, in particular from uniformly distributed random numbers, wherein in particular a random number is generated for each component of a test manipulated variable vector. In one embodiment, the test manipulated variable vectors are generated for this purpose from uniformly distributed random numbers, which can in particular assume values from 0 to 1, i.e. from the closed interval [0, 1]. In this embodiment, the first optimized manipulated variable vector is also normalized component by component such that its components have values from 0 to 1. In particular, the value range of each manipulated variable is mapped to the interval [0, 1] for this purpose. The control manipulated variable vector obtained later thus also has components with values from the interval [0, 1].It is then advantageously denormalized component by component to control the assigned actuators, whereby the interval [0,1] is again mapped to the actual value range of the assigned manipulated variable. In particular, the first set of manipulated variable vectors contains the predetermined number of test manipulated variable vectors and the first optimized manipulated variable vector as a further test manipulated variable vector. In particular, the first set of manipulated variable vectors consists of the predetermined number of test manipulated variable vectors and the first optimized manipulated variable vector as a further test manipulated variable vector. According to a further development of the invention, the second optimization module is configured to - as the second, evolutionary algorithm - a) form the first set of manipulated variable vectors from the predetermined number of randomly generated test manipulated variable vectors and the first optimized manipulated variable vector received from the first optimization module as a further test manipulated variable vector; b) evaluate each test manipulated variable vector of the first set using a cost function; c) form a second set of descendant manipulated variable vectors with the cardinality of the predetermined total number from a predetermined parent number of the test manipulated variable vectors of the first set that were best evaluated using the cost function; d) modify the descendant manipulated variable vectors, with the exception of a predetermined minority of elite manipulated variable vectors - in particular using a uniformly distributed noise process,wherein a third set of manipulated variable vectors is formed with the cardinality of the predetermined total number, wherein the third set comprises the modified descendant manipulated variable vectors and the elite manipulated variable vectors, and e) the test manipulated variable vector best evaluated using the cost function is determined as the second optimized manipulated variable vector. In particular, this procedure makes it possible to search in a structured manner, even beyond the first optimized manipulated variable vector, for manipulated variable vectors that may be better with regard to the cost function, and to determine a manipulated variable vector as the second optimized manipulated variable vector that is better in terms of the cost function, i.e., more cost-effective than the first optimized manipulated variable vector. Of course, it is also possible,that the first optimized manipulated variable vector is already best evaluated with regard to the cost function and is output as the second optimized manipulated variable vector. In particular, in step b), the test manipulated variable vectors are ranked based on the evaluation using the cost function, with the best test manipulated variable vector, which is assigned the lowest costs according to the cost function, having the highest rank, and the test manipulated variable vector, which is assigned the highest costs according to the cost function, having the lowest rank. The costs assigned to the respective test manipulated variable vector, and thus the assigned rank, are subsequently retained in the further steps and also assigned accordingly to the descendant manipulated variable vector assigned to the test manipulated variable vector, if applicable also to the assigned elite manipulated variable vector, as well as to the assigned modified descendant manipulated variable vector, i.e., they are essentially inherited. In one embodiment, in a first sub-step b1) of step b), the test manipulated variable vectors are projected onto a permissible standardized range, wherein for each manipulated variable, i.e., for each component xj of the test manipulated variable vectors x, a permissible range is defined within an interval [LBUj, UBUj] defined by a lower limit LBU and an upper limit UBUj for the respective component xj. The lower limit LBUj and the upper limit UBU can be redetermined, in particular, for each iteration step of the iteration explained below, in particular depending on the—in particular current—operating parameters of the power device. In this way, it can advantageously be taken into account, in particular, that not every arbitrary value of a manipulated variable can be assumed at any time or—in particular to protect the power device—may be assumed. Alternatively or additionally, in a second sub-step b2) of step b), the second optimization module receives the operating parameters of the power device. These operating parameters are used, in particular, in a third sub-step b3) of step b) to calculate the cost function. In one embodiment, in step b), particularly in the third sub-step b3), the test manipulated variable vectors are evaluated using the following procedure: For each test manipulated variable vector, it is checked whether it satisfies at least one predetermined restriction—for example, with regard to a maximum permissible peak pressure in the combustion chamber or a maximum permissible emission value. If the tested test manipulated variable vector satisfies the at least one predetermined restriction, it is evaluated by calculating the cost function; if, however, the tested test manipulated variable vector violates at least one restriction selected from the at least one predetermined restriction, a maximum cost value of the cost function is assigned to this test manipulated variable vector.This advantageously results in those test manipulated variable vectors that violate constraints receiving the worst possible rating and being ranked lowest in the test manipulated variable vectors. The maximum cost value can be a predetermined value or it can be calculated using a predetermined algorithm, in particular by adding a violation contribution to the cost function. It is possible for the at least one predetermined constraint to be changed within the iterations described below, in particular if operating parameters of the power device change. In particular, the at least one constraint can be redetermined for each iteration step of the iteration explained below, in particular depending on the operating parameters. In one embodiment, the ranking of the test manipulated variable vectors in step b), in particular in a fourth sub-step b4), is determined by means of a sorting algorithm, in particular merge sort, depending on the evaluation by means of the cost function. In one embodiment, the predetermined number of parents is less than the predetermined total number. In one embodiment, the predetermined total number is 10; alternatively or additionally, the predetermined number of parents is 4. In one embodiment, in step c), the second set of offspring manipulated variable vectors is formed from the predetermined parent number of the test manipulated variable vectors of the first set that are best evaluated using the cost function in the following way: First, in a first c-sub-step c1), first offspring manipulated variable vectors are generated from the test manipulated variable vectors that correspond to the predetermined parent number and are best evaluated according to the ranking in the following way: A offspring manipulated variable vector with the rank in the ranking corresponding to the predetermined parent number is generated by calculating, in particular averaging, the test manipulated variable vector with the rank corresponding to the predetermined parent number with the next higher test manipulated variable vector in the ranking, i.e. the offspring manipulated variable vector has component-wise mean values of the corresponding components of the two test manipulated variable vectors that are calculated with each other.Another offspring manipulated variable vector with a rank corresponding to the predetermined parent number reduced by one is generated by similarly averaging this test manipulated variable vector with the next higher test manipulated variable vector in the ranking. This process continues until the highest-ranking offspring manipulated variable vector is generated by equating it to the highest-ranking test manipulated variable vector. In particular, this is done according to the following equations: for all components j, respectively, where i ∈ {1,...,G} describes the rank in the ranking with the predetermined total number G, E is the predetermined parent number, is component j of the offspring manipulated variable vector xN with the rank denoted by i, and is component j of the test manipulated variable vector xT with the rank denoted by i. The rank of a manipulated variable vector within the ranking is higher, the lower the value of i. In particular, the highest-ranking manipulated variable vector is assigned the value i = 1, while the lowest-ranking manipulated variable vector is assigned the value i = G. For example, if the predetermined number of parents is 4, the fourth-ranked offspring manipulated variable vector is generated by averaging the fourth-ranked test manipulated variable vector with the third-ranked test manipulated variable vector; the third offspring manipulated variable vector is generated by averaging the third-ranked test manipulated variable vector with the second-ranked test manipulated variable vector; the second offspring manipulated variable vector is generated by averaging the second-ranked test manipulated variable vector with the first-ranked—i.e., best or highest-ranked—test manipulated variable vector; finally, the first-ranked offspring manipulated variable vector is generated by setting it identically to the first-ranked—best—test manipulated variable vector. In particular, the highest-ranking—best—test manipulated variable vector is used as the highest-ranking offspring manipulated variable vector.Then, in a second sub-step c2), second offspring manipulated variable vectors are generated such that, starting from the rank corresponding to the predetermined parent number increased by one, the offspring manipulated variable vectors are each identical to the previously generated first offspring manipulated variable vectors each decreased by the predetermined parent number. Rank is selected until the predetermined total number is reached, in particular according to the following equation: If, for example, the predetermined total number is 10 and the predetermined parent number is 4, the fifth offspring manipulated variable vector in the ranking is now selected to be identical to the first offspring manipulated variable vector, the sixth offspring manipulated variable vector is selected to be identical to the second offspring manipulated variable vector, the seventh offspring manipulated variable vector is selected to be identical to the third offspring manipulated variable vector, the eighth offspring manipulated variable vector is selected to be identical to the fourth offspring manipulated variable vector, the ninth offspring manipulated variable vector is selected to be identical to the fifth offspring manipulated variable vector - and thus also identical to the first offspring manipulated variable vector - and the tenth offspring manipulated variable vector is selected to be identical to the sixth offspring manipulated variable vector - and thus also identical to the second offspring manipulated variable vector. In particular, the second set of descendant manipulated variable vectors contains the predetermined total number of descendant manipulated variable vectors. In particular, the second set of descendant manipulated variable vectors consists of the predetermined total number of descendant manipulated variable vectors. In particular, the offspring manipulated variable vectors are mutated in step d). In particular, the elite manipulated variable vectors used are the highest-ranking descendant manipulated variable vectors corresponding to the predetermined subset U. In particular, the predetermined subset U is smaller than the predetermined total number G. In one embodiment, the predetermined subset U = 2; in this case, the elite manipulated variable vectors are the first, highest-ranking descendant manipulated variable vector and the second, immediately subsequent, descendant manipulated variable vector in the ranking. In one embodiment, in step d), the descendant manipulated variable vectors, with the exception of the predetermined subset U of elite manipulated variable vectors, are modified, in particular mutated, according to the following procedure, wherein the third set of manipulated variable vectors is formed: A modified descendant manipulated variable vector is formed from the corresponding descendant manipulated variable vector in the ranking by calculating its components with a random number, in particular a uniformly distributed random number, which is in particular selected from the interval [0,1], taking into account a weight factor, which is in particular selected from the interval [0,1]. In particular, the respective component is multiplied by the difference of the weight factor to 1, and the product of the random number and the weight factor is added to the result.In this way, the offspring manipulated variable vectors, with the exception of the predetermined minority of elite manipulated variable vectors, are advantageously changed by means of a uniformly distributed noise process. In one embodiment, the weighting factor is selected depending on the rank of the descendant manipulated variable vector to be changed within the ranking, in particular, the lower the rank of the descendant manipulated variable vector, the higher the weighting factor. Higher-ranking descendant manipulated variable vectors are thus changed less than lower-ranking descendant manipulated variable vectors, or—conversely formulated—lower-ranking descendant manipulated variable vectors are changed more than higher-ranking descendant manipulated variable vectors. In one embodiment, the relationship between the weighting factor and position i in the ranking is linear; as explained above, higher values of i correspond to a lower rank.Alternatively or additionally, in one embodiment, a distance—in particular a Euclidean distance—of the descendant manipulated variable vector to be changed from the first optimized manipulated variable vector is calculated to determine the weighting factor. The weighting factor is selected to be maximum, in particular equal to 1, if the distance of the descendant manipulated variable vector to be changed from the first optimized manipulated variable vector is smaller than a predetermined threshold distance. In one embodiment, the predetermined threshold distance is 0.1. If, however, the distance is greater than or equal to the predetermined threshold distance, the weighting factor is selected—as previously described—depending on the position of the descendant manipulated variable vector within the ranking. In particular, each component j of the descendant manipulated variable vectors xN to be changed is changed according to the following equation: where xm is the changed descendant manipulated variable vector, a is the weighting factor from the interval [0,1] assigned to the respective descendant manipulated variable vector xN to be changed, and the newly generated, in particular uniformly distributed, random number from the interval [0,1] for each component of each descendant manipulated variable vector xN. The value of a is greater the larger the i is. In one embodiment, the function ai(i) is a linear function. It is possible to additionally select ai= 1 if the - in particular Euclidean - distance between the descendant manipulated variable vector to be changed and the first optimized manipulated variable vector is smaller than a predetermined limit distance, in particular smaller than 0.1. In one embodiment, however, a descendant manipulated variable vector is not changed if it is identical to the first optimized manipulated variable vector. Alternatively or additionally, such a descendant manipulated variable vector is changed depending on its rank, in particular according to equation (5), if it is identical to the first optimized manipulated variable vector—in deviation from the procedure according to the distance. In a further embodiment, it is provided that a descendant manipulated variable vector identical to the first optimized manipulated variable vector with a relatively high rank, for example—in particular parameterizable—from 1 to 4, is not changed, while a descendant manipulated variable vector identical to the first optimized manipulated variable vector with a relatively low rank, for example, from 5 to 10, is changed depending on its rank, in particular according to equation (5).In particular, this approach can advantageously have an accelerating effect on the search for a global optimum, especially in the vicinity of a local optimum. In particular, the third set contains the modified descendant manipulated variable vectors and the elite manipulated variable vectors. In particular, the third set consists of the modified descendant manipulated variable vectors and the elite manipulated variable vectors. In particular, in step e), the second optimized manipulated variable vector is output to the control module, which determines the control manipulated variable vector based thereon. In particular, in step e), the second optimized manipulated variable vector is additionally transferred to the first optimization module, which then determines a new first optimized manipulated variable vector based on the second optimized manipulated variable vector. According to a further development of the invention, the second optimization module is further configured to f) receive the new, first optimized manipulated variable vector from the first optimization module and to form a fourth set of manipulated variable vectors with the size of the predetermined total number by replacing a manipulated variable vector from the third set with the new, first optimized manipulated variable vector, and g) to repeat steps b) to f) with the fourth set obtained in step f) as the first set, in particular until a predetermined termination condition is met. In this way, the search for an optimal control manipulated variable vector is advantageously carried out iteratively, with new developments, in particular changed operating conditions, being taken into account by adding the respective new, first optimized manipulated variable vector. In one embodiment, the first optimized manipulated variable vectors are determined by the first optimization module using a first time cycle having a first sampling time, wherein the second optimized manipulated variable vectors are determined by the second optimization module, in particular the implementation of steps b) to f), using a second time cycle having a second sampling time, wherein the first sampling time is shorter than the second sampling time. In particular, the first sampling time in one embodiment is 10 ms; alternatively or additionally, the second sampling time is 100 ms. Thus, in particular, a first optimized manipulated variable vector is determined more often than a second optimized manipulated variable vector.Thus, not every newly determined first optimized manipulated variable vector is considered as a new first optimized manipulated variable vector in step f), but, for example, every tenth newly determined first optimized manipulated variable vector for the specific sampling times mentioned. In particular, as described above, the new first optimized manipulated variable vector is determined by the first optimization module based on the second optimized manipulated variable vector determined in the previous iteration run. This ensures that the more accurate first, non-evolutionary algorithm searches for the first optimized manipulated variable vector in the region of the characteristic map in which the position of a possible global optimum was identified using the second, evolutionary algorithm. Thus, the advantages of both algorithms are cleverly combined, and as a result, a very accurate solution for the global optimum can be iterated out. In one embodiment, to form the fourth set, the lowest-ranking, worst-rated manipulated variable vector, in particular the manipulated variable vector assigned the rank i = G, is replaced by the new first optimized manipulated variable vector. In particular, the fourth set contains the predetermined total number of manipulated variable vectors. In particular, the fourth set consists of the predetermined total number of manipulated variable vectors. In one embodiment, the predetermined termination condition is checked in step e), wherein step f) and thus also the subsequent steps g) and b) to e) are only carried out again if the termination condition is not met. In one embodiment, the predetermined termination condition is the reaching of a predetermined maximum iteration number. Alternatively or additionally, the reaching of a predetermined maximum iteration time is used as the predetermined termination condition. Alternatively or additionally, the shutdown of the control device or the power device is used as the predetermined termination condition. In one embodiment, the maximum iteration number can be 1—particularly to ensure the real-time capability of the method—so that only exactly one run is performed. In other cases, however, particularly when more computing power is available or no real-time system is used, the maximum iteration number can also be greater than 1.A maximum iteration time can be used in configurations where, in the event of an error, invalid species are generated so that the model calculates invalid values, which could otherwise lead to a massive increase in runtime. A maximum iteration time can also be used when a real-time system is not used, although the available computing capacity may vary. By setting the maximum iteration time, it can be ensured that no outdated solution is continued to be calculated. According to a further development of the invention, the first optimization module is configured to determine the first optimized manipulated variable vector for a predetermined prediction interval. In particular, the first optimization module is configured to determine the first optimized manipulated variable vector for the end of the predetermined prediction interval. Thus, the first optimized manipulated variable vector is determined, as it were, for the future, in particular as a goal to be achieved. According to a further development of the invention, the control module is configured to determine the control variable vector using a model-based predictive method, penalizing any deviation of the control variable vector from the second optimized control variable vector. This advantageously ensures that the control variable vector determined by the control module develops in the direction of the second optimized control variable vector. In the context of the present technical teaching, a model-based predictive method is understood in particular to mean a model predictive control (Model Predictive Control - MPC). In particular, the control module is configured to calculate the control manipulated variable vector using a Gaussian process model. Alternatively or additionally, the first optimization module is configured to calculate the first optimized manipulated variable vector using a Gaussian process model, in particular using the same Gaussian process model that the control module also uses. Gaussian process models are particularly suitable for modeling and / or controlling a power device: Compared to polynomial-based models, they are particularly easy to adapt to new or changed data points in the application field, and they exhibit more suitable and physically correct behavior at the edges of the given parameter space. Compared to physical models, they require significantly less computational effort. Furthermore, they allow the direct use of test bench data, data from—especially high-precision—simulations or models, or even field data from the application field.Such a Gaussian process model is given, in particular, by stored data points (Xb,Yb), obtained, for example, in test bench experiments or from simulations or models. Xb∈ ℝn×m represents n input variables for m different operating states, and Yb∈ Rm×k represents k output variables for the m different operating states. The output variables Yb are, in particular, a subset of the at least one manipulated variable.Furthermore, the Gaussian process model is given by a predetermined calculation scheme for an expectation value E(Xu) ∈ ℝl×k and a variance Var(Xu) for input variables not contained in the original data set for l different operating states Xu∈ ℝn×l: with a mean function m(Xu), a predetermined variance σ2, the identity matrix I, and a covariance function K, which depends on the Euclidean distance r between two points x1, x2 in the following way: with a predetermined distance parameter l and a predetermined signal variance σF. Thus, in equations (6) and (7) K(Xu,Xb) ∈ ℝl×m, K(Xb,Xb) ∈ Rm×m, I ∈ Rm×m and Yb∈ Rm×k. The mean function m(x) is preferably obtained as a Gaussian process model. In particular, a first Gaussian process model, also referred to as the basic grid, is first adapted to second existing data under at least one constraint derived from first existing data, i.e., test bench data or data obtained from—in particular, highly accurate—models or simulations. In particular, input variables Xb are selected, and the associated output variables Yb are calculated such that a deviation of the expected value E(X) of the first Gaussian process model, which is determined by the input variables Xb and the output variables Yb, from the second existing data is minimized while maintaining the constraint. Furthermore, for the purpose of determining the first Gaussian process model, it is preferably assumed that its mean function m(x) = 0. The first existing data encompasses a larger parameter space than the second existing data.For example, for an internal combustion engine, it is possible for the first set of data to be measured on a single-cylinder test bench, while the second set of data is measured on the full engine or also on the single-cylinder test bench and, in the latter case, converted to the full engine—preferably using a simulation model. The constraint is preferably obtained as a trend, determining, for example, whether certain parameters behave linearly or monotonic with respect to one another. If no such trend is detected, the constraint can be omitted, in which case the fit of the Gaussian process model to the second set of data is also referred to as unconstrained. The expected value of the first Gaussian process model thus obtained is then used in a next step as the mean function m(x) in a second Gaussian process model, into which the second inventory data are now input as known input variables Xb2 and output variables Y62. According to a further development of the invention, the control module is configured to determine a manipulated variable vector trajectory for the predetermined prediction interval and to determine a current manipulated variable vector of the manipulated variable vector trajectory as the control manipulated variable vector. In particular, this advantageously ensures that the control manipulated variable vector determined by the control module develops toward the second optimized manipulated variable vector and thus, in particular, toward the global optimum. According to a further development of the invention, the first optimization module is configured to calculate the first optimized manipulated variable vector in a steady-state manner. This allows for a particularly simple and, in terms of computational costs, cost-effective calculation of the first optimized manipulated variable vector, since system dynamics are not considered here. According to a further development of the invention, the control module is configured to calculate the control manipulated variable vector, in particular the manipulated variable vector trajectory, taking into account the dynamics of the power device. In this way, the dynamics of the system are taken into account in the control module, whereby consideration of the dynamics in the first optimization module can advantageously be omitted. The object is also achieved by providing a power arrangement comprising a power device and a control device according to the invention or a control device according to one or more of the previously described embodiments. In connection with the power arrangement, the advantages already described above in connection with the control device are realized in particular. In particular, the control device is operatively connected to the power device in order to control the power device. In one embodiment, it is provided that the power device is designed as an internal combustion engine, an internal combustion engine-generator combination device, i.e., a genset, a fuel cell, an energy storage device, in particular a battery, an electrolyzer, a data center or a microgrid, or as another controllable or regulatable load on an electrical network. The object is also achieved by providing a method for operating a power device, wherein a first optimized manipulated variable vector is determined by means of a first, non-evolutionary algorithm, a second optimized manipulated variable vector is determined by means of a second, evolutionary algorithm using the first optimized manipulated variable vector, a control manipulated variable vector is determined as a function of the second optimized manipulated variable vector, and the power device is operated with the control manipulated variable vector. In connection with the method, in particular, those advantages that were already described above in connection with the control device and the power arrangement are realized. In one embodiment, it is provided that an internal combustion engine, an internal combustion engine-generator combination device, i.e. a genset, a fuel cell, an energy storage device, in particular a battery, an electrolyzer, a data center or microgrid, or another controllable or regulatable load is operated on an electrical network as the power device. In one embodiment, the first optimized manipulated variable vector is determined using a gradient method as the first non-evolutionary algorithm. In one embodiment, a predetermined number of test manipulated variable vectors is generated, and the first optimized manipulated variable vector is used as another test manipulated variable vector, forming a first set of manipulated variable vectors with the cardinality of a predetermined total number. The first set of manipulated variable vectors comprises the predetermined number of test manipulated variable vectors and the first optimized manipulated variable vector as another test manipulated variable vector. The second optimized manipulated variable vector is determined from the first set of manipulated variable vectors using the second evolutionary algorithm. In one embodiment, a) the first set of manipulated variable vectors is formed from the predetermined number of randomly generated test manipulated variable vectors and the first optimized manipulated variable vector received from the first optimization module as a further test manipulated variable vector; b) each test manipulated variable vector of the first set is evaluated using a cost function; c) a second set of descendant manipulated variable vectors with the cardinality of the predetermined total number is formed from a predetermined parent number of the test manipulated variable vectors of the first set that were best evaluated using the cost function;d) the offspring manipulated variable vectors are modified with the exception of a predetermined subset of elite manipulated variable vectors, forming a third set of manipulated variable vectors with the cardinality of the predetermined total number, the third set comprising the modified offspring manipulated variable vectors and the elite manipulated variable vectors, and e) the test manipulated variable vector best evaluated by means of the cost function is determined as the second optimized manipulated variable vector; In one embodiment, furthermore f) a new first optimized manipulated variable vector is received from the first optimization module, and a fourth set of manipulated variable vectors with the cardinality of the predetermined total number is formed by replacing a manipulated variable vector of the third set by the new first optimized manipulated variable vector, and g) steps b) to f) are repeated with the fourth set obtained in step f) as the first set, in particular until a predetermined termination condition is met. In one embodiment, the first optimized manipulated variable vector is determined for a predetermined prediction interval. In particular, the first optimized manipulated variable vector is determined for the end of the predetermined prediction interval. In one embodiment, the control manipulated variable vector is determined by means of a model-based, predictive method penalizing a deviation of the control manipulated variable vector from the second optimized manipulated variable vector. In one embodiment, a manipulated variable vector trajectory is determined for the predetermined prediction interval, and a current manipulated variable vector of the manipulated variable vector trajectory is determined as the control manipulated variable vector. In particular, the first optimized manipulated variable vector is calculated stationary in one embodiment. In one embodiment, the control manipulated variable vector, in particular the manipulated variable vector trajectory, is calculated taking into account a dynamics of the power device. In particular, the control device according to the invention or a control device according to one or more of the previously described embodiments is configured to carry out the method according to the invention or a method according to one or more of the previously described embodiments. The description of the control device, on the one hand, and of the method, on the other hand, are to be understood as complementary. In particular, the method comprises at least one step or a combination of steps that were previously described explicitly or implicitly in connection with the control device. The invention is explained in more detail below with reference to the drawing. In the drawings: Fig. 1 shows a schematic representation of an embodiment of a power arrangement with an embodiment of a control device; Fig. 2 shows a schematic representation of an embodiment of a method for operating a power device in the form of a flowchart; and Fig. 3 shows a schematic representation of a detail of the method according to Fig. 2. Fig. 1 shows a schematic representation of an embodiment of a power arrangement 1 with an embodiment of a control device 3. The power arrangement 1 also has a power device 5 which is operatively connected to the control device 3 so that the control device 3 can control the power device 5. In the embodiment illustrated here, the power device 5 is designed as an internal combustion engine 6. However, it can also be designed, in particular, as an internal combustion engine-generator combination device, i.e., a genset, fuel cell, energy storage device, in particular a battery, electrolyzer, data center, or microgrid, or as another controllable or regulatable load on an electrical network. The control device 3 is configured to determine a control manipulated variable vector comprising manipulated variables for controlling the power device 5. For this purpose, it has a first optimization module 7, which is configured to determine a first optimized manipulated variable vector using a first, non-evolutionary algorithm, a second optimization module 9, which is configured to receive the first optimized manipulated variable vector from the first optimization module 7 and to determine a second optimized manipulated variable vector using the first optimized manipulated variable vector using a second, evolutionary algorithm, and a control module 11, which is configured to determine the control manipulated variable vector as a function of the second optimized manipulated variable vector. In particular, the control device 3 is configured to carry out an embodiment of a method for operating the power device 5 described below. Fig. 2 shows a schematic representation of an embodiment of a method for operating the power device 5 in the form of a flow chart. Identical and functionally identical elements are provided with the same reference symbols in all figures, so that reference is made to the preceding description in each case. Within the scope of the method, in particular, a first optimized manipulated variable vector is determined by means of a first, non-evolutionary algorithm, a second optimized manipulated variable vector is determined by means of a second, evolutionary algorithm using the first optimized manipulated variable vector, wherein a control manipulated variable vector is determined as a function of the second optimized manipulated variable vector, and wherein the power device is operated with the control manipulated variable vector. In one embodiment, the first optimized manipulated variable vector is determined using a gradient method as the first non-evolutionary algorithm. In particular, in a first step S1, the first optimized manipulated variable vector 1SV is determined, in particular calculated, by the first optimization module 7 using a first, non-evolutionary algorithm. For this purpose, the first optimization module 7 uses, in particular, operating parameters BP of the power device 5, wherein the operating parameters BP are included in the determination of the first optimized manipulated variable vector 1SV. The operating parameters BP can be received, in particular, by the first optimization module 7 or another module of the control device 3—in particular via at least one suitable interface, for example from sensors—or they can be determined, in particular calculated or simulated, by the first optimization module 7 or another module of the control device 3 itself, in particular based on measured values determined by at least one sensor.The operating parameters BP are preferably selected from a group consisting of an ambient temperature, an ambient air pressure, a target value for the operation of the power device 5, a limit value for the operation of the power device 5, at least one environmental boundary condition, and a combination of at least two of the aforementioned parameters. The operating parameters BP may also include other parameters not explicitly mentioned here. Preferably, the first optimized manipulated variable vector 1SV is determined by the first optimization module 7 for a predetermined prediction interval. In particular, the first optimized manipulated variable vector is determined for the end of the predetermined prediction interval. In particular, the first optimized manipulated variable vector 1SV is calculated using a gradient method. Alternatively or additionally, the first optimized manipulated variable vector 1SV is calculated in a steady-state fashion. Preferably, the first optimized manipulated variable vector 1SV is calculated using a model-based, predictive method, in particular using the same method that is also used by the control module 11 to calculate the control manipulated variable vector; however, the first optimized manipulated variable vector 1SV is preferably calculated in a steady-state fashion, while the dynamics of the power device 5 are included for calculating the control manipulated variable vector. In a second step S2, the first optimized manipulated variable vector 1SV is received by the second optimization module 9 from the first optimization module 7, and a second optimized manipulated variable vector 2SV is determined, in particular calculated, by the second optimization module 9 by means of a second evolutionary algorithm using the first optimized manipulated variable vector 1SV. Preferably, a predetermined number of test manipulated variable vectors is generated for this purpose, and the first optimized manipulated variable vector 1SV is used as a further test manipulated variable vector, so that a first set of manipulated variable vectors with the cardinality of a predetermined total number is formed. The first set of manipulated variable vectors comprises the predetermined number of test manipulated variable vectors and the first optimized manipulated variable vector 1SV as a further test manipulated variable vector. The second optimized manipulated variable vector 2SV is determined from the first set of manipulated variable vectors using the second, evolutionary algorithm. The operating parameters BP are again used to determine the second optimized manipulated variable vector 2SV, particularly for calculating a cost function, which is used to evaluate the test manipulated variable vectors. The determination of the second optimized manipulated variable vector 2SV is explained in more detail in connection with Fig. 3. In particular, as shown by a dashed arrow, the second optimized manipulated variable vector 2SV determined in the second step S2 is transmitted to the first optimization module 7. The first step S1 is repeated, in particular, with a first time cycle having a first sampling time, wherein a new first optimized manipulated variable vector 1SV is determined in each case based on the currently transmitted second optimized manipulated variable vector 2SV. As also shown by a dashed arrow, each newly determined first optimized manipulated variable vector 1SV is preferably transferred to the control module 11 in order to determine the control manipulated variable vector AV. The second step S2 is preferably repeated with a second time cycle having a second sampling time, wherein the first sampling time is, in particular, shorter than the second sampling time.Preferably, if no new second optimized manipulated variable vector 2SV is currently available, the respective current, new first optimized manipulated variable vector 1SV is used by the control module 11 instead of the last received second optimized manipulated variable vector 2SV to determine the control manipulated variable vector AV. Starting from the second step S2, a third step S3 checks whether a predetermined termination condition is met. If this is not the case, the second step S2 is repeated, with a new second optimized manipulated variable vector 2SV being determined using a new first optimized manipulated variable vector 1SV, which is again currently received from the first optimization module 7. The second and third steps S2 and S3 are repeated until the predetermined termination condition is met in the third step S3. If this is the case, the method ends in a fourth step S4. The repetition of the second and third steps S2 and S3 preferably occurs with the second time cycle having the second sampling time. In particular, the first sampling time is shorter than the second sampling time. Preferably, the first sampling time is 10 ms, and the second sampling time is 100 ms. Thus, the first step is performed more frequently than the iteration of the second and third steps S2 and S3. Simultaneously with the iteration of the second and third steps S2 and S3 described in the previous paragraph, each newly determined second optimized manipulated variable vector 2SV in the current second step S2 is always transferred to the control module 11, which, in a fifth step S5, determines a control manipulated variable vector AV as a function of the second optimized manipulated variable vector 2SV. If no new second optimized manipulated variable vector 2SV is currently received, but a new first optimized manipulated variable vector 1SV is, the control manipulated variable vector AV is determined as a function of the new first optimized manipulated variable vector 1SV. Preferably, the control variable vector AV is determined by the control module 11 using a model-based, predictive method, penalizing a deviation of the control variable vector AV from the second optimized manipulated variable vector 2SV—or alternatively, the new first optimized manipulated variable vector 1SV. In particular, a manipulated variable vector trajectory is preferably determined for the predetermined prediction interval, and a current manipulated variable vector of the manipulated variable vector trajectory is determined as the control variable vector AV. In particular, the control variable vector AV, in particular the manipulated variable vector trajectory, is preferably calculated taking into account the dynamics of the power device 5. In a sixth step S6, the power device 5 is then operated by means of the control manipulated variable vector AV determined in the fifth step S5, in particular by controlling the power devices 5 with the manipulated variables included as components by the control manipulated variable vector AV. Fig. 3 shows a schematic representation of a detail of the method according to Fig. 2 . In particular, the determination of the second optimized manipulated variable vector 2SV in the second step S2 is explained in more detail with reference to Fig. 3. First, in a first second step S2.1, the first optimized manipulated variable vector 1SV and the operating parameters BP are received. In a second step S2.2, the predetermined number - G-1 - of test manipulated variable vectors TSV is randomly generated, and the first set of manipulated variable vectors with the cardinality of the predetermined total number G is formed from the predetermined number G-1 of randomly generated test manipulated variable vectors TSV and the first optimized manipulated variable vector 1SV received from the first optimization module 7 as a further test manipulated variable vector TSV. In a third second step S2.3, each test manipulated variable vector TSV of the first set is evaluated using a cost function - in particular taking into account the operating parameters BP. In a fourth second step S2.4, a second set of offspring manipulated variable vectors NSV with the cardinality of the predetermined total number G is formed from a predetermined parent number E of the test manipulated variable vectors TSV of the first set that are best evaluated by means of the cost function. In a fifth second step S2.5, the descendant manipulated variable vectors NSV are mutated with the exception of a predetermined subset U of elite manipulated variable vectors, forming a third set of manipulated variable vectors with the cardinality of the predetermined total number G, the third set comprising the mutated descendant manipulated variable vectors mNSV and the elite manipulated variable vectors. Finally, in a sixth second step S2.6, the test manipulated variable vector TSV best evaluated by means of the cost function is determined as the second optimized manipulated variable vector 2SV. Returning to Fig. 2, within the scope of the iteration of the second and third steps S2 and S3, in each further execution of the first second step S2.1 by the second optimization module 9, a new first optimized manipulated variable vector 1SV is received from the first optimization module 7, and in each further execution of the second second step S2.2, a fourth set of manipulated variable vectors with the cardinality of the predetermined total number G is formed by replacing a manipulated variable vector of the third set with the new first optimized manipulated variable vector 1SV. In particular, to form the fourth set, the lowest-ranking, worst-rated manipulated variable vector is replaced by the new first optimized manipulated variable vector 1SV. The newly formed fourth set is then used as the new first set. The further iteration steps, in particular steps S2.3 to S2.6, are then carried out with the method developed in the second second step S2.2 formed fourth set as the new first set, in particular until the predetermined termination condition is met in the third step S3.
Claims
Control device (3) for a power device (5), wherein the control device (3) is configured to determine a control manipulated variable vector which comprises manipulated variables for controlling the power device (5), comprising: - a first optimization module (7) which is configured to determine a first optimized manipulated variable vector by means of a first, non-evolutionary algorithm; - a second optimization module (9) which is configured to receive the first optimized manipulated variable vector from the first optimization module (7) and to determine a second optimized manipulated variable vector by means of a second, evolutionary algorithm using the first optimized manipulated variable vector; and - a control module (11) which is configured to determine the control manipulated variable vector as a function of the second optimized manipulated variable vector. Control device (3) according to claim 1, wherein the first optimization module (7) is configured to determine the first optimized manipulated variable vector by means of a gradient method as the first non-evolutionary algorithm. Control device (3) according to one of the preceding claims, wherein the second optimization module (9) is configured to generate a predetermined number of test manipulated variable vectors, to use the first optimized manipulated variable vector as a further test manipulated variable vector, so that a first set of manipulated variable vectors with the cardinality of a predetermined total number is formed, wherein the first set of manipulated variable vectors comprises the predetermined number of test manipulated variable vectors and the first optimized manipulated variable vector as a further test manipulated variable vector, and to determine the second optimized manipulated variable vector from the first set of manipulated variable vectors by means of the second evolutionary algorithm.Control device (3) according to one of the preceding claims, wherein the second optimization module (9) is configured to: a) form a first set with the power of a predetermined total number of manipulated variable vectors from a predetermined number of randomly generated test manipulated variable vectors and the first optimized manipulated variable vector received from the first optimization module (7) as a further test manipulated variable vector, wherein the first set of manipulated variable vectors comprises the predetermined number of test manipulated variable vectors and the first optimized manipulated variable vector as a further test manipulated variable vector; b) evaluate each test manipulated variable vector of the first set using a cost function; c) form a second set of descendant manipulated variable vectors with the power of the predetermined total number from a predetermined parent number of the test manipulated variable vectors of the first set that were best evaluated using the cost function;d) modifying the offspring manipulated variable vectors with the exception of a predetermined subset of elite manipulated variable vectors, forming a third set of manipulated variable vectors with the cardinality of the predetermined total number, the third set comprising the modified offspring manipulated variable vectors and the elite manipulated variable vectors, and e) determining the test manipulated variable vector best evaluated by the cost function as the second optimized manipulated variable vector; Control device (3) according to claim 4, wherein the second optimization module (9) is further configured tof) receive a new first optimized manipulated variable vector from the first optimization module (7) and to form a fourth set of manipulated variable vectors with the cardinality of the predetermined total number by replacing a manipulated variable vector of the third set with the new first optimized manipulated variable vector, andg) to repeat steps b) to f) with the fourth set obtained in step f) as the first set, in particular until a predetermined termination condition is met. Control device (3) according to one of the preceding claims, wherein the first optimization module (7) is configured to determine the first optimized manipulated variable vector for a predetermined prediction interval, in particular for the end of the predetermined prediction interval. Control device (3) according to one of the preceding claims, wherein the control module (11) is configured to determine the control manipulated variable vector by means of a model-based, predictive method while penalizing a deviation of the control manipulated variable vector from the second optimized manipulated variable vector. Control device (3) according to one of the preceding claims, wherein the control module (11) is configured to determine a manipulated variable vector trajectory for the predetermined prediction interval and to determine a current manipulated variable vector of the manipulated variable vector trajectory as the control manipulated variable vector. Control device (3) according to one of the preceding claims, wherein the first optimization module (7) is configured to calculate the first optimized manipulated variable vector in a stationary manner. Control device (3) according to one of the preceding claims, wherein the control module (11) is configured to calculate the control manipulated variable vector, in particular the manipulated variable vector trajectory, taking into account a dynamics of the power device (5). Power arrangement (1) comprising a power device (5) and a control device (3) according to one of claims 1 to 10. Method for operating a power device (5), wherein- a first optimized manipulated variable vector is determined by means of a first, non-evolutionary algorithm,- a second optimized manipulated variable vector is determined by means of a second, evolutionary algorithm using the first optimized manipulated variable vector, wherein- a control manipulated variable vector is determined as a function of the second optimized manipulated variable vector, and wherein- the power device (5) is operated with the control manipulated variable vector.
Citation Information
Patent Citations
Procedure for controlling power plant blocks.
CH710433A2
Interactive assistance system and method for computer-aided control optimization for a technical system
DE102014212747A1
Signal processing using genetic algorithms
GB2390706A
