The invention relates generally to a model predictive control of an electric machine of a drive train of a motor vehicle.
Methods of model predictive control (MPC) are utilized in the field of closed-loop trajectory control, in particular, in the area of closed-loop prime mover control in motor vehicles. For example, Schwickart proposes an approach to quadratic programming in his work “Energy-Efficient Driver Assistance System For Electric Vehicles Using Model-Predictive Control” (Schwickart, T., Université du Luxembourg, dissertation, 2015). According thereto, a reformulation of a system model is carried out in order to obtain a linear or quadratic problem that converges and is numerically easily solved. Moreover, EP2610836 A1 describes an optimization of an energy management strategy based on a prediction horizon and further surroundings information by minimizing a cost function. In the process, a neural network is created for use in the vehicle and a modeling of the driver and a prediction of the speed profile likely selected by the driver are carried out. Moreover, EP1256476 B1 discloses a strategy for reducing the energy demand during driving and for increasing the range. In the process, navigation unit information is utilized, namely a current vehicle position, road patterns, geography with date and time, altitude changes, speed limits, intersection density, traffic control, and driving patterns of the driver.
US 2004/068359 A1 also describes a predictive cruise control system, which utilizes information about the current vehicle position and the upcoming terrain in order to save fuel and increase driving comfort. A vehicle operating cost function is defined, based on a plurality of environmental parameters, vehicle parameters, vehicle operating parameters, and route parameters. As the vehicle travels over a particular route for which route parameters, such as road gradient and curvature, are stored in a road map, sensors aboard the vehicle detect environmental and vehicle operating parameters, including at least vehicle speed and the position relative to the road map. As the vehicle proceeds, an onboard computer iteratively calculates and stores in a memory vehicle control parameters that optimize the vehicle operating cost function for a predetermined prediction horizon along the route ahead of the vehicle. The optimal vehicle control parameters for the prediction horizon are then stored in a memory and continuously updated and replaced by new data as the vehicle moves along. As a result, the “optimal” control parameters are adjusted to reflect actual vehicle historical operating experience during the journey. The vehicle is then controlled by reading the optimized updated vehicle control parameters from the memory, corresponding to the current position of the vehicle.
The driver and his/her driving style have an enormous influence on energy consumption during the operation of a motor vehicle. Known cruise control systems do not take energy consumption into account, however. In addition, predictive driving strategies are typically rules-based and, thus, do not yield optimal results in every situation. Optimization-based strategies, furthermore, require a large amount of computing time and previously have been known only as an off-line solution or are solved with dynamic programming.
Example aspects of the present invention provide improved MPC for an electric machine of a drive train of a motor vehicle.
Example aspects of the present invention provide an optimization of the energy consumption of the motor vehicle during the journey based on the knowledge of losses of the drive train. For this purpose—as explained in greater detail in the following—focus is placed, in particular, on efficiency maps of the drive train components and driving resistances. The utilization of a reference speed can be completely dispensed with.
The method of model predictive control (MPC) was selected in order to find, in any situation under established marginal conditions and constraints, an optimal solution for a “driving efficiency” driving function, which is to provide an efficient driving style. The MPC method is based on a system model that describes the behavior of the system. In addition, the MPC method is based on an objective function or on a cost function that describes an optimization problem and determines which state variables are to be minimized. The state variables for the “driving efficiency” driving function can therefore be, in particular, the vehicle speed or the kinetic energy, the energy remaining in the battery, and the driving time. Energy consumption and driving time are optimized, in particular, on the basis of the uphill grade of the upcoming route and constraints for speed and drive force, and on the basis of the current system state.
The prior art, in particular Schwickart (see above), teaches a speed reference as the basis for the MPC controller. In addition to an elevated energy consumption, deviations from this reference speed are penalized in the objective function. Schwickart has also researched, alternatively, a formulation that gets by without reference speed and, instead, penalizes a deviation from a defined permitted speed range. Schwickart has not assessed this formulation as advantageous, since, due to the second term in the objective function, which minimizes the energy consumption, the solution is always at the lower edge of the permitted speed range. This is also similarly the case, however, when the speed reference is utilized. As soon as the term that penalizes the deviation from the speed reference is relaxed, the evaluation of the energy consumption results in a reduction of the driving speed. A deviation from the reference will always take place in the direction of lower speeds.
In order to counteract this, example aspects of the present invention provide that the objective function or the cost function of the “driving efficiency” driving strategy includes one more term, as the result of which the driving time, in addition to the energy consumption, is also minimized. As a result, depending on the selection of the weighting factors, a low speed cannot always be evaluated as optimal and, thus, the problem no longer exists that the resultant speed is always at the lower edge of the permitted speed.
Example aspects of the present invention makes it possible that the driver influence is no longer relevant for the energy consumption and the driving time of the motor vehicle, because the electric machine can be controlled by the processor unit based on the input variable, which is determined by executing the MPC algorithm. By the input variable, in particular, an optimal prime mover operating point of the electric machine can be set. As a result, a direct regulation of the optimal speed of the motor vehicle can be carried out.
In this sense, according to a first example aspect of the invention, a processor unit is provided for the model predictive control of an electric machine of a drive train of a motor vehicle. The processor unit is configured for executing an MPC algorithm for the model predictive control of an electric machine of a drive train of a motor vehicle, wherein the MPC algorithm includes a longitudinal dynamic model of the drive train and a cost function to be minimized. The cost function includes, as a first term, an electrical energy weighted with a first weighting factor and predicted according to the longitudinal dynamic model, which is provided within a prediction horizon by a battery of the drive train for driving the electric machine. In addition, the cost function includes, as a second term, a driving time weighted with a second weighting factor and predicted according to the longitudinal dynamic model, which the motor vehicle needs in order to cover the entire distance predicted within the prediction horizon. The processor unit is configured for determining an input variable or an input signal for the electric machine by executing the MPC algorithm as a function of the first term and as a function of the second term such that the cost function is minimized. In addition, the processor unit can be configured for controlling, by way of an open-loop system, the electric machine based on the input variable.
According to a second example aspect of the invention, a vehicle is provided. The vehicle includes a drive train with an electric machine and a driver assistance system. In addition, the drive train includes, in particular, a battery. Moreover, the drive train includes, in particular, a transmission. The driver assistance system is configured for accessing an input variable for the electric machine by a communication interface, wherein the input variable has been determined by a processor unit according to the first example aspect of the invention. In addition, the driver assistance system can be configured for controlling, by way of an open-loop system, the electric machine based on the input variable. The vehicle is, for example, a motor vehicle, such as an automobile (for example, a passenger car having a weight of less than three and a half tons (3.5 t)), a motorcycle, a motor scooter, a moped, a bicycle, an e-bike, a bus, or a truck (bus and truck, for example, having a weight of over three and a half tons (3.5 t)). The vehicle can belong, for example, to a vehicle fleet. The vehicle can be controlled by a driver, possibly assisted by a driver assistance system. The vehicle can also be, for example, remotely controlled and/or (semi-)autonomously controlled, however.
According to a third example aspect of the invention, a method is provided for the model predictive control of an electric machine of a drive train of a motor vehicle. According to the method, an MPC algorithm for the model predictive control of an electric machine of a drive train of a motor vehicle is executed by =a processor unit. The MPC algorithm includes a longitudinal dynamic model of the drive train and a cost function to be minimized, wherein the cost function includes, as a first term, an electrical energy weighted with a first weighting factor and predicted according to the longitudinal dynamic model, which is provided within a prediction horizon by a battery of the drive train for driving the electric machine, and wherein the cost function includes, as a second term, a driving time weighted with a second weighting factor and predicted according to the longitudinal dynamic model, which the motor vehicle needs in order to cover the entire distance predicted within the prediction horizon. In addition, an input variable for the electric machine is determined, as a function of the first term and as a function of the second term by executing the MPC algorithm by =the processor unit, such that the cost function is minimized. In addition, according to the method according to example aspects of the invention, the electric machine can be controlled, by way of an open-loop system, based on the input variable.
According to a fourth example aspect of the invention, a computer program product is provided for the model predictive control of an electric machine of a drive train of a motor vehicle, wherein the computer program product, when run on a processor unit, instructs the processor unit to execute an MPC algorithm for the model predictive control of an electric machine of a drive train of a motor vehicle. The MPC algorithm includes a longitudinal dynamic model of the drive train and a cost function to be minimized, wherein the cost function includes, as a first term, an electrical energy weighted with a first weighting factor and predicted according to the longitudinal dynamic model, which is provided within a prediction horizon by a battery of the drive train for driving the electric machine, and wherein the cost function includes, as a second term, a driving time weighted with a second weighting factor and predicted according to the longitudinal dynamic model, which the motor vehicle needs in order to cover the entire distance predicted within the prediction horizon. In addition, the computer program product, when run on the processor unit, instructs the processor unit to determine an input variable for the electric machine by executing the MPC algorithm as a function of the first term and as a function of the second term such that the cost function is minimized. Moreover, the computer program product, when run on the processor unit, can instruct the processor unit to control, by way of an open loop system, the electric machine based on the input variable.
The following comments apply similarly for the processor unit according to the first example aspect of the invention, for the vehicle according to the second example aspect of the invention, for the method according to the third example aspect of the invention, and for the computer program product according to the fourth example aspect of the invention.
The longitudinal dynamic model of the drive train can include a vehicle model with vehicle parameters and drive train losses (in part, approximated characteristic maps). In particular, findings regarding upcoming route topographies (for example, curves and uphill grades) can be incorporated into the longitudinal dynamic model of the drive train. In addition, findings regarding speed limits on the upcoming route can also be incorporated into the longitudinal dynamic model of the drive train.
The cost function has exclusively linear and quadratic terms. As a result, the overall problem has the form of a quadratic optimization with linear constraints and a convex problem results, which can be solved well and quickly. The objective function or the cost function can be formulated with a weighting (weighting factors), wherein, in particular, an energy efficiency, a driving time, and a ride comfort are calculated and weighted. An energy-optimal speed trajectory can be calculated online for an upcoming horizon on the processor unit, which can form, in particular, an integral part of a central control unit of the motor vehicle. By utilizing the MPC method, moreover, the target speed of the motor vehicle can be cyclically recalculated based on the current driving mode and the upcoming route information.
Current state variables can be measured and appropriate data can be recorded and supplied to the MPC algorithm. In this way, route data from an electronic map can be updated, in particular cyclically, for a prediction horizon (for example, four hundred meters (400 m)) ahead of the motor vehicle. The route data can include, for example, uphill grade information, curve information, and information about speed limits. Moreover, a curve curvature can be converted, via a maximum permissible lateral acceleration, into a speed limit for the motor vehicle. In addition, a position finding of the motor vehicle can be carried out, in particular via a GNSS signal for the precise localization on the electronic map.
A minimization of the driving time for the prediction horizon and a minimization of consumed energy are carried out by the cost function of the MPC algorithm. In one example embodiment, a minimization of torque changes for the prediction horizon is also carried out. With respect to the input for the model predictive control, for example, speed limits, physical limits for the torque, and rotational speeds of the electric machine can be supplied to the MPC algorithm as constraints. In addition, control variables for the optimization can be supplied to the MPC algorithm as input, in particular the speed of the vehicle (which can be proportional to the rotational speed), the torque of the electric machine, and the state of charge of the battery. As the output of the optimization, the MPC algorithm can yield an optimal rotational speed and an optimal torque for calculated points in the prediction horizon. With respect to the implementation of the MPC in the vehicle, a software module can be connected downstream from the MPC algorithm, which determines a currently relevant state and transmits the currently relevant state to a power electronics unit.
Energy consumption and driving time can both be evaluated and weighted at the end of the horizon. This term is therefore active only for the last point of the horizon. In this sense, the cost function in one example embodiment includes an energy consumption final value—weighted with the first weighting factor—which the predicted electrical energy assumes at the end of the prediction horizon, and the cost function includes a driving time final value—weighted with the second weighting factor—which the predicted driving time assumes at the end of the prediction horizon.
In order to ensure comfortable driving, additional terms can be introduced for penalizing torque surges. In this sense, the cost function includes a third term having a third weighting factor, wherein the third term includes a value of a torque that the electric machine provides for driving the motor vehicle, which is predicted according to the longitudinal dynamic model, and wherein the processor unit is configured for determining the input variable for the electric machine by executing the MPC algorithm as a function of the first term, as a function of the second term, and as a function of the third term such that the cost function is minimized.
For the first point in the horizon, the deviation from the most recently set torque can be evaluated as negative in order to ensure that there is a seamless and smooth transition during the change-over between an old trajectory and a new trajectory. In this sense, the third term can include a first value—weighted with the third weighting factor—of a torque that the electric machine provides for driving the motor vehicle to a first waypoint within the prediction horizon, which is predicted according to the longitudinal dynamic model. The third term can include a zeroth value—weighted with the third weighting factor—of a torque that the electric machine provides for driving the motor vehicle to a zeroth waypoint, which is situated directly ahead of the first waypoint. The zeroth torque can be, in particular, a real—not merely predicted—torque provided by the electric machine. In the cost function, the zeroth value of the torque can be subtracted from the first value of the torque.
Alternatively, the third term can include a first value—weighted with the third weighting factor—of a drive force that the electric machine provides for driving the motor vehicle to a first waypoint within the prediction horizon, which is predicted according to the longitudinal dynamic model. The third term includes a zeroth value—weighted with the third weighting factor—of a drive force that the electric machine provides for driving the motor vehicle to a zeroth waypoint, which is situated directly ahead of the first waypoint, wherein, in the cost function, the zeroth value of the drive force is subtracted from the first value of the drive force.
The waypoints that are taken into account by the MPC algorithm are, in particular, discrete waypoints that follow one another at a certain frequency. In this sense, the zeroth waypoint and the first waypoint represent discrete waypoints, wherein the first waypoint immediately follows the zeroth waypoint. The zeroth waypoint can be situated before the prediction horizon. The zeroth torque value can be measured or determined for the zeroth waypoint. The first waypoint represents, in particular, the first waypoint within the prediction horizon. The first torque value can be predicted for the first waypoint. Therefore, the actually determined zeroth torque value can be compared with the predicted first torque value.
Additionally, excessively high torque gradients within the horizon are disadvantageous, and so, in one example embodiment, the excessively high torque gradients are already penalized in the objective function. For this purpose, the quadratic deviation of the drive force per meter can be weighted and minimized in the objective function. In this sense, the cost function can include a fourth term having a fourth weighting factor, wherein the fourth term includes a gradient of the torque predicted according to the longitudinal dynamic model or an indicator value for a gradient of the torque predicted according to the longitudinal dynamic model. The processor unit is configured for determining the input variable for the electric machine by executing the MPC algorithm as a function of the first term, as a function of the second term, as a function of the third term, and as a function of the fourth term such that the cost function is minimized.
In one example embodiment, the fourth term includes a quadratic deviation of the gradient of the torque, which has been multiplied by the fourth weighting factor and summed. In addition, the cost function can include a quadratic deviation—which has been summed with the fourth weighting factor—of a drive force that the electric machine provides in order to propel the motor vehicle one meter in the longitudinal direction. In this sense, the fourth term can include a quadratic deviation—which has been multiplied by the fourth weighting factor and summed—of a drive force that the electric machine provides in order to propel the motor vehicle one meter in the longitudinal direction.
Speed limits, which can be established, for example, by road traffic regulations, are hard limits for the optimization, which are not to be exceeded. A slight exceedance of the speed limits is always permissible in reality and tends to be the normal case primarily during transitions from one speed zone into a second zone. In dynamic surroundings, in which speed limits shift from one computing cycle to the next computing cycle, it can happen, in the case of very hard limits, that a valid solution for a speed profile can no longer be found. In order to increase the stability of the computational algorithm, a soft constraint can be introduced into the objective function. In particular, a slack variable can become active in a predefined narrow range before the hard speed limit is reached. Solutions that are situated very close to the hard speed limit can be evaluated as poorer, i.e., solutions, the speed trajectory of which maintains a certain distance to the hard limit. In this sense, the cost function can include, as a fifth term, a slack variable weighted with a fifth weighting factor, wherein the processor unit is configured for determining the input variable for the electric machine by executing the MPC algorithm as a function of the first term, as a function of the second term, as a function of the third term, as a function of the fourth term, and as a function of the fifth term such that the cost function is minimized.
In order to respect the physical limits of the drive train components, the tractive force can be limited by delimiting the characteristic map of the electric machine. For example, the battery is the limiting element for the maximum recuperation. In order not to damage the battery, a certain negative power value should not be fallen below.
Exemplary embodiments of the invention are explained in greater detail in the following with reference to the diagrammatic drawings, wherein identical or similar elements are labeled with the same reference characters, wherein
Reference will now be made to embodiments of the invention, one or more examples of which are shown in the drawings. Each embodiment is provided by way of explanation of the invention, and not as a limitation of the invention. For example, features illustrated or described as part of one embodiment can be combined with another embodiment to yield still another embodiment. It is intended that the present invention include these and other modifications and variations to the embodiments described herein.
A computer program product 11 can be stored on the memory unit 4. The computer program product 11 can be run on the processor unit 3, for the purpose of which the processor unit 3 and the memory unit 4 are connected to each other by the communication interface 5. When the computer program product 11 is run on the processor unit 3, the computer program product 11 instructs the processor unit 3 to perform the functions described in conjunction with the drawing and/or to carry out method steps.
The computer program product 11 includes an MPC algorithm 13. The MPC algorithm 13 includes a longitudinal dynamic model 14 of the drive train 7 of the motor vehicle 1 and a cost function 15 to be minimized. The processor unit 3 executes the MPC algorithm 13 and thereby predicts a behavior of the motor vehicle 1 based on the longitudinal dynamic model 14, wherein the cost function 15 is minimized. An optimal rotational speed and an optimal torque of the electric machine 8 for calculated points in the prediction horizon result as the output of the optimization by the MPC algorithm 13. For this purpose, the processor unit 3 can determine an input variable for the electric machine 8, enabling the optimal rotational speed and the optimal torque to set in. The processor unit 3 can control, by way of an open-loop system, the electric machine 8 based on the determined input variable. In addition, this can also be carried out by a driver assistance system 16, however.
The detection unit 6 can measure current state variables of the motor vehicle 1, record appropriate data, and supply the current state variables and data to the MPC algorithm 13. In this way, route data from an electronic map can be updated, in particular cyclically, for a prediction horizon (for example, 400 m) ahead of the motor vehicle 1. The route data can include, for example, uphill grade information, curve information, and information about speed limits. Moreover, a curve curvature can be converted, via a maximum permissible lateral acceleration, into a speed limit for the motor vehicle 1. In addition, a position finding of the motor vehicle can be carried out by the detection unit 6, in particular via a GPS signal generated by a GNSS sensor 12 for the precise localization on the electronic map. The processor unit 3 can access this information, for example, via the communication interface 5.
The longitudinal dynamic model 14 of the motor vehicle 1 can be expressed mathematically as follows:
By converting time dependence into distance dependence
and coordinate transformation in order to eliminate the quadratic speed term in the aerodynamic drag with the
result is
In order to ensure that the problem is quickly and easily solvable by the MPC algorithm 13, the dynamic equation of the longitudinal dynamic model 14 is linearized, in that the speed is expressed, via coordinate transformation, by kinetic energy dekin. As a result, the quadratic term for calculating the aerodynamic drag Fd is replaced by a linear term and, simultaneously, the longitudinal dynamic model 14 of the motor vehicle 1 is no longer described as a function of time, as usual, but rather as a function of distance. This fits well with the optimization problem, since the predictive information of the electrical horizon is based on distance.
In addition to the kinetic energy, there are two further state variables, which, within the scope of a simple optimization problem, must also be described in a linear and distance-dependent manner. On the one hand, the electrical energy consumption of the drive train 7 is usually described in the form of a characteristic map as a function of torque and prime mover speed. In the exemplary embodiment shown, the motor vehicle 1 has a fixed ratio between the electric machine 8 and the road on which the motor vehicle 1 moves. As a result, the rotational speed of the electric machine 8 can be directly converted into a speed of the motor vehicle 1 or even into a kinetic energy of the motor vehicle 1. In addition, the electrical power of the electric machine 8 can be converted into energy consumption per meter via division by the appropriate speed. As a result, the characteristic map of the electric machine 8 obtains the form shown in
The cost function 15 to be minimized can be expressed mathematically as follows:
The cost function 15 has exclusively linear and quadratic terms. As a result, the overall problem has the form of a quadratic optimization with linear constraints and a convex problem results, which can be solved well and quickly.
The cost function 15 includes, as a first term, an electrical energy EBat weighted with a first weighting factor wBat and predicted according to the longitudinal dynamic model, which is provided within a prediction horizon by the battery 9 of the drive train 7 for driving the electric machine 8.
The cost function 15 includes, as a second term, a driving time T weighted with a second weighting factor WTime and predicted according to the longitudinal dynamic model 14, which the motor vehicle 1 needs in order to cover the predicted distance. As a result, depending on the selection of the weighting factors, a low speed cannot always be evaluated as optimal and, thus, the problem no longer exists that the resultant speed is always at the lower edge of the permitted speed.
The energy consumption and the driving time can both be evaluated and weighted at the end of the horizon. These terms are therefore active only for the last point of the horizon.
Excessively high torque gradients within the horizon are disadvantageous. Therefore, torque gradients are already penalized in the cost function 15, namely by the term
The quadratic deviation of the drive force per meter is weighted with a weighting factor WTem and minimized in the cost function. Alternatively to the drive force FA per meter, the torque MEM provided by the electric machine 8 can also be utilized and weighted with the weighting factor WTem, and so the alternative term
results. Due to the constant ratio of the transmission 10, the drive force and the torque are directly proportional to each other.
In order to ensure comfortable driving, one further term is introduced in the cost function 15 for penalizing torque surges, namely wTemStart·(FA(s1)−FA(s0))2. Alternatively to the drive force FA, the torque MEM provided by the electric machine 8 can also be utilized here, and so the alternative term wTemStart·(MEM(s1)−MEM(s0))2 results. For the first point in the prediction horizon, the deviation from the most recently set torque can be evaluated as negative and weighted with a weighting factor WTemStart in order to ensure that there is a seamless and smooth transition during the change-over between an old trajectory and a new trajectory.
Speed limits are hard limits for the optimization that are not permitted to be exceeded. A slight exceedance of the speed limits is always permissible in reality and tends to be the normal case primarily during transitions from one speed zone into a second zone. In dynamic surroundings, where speed limits shift from one computing cycle to the next computing cycle, it can happen, in the case of very hard limits, that a valid solution for a speed profile can no longer be found. In order to increase the stability of the computational algorithm, a soft constraint is introduced into the cost function 15. A slack variable VarSlack weighted with a weighting factor WSlack becomes active in a predefined narrow range before the hard speed limit is reached. Solutions that are situated very close to this speed limit are evaluated as poorer, i.e., solutions, the speed trajectory of which maintains a certain distance to the hard limit.
In order to respect the physical limits of the drive train components, the tractive force is limited by delimiting the characteristic map of the electric machine 8. The battery 9 is the limiting element for the maximum recuperation. In order not to damage the battery 9, in the exemplary embodiment shown, −50 kW should not be fallen below. For the linear constraint, this means that the minimum permissible torque of the electric machine 8 is limited in a linear manner with respect to the kinetic energy (or rotational speed). The torque limit is selected such that the maximum permissible power is not exceeded at any point and that the torque is zero (0) at the maximum permissible rotational speed. Permissible torques of the electric machine are therefore between the two delimiting lines 17 and 18, which are plotted in
Modifications and variations can be made to the embodiments illustrated or described herein without departing from the scope and spirit of the invention as set forth in the appended claims. In the claims, reference characters corresponding to elements recited in the detailed description and the drawings may be recited. Such reference characters are enclosed within parentheses and are provided as an aid for reference to example embodiments described in the detailed description and the drawings. Such reference characters are provided for convenience only and have no effect on the scope of the claims. In particular, such reference characters are not intended to limit the claims to the particular example embodiments described in the detailed description and the drawings.
The present application is a U.S. national phase of PCT/EP2019/079157 filed in the European Patent Office on Oct. 25, 2019, which is incorporated by reference in its entirety for all purposes.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2019/079157 | 10/25/2019 | WO |