Adaptation system and adaptation method

The adaptation system addresses learning convergence issues by using a processing circuit and storage device to perform trials, record changes, and apply summary statistics, optimizing motor control functions for stable and efficient engine starting.

JP2024118218AActive Publication Date: 2024-08-30TOYOTA JIDOSHA KK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023024533
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-20
Publication Date
2024-08-30
Estimated Expiration
2043-02-20

AI Technical Summary

Technical Problem

Learning convergence in adaptive systems for motor control is hindered by fluctuations in state variables due to noise in sensor signals, making it difficult to optimize motor functions effectively.

Method used

An adaptation system and method that includes a processing circuit and storage device, which performs a series of learning routines with first and second trials to adjust command values in opposite directions, records changes in a storage device, and uses summary statistics to finalize the control map optimization, thereby suppressing the influence of sensor noise on learning convergence.

Benefits of technology

The method suppresses fluctuations in state variables due to sensor noise, ensuring stable learning convergence and optimizing motor control functions, enabling quick engine starts with reduced vibration and noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024118218000001
    Figure 2024118218000001
Patent Text Reader

Abstract

To provide an adaptation system that can prevent fluctuations of a state variable due to noise in sensors' signals or the like from disturbing convergence of learning in the final stage of optimization of a function.SOLUTION: A processing circuit of an adaptation system executes second processing (from step S210 to step S230) when the number of times of execution of a learning routine is equal to or greater than the predetermined number of times and less than the number of times of termination (step S200: YES). The second processing is performing a first trial and a second trial in each learning routine and ending the learning routine by recording, in a storage device, a change in a trial with a larger reward among the first trial and the second trial. The processing circuit executes third processing (from step S240 to step S260) when the number of times of execution of the learning routine reaches the number of times of termination (step S200: NO). The third processing is processing for calculating summary statistics of a plurality of changes and reflecting the summary statistics in a control map to complete optimization of the control map.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a fitting method and system for optimizing a function used in the control of a motor. [Background technology]

[0002] Patent Document 1 discloses a machine learning device that learns a current command value for a motor. In the learning process, the machine learning device acquires state variables while driving the motor. The machine learning device then calculates a reward based on the state variables. The machine learning device learns the current command value based on the reward. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2018-014838 A Summary of the Invention [Problem to be solved by the invention]

[0004] When using the adaptation system to automatically optimize a function for outputting a command value to a motor, the adaptation system performs trials to acquire state variables while driving the motor. The adaptation system evaluates the content of the trial using a reward calculated based on the state variables. The adaptation system then updates and learns the function according to the evaluation. In this way, the adaptation system optimizes the function by gradually updating the function through repeated trials, evaluations, and learning.

[0005] It is preferable that the learning gradually converges as the optimization of the function approaches completion. However, there are cases where the learning does not converge easily due to the influence of fluctuations in the state variables caused by noise in the signals from the sensors, etc. [Means for solving the problem]

[0006] The means for solving the above problems and their effects will be described below. The adaptation system for solving the above problem includes a processing circuit and a storage device. In this adaptation system, the processing circuit optimizes the function stored in a control device that controls the motor by repeating a learning routine including a trial of driving the motor while acquiring state variables by a sensor in a state in which a function that outputs a command value to the motor is modified, an evaluation of calculating a reward based on the acquired state variables, and learning of updating the function based on the reward. Then, when the number of times the learning routine is executed is less than a predetermined number of times, the processing circuit executes a first trial and a second trial in which the function is modified so that the command value output from the function is adjusted in the opposite positive and negative directions in each learning routine, and executes a first process of updating the function by reflecting the modification in the trial in which the reward was larger among the first trial and the second trial in the function and terminating the learning routine. The processing circuit executes a second process of performing the first trial and the second trial in each learning routine and terminating the learning routine by recording in the storage device the change in the trial of the first trial and the second trial in which the reward was greater without reflecting it in the function when the number of executions of the learning routine is equal to or greater than the predetermined number and less than a termination number greater than the predetermined number. The processing circuit executes a third process of calculating summary statistics of the changes not reflected in the function and stored in the storage device when the number of executions of the learning routine reaches the termination number, and terminating the learning routine by reflecting the changes based on the summary statistics in the function.

[0007] An adaptation method for solving the above problem is an adaptation method for optimizing a function stored in a control device that controls a motor, using an adaptation system including a processing circuit and a storage device. This adaptation method optimizes the function stored in the control device that controls the motor by repeatedly executing a learning routine in the processing circuit, the learning routine including a trial of driving the motor while acquiring state variables by a sensor in a state in which a function that outputs a command value to the motor has been modified, an evaluation of calculating a reward based on the acquired state variables, and learning of updating the function based on the reward. This adaptation method includes a first step of executing a first process in which, when the number of executions of the learning routine is less than a predetermined number of times, a first trial and a second trial are performed in which the function is modified so that the command value output by the function is adjusted in the opposite positive and negative directions in each learning routine, and the function is updated by reflecting the modification in the trial in which the reward was larger among the first trial and the second trial in the first trial, and the learning routine is terminated. The adaptation method includes a second step of causing the processing circuit to execute a second process of performing the first trial and the second trial in each learning routine, and terminating the learning routine by recording in the storage device the change in the trial of the first trial and the second trial in which the reward was greater without reflecting it in the function, when the number of executions of the learning routine is equal to or greater than the predetermined number and less than a termination number greater than the predetermined number. The adaptation method includes a third step of causing the processing circuit to execute a third process of calculating summary statistics of the changes not reflected in the function and stored in the storage device, and reflecting the changes based on the summary statistics in the function, thereby terminating the learning routine and completing optimization of the function, when the number of executions of the learning routine reaches the termination number. Effect of the Invention

[0008] It is possible to prevent fluctuations in state variables due to noise in sensor signals, etc., from impeding the convergence of learning in the final stage of function optimization. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a schematic diagram showing the configuration of an adaptation system and the relationship between the adaptation system and a vehicle. [Diagram 2] FIG. 2 is a schematic diagram showing the configuration of a powertrain of a vehicle. [Diagram 3] FIG. 3 is a time chart showing (a) the transition of the torque of the motor generator, (b) the presence or absence of ignition, and (c) the transition of the engine rotation speed when starting the engine. [Figure 4] FIG. 4 is an explanatory diagram for explaining an example of a control map of a torque command value. [Diagram 5] FIG. 5 is a flowchart showing a part of a series of processing steps executed by the adaptation system. [Figure 6] FIG. 6 is a flowchart showing a part of a series of processing steps executed by the adaptation system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] An embodiment of the adaptation system will now be described with reference to FIGS. <Configuration of the adaptation system 100> As shown in Fig. 1, the adaptation system 100 includes a processing circuit 101 and a storage device 102. The storage device 102 stores programs and data. The processing circuit 101 executes the programs stored in the storage device 102. The adaptation system 100 optimizes a function to be stored in a control device 20 mounted on a vehicle 10. The vehicle 10 is mounted with a hybrid system 30. The control device 20 controls the hybrid system 30.

[0011] <Powertrain configuration of vehicle 10> 2, the power train of the vehicle 10 includes a hybrid system 30. The vehicle 10 drives drive wheels 40 by the hybrid system 30. The hybrid system 30 of the vehicle 10 includes a first motor generator 31, a second motor generator 32, an engine 33, a power split mechanism 34, a power control unit 35, and a reduction mechanism 36.

[0012] The second motor generator 32 is connected to a power control unit 35. The second motor generator 32 is connected to driving wheels 40 via a reduction gear mechanism 36. The engine 33 is connected to the driving wheels 40 via a power split mechanism 34 and the reduction gear mechanism 36. The first motor generator 31 is connected to the power split mechanism 34. The first motor generator 31 is, for example, a three-phase AC motor generator.

[0013] The power split mechanism 34 is composed of a planetary gear. The power split mechanism 34 can split the driving force of the engine 33 to the first motor generator 31 and the driving wheels 40. The first motor generator 31 generates electricity using the driving force of the engine 33 and generates electricity using the driving force from the driving wheels 40. The first motor generator 31 drives the crankshaft of the engine 33 when starting the engine 33. Therefore, the first motor generator 31 is a motor that drives the crankshaft of the engine 33 to crank the engine 33.

[0014] The first motor generator 31 and the second motor generator 32 are connected to a battery via a power control unit 35. AC power generated by the first motor generator 31 is converted to DC power by the power control unit 35 and charged into the battery. That is, the power control unit 35 functions as an inverter.

[0015] The DC power of the battery is converted to AC power by the power control unit 35 and supplied to the second motor generator 32. When the vehicle 10 is decelerated, the second motor generator 32 generates power using the driving force from the drive wheels 40. The generated power is then charged to the battery. That is, the vehicle 10 performs regenerative charging. At this time, the second motor generator 32 functions as a generator. The AC power generated by the second motor generator 32 is converted to DC power by the power control unit 35 and charged to the battery. When the engine 33 is cranked by the first motor generator 31, the power control unit 35 converts the DC power of the battery to AC power and supplies it to the first motor generator 31.

[0016] <Regarding the control device 20> The control device 20 controls the engine 33, the first motor generator 31, and the second motor generator 32. The control device 20 includes an engine control unit 22 that controls the engine 33. The control device 20 includes a motor control unit 23 that controls the first motor generator 31 and the second motor generator 32 by controlling a power control unit 35. The control device 20 further includes an overall control unit 21 that is connected to the engine control unit 22 and the motor control unit 23 and that overall controls the vehicle 10. These control units are composed of a processing circuit and a memory that stores programs executed by the processing circuit, etc.

[0017] As described above, the control device 20 controls the engine 33, the first motor generator 31, and the second motor generator 32. That is, the control device 20 controls the power train of the vehicle 10. The control device 20 receives detection signals from sensors provided in various parts of the vehicle 10. For example, an accelerator position sensor, a brake sensor, and a vehicle speed sensor are connected to the overall control unit 21. For example, a crank position sensor, a water temperature sensor, and an air flow meter are connected to the engine control unit 22. The crank position sensor outputs a crank angle signal every time the crankshaft rotates a certain angle. The engine control unit 22 calculates the rotation phase of the crankshaft and the engine rotation speed NE, which is the rotation speed of the crankshaft, based on the crank angle signal.

[0018] The motor control unit 23 receives the current, voltage, and temperature of the battery via the power control unit 35. Based on the current, voltage, and temperature, the motor control unit 23 calculates the ratio of the remaining charge to the charge capacity of the battery.

[0019] The engine control unit 22 and the motor control unit 23 are each connected to the overall control unit 21 via a communication line. The overall control unit 21, the motor control unit 23, and the engine control unit 22 mutually exchange and share information based on detection signals input from sensors via CAN communication and calculated information.

[0020] <About cranking> As described above, the first motor generator 31 is a motor that drives the crankshaft of the engine 33 to crank the engine 33. When starting the engine 33, the control device 20 drives the first motor generator 31 by the motor control unit 23 to achieve cranking.

[0021] 3 shows the transition of the MG torque when starting the engine 33, the transition of the presence or absence of ignition control in the engine 33, and the transition of the engine rotation speed NE. The MG torque is the torque of the first motor generator 31. As shown in FIG 3(a), when starting of the engine 33 is started at time t_0, the motor control unit 23 increases the MG torque and starts cranking to rotate the crankshaft by the driving force of the first motor generator 31.

[0022] When the engine speed NE reaches the preset rotation speed NEx at time t_1 as shown in FIG. 3(c), ignition control in the engine 33 is turned ON as shown in FIG. 3(b), and the engine control unit 22 starts ignition control. When ignition control is performed in this manner, the engine 33 starts to operate autonomously. Therefore, the motor control unit 23 sets the MG torque to 0 as shown in FIG. 3(a) to end cranking. When the engine speed NE converges to the target rotation speed NEt, starting of the engine 33 is completed.

[0023] Until cranking is thus completed, the motor control unit 23 controls the MG torque so as to quickly complete the starting of the engine 33 while minimizing vibration and noise.

[0024] A control map for cranking is stored in the control device 20. This control map is a function that outputs a command value for the MG torque to the first motor generator 31 according to the elapsed time from the point in time when the control of the MG torque for cranking is started.

[0025] For example, as shown by the solid line in Fig. 4, the control map stores the MG torque command value for each elapsed time period from the start of control. In the following description, the MG torque command value stored in the control map is referred to as a torque variable. The motor control unit 23 reads out the torque variable for each elapsed time period from the control map. Then, the motor control unit 23 controls the first motor generator 31 in accordance with the read torque variable to perform cranking.

[0026] The control map must be designed to meet various requirements. For example, a suitable combination of torque variables must be searched for through repeated testing to quickly start the engine 33 while suppressing noise and vibration. The calibration system 100 automatically calibrates the control map.

[0027] As shown in FIG. 1, the adaptation work is performed with the adaptation system 100 connected to the vehicle 10 as shown in FIG. <Adaptation of control map by adaptation system 100> As shown in FIG. 1, the adaptation work is performed in a state where an adaptation system 100 is connected to a vehicle 10 as shown in FIG. 1. The adaptation system 100 is connected to a control device 20 of the vehicle 10. When performing the adaptation work, a microphone 50 and an acceleration sensor 51 are attached to the vehicle 10. The microphone 50 and the acceleration sensor 51 are connected to the adaptation system 100. The adaptation system 100 connected to the control device 20 is capable of communicating with the control device 20. Therefore, the adaptation system 100 can control the hybrid system 30 via the control device 20. The adaptation system 100 can acquire various data acquired by the control device 20 using sensors mounted on the vehicle 10.

[0028] The adaptation system 100 performs the adaptation of the control map using a method called black-box optimization. In this adaptation method, the processing circuit 101 performs a trial of starting the engine 33 by driving the first motor generator 31 and cranking the engine 33 while acquiring state variables acquired by the sensors in a state where the computation map has been modified. In this adaptation method, an evaluation is performed to calculate a reward based on the acquired state variables. In this adaptation method, learning is performed to update the control map based on the reward. In this adaptation method, the processing circuit 101 repeatedly executes a learning routine including trial, evaluation, and learning, thereby optimizing the control map stored in the control device 20. In this embodiment, the state variables include the engine speed NE detected by the crank position sensor, the sound pressure detected by the microphone 50, and the acceleration detected by the acceleration sensor 51.

[0029] In the learning routine, the processing circuit 101 performs a first trial and a second trial in which the control map is modified to adjust the torque variable in opposite positive and negative directions. Fig. 4 shows torque variables stored in a control map for cranking. In this example, the period during which the control for cranking is executed is, for example, 2 seconds. The example shown in Fig. 4 shows torque variables for each elapsed time between time t_0, which is the control start time, and time t_10, which is the control end time.

[0030] In FIG. 4, the torque variable before the change is shown by a solid line. The change in the first trial is a change in which the torque variable for each elapsed time period in the control map is randomly adjusted within a predetermined adjustment range, as shown by a dashed line in FIG. 4. On the other hand, the change in the second trial is a change in which the adjustment in the first trial is reflected in the control map with the positive and negative reversed, as shown by a dashed line in FIG. 4. Therefore, as shown in FIG. 4, the torque variable in the first trial and the torque variable in the second trial are in symmetrical positions with respect to the torque variable before the change.

[0031] In the learning routine, the processing circuit 101 executes the first trial and the second trial while acquiring the state variables. Then, the processing circuit 101 performs an evaluation to calculate a reward based on the acquired state variables. For example, the execution period of the trial is a maximum of 3 seconds. The processing circuit 101 performs the trial until 3 seconds have elapsed since the start of cranking or the engine rotation speed NE converges to the target rotation speed NEt. The processing circuit 101 calculates a score according to the elapsed time such that the reward becomes smaller as the elapsed time from the start of cranking to the end of the trial becomes longer. For example, the processing circuit 101 calculates a score consisting of a negative value such that the absolute value becomes larger as the elapsed time until the end of the trial becomes longer. When the sound pressure exceeds a certain level, the processing circuit 101 calculates a score consisting of a negative value such that the absolute value becomes larger as the sound pressure becomes larger. When the acceleration exceeds a certain level, the processing circuit 101 calculates a score consisting of a negative value such that the absolute value becomes larger as the acceleration becomes larger. The acceleration sensor 51 detects the acceleration in three directions of the vehicle 10: up / down, left / right, and front / rear. When the acceleration in any direction exceeds a certain level, the processing circuit 101 calculates a score consisting of a negative value such that the greater the acceleration, the greater the absolute value. The processing circuit 101 calculates the sum of these scores in one trial as the reward for that trial. The reward is a negative value. Therefore, the processing circuit 101 evaluates that the smaller the absolute value of the reward value, the greater the reward and the higher the evaluation of the trial.

[0032] Then, in the learning routine, the processing circuit 101 updates the control map by reflecting the change in the control map in the trial with the larger reward out of the first trial and the second trial. That is, in the learning routine, the processing circuit 101 updates the control map by reflecting the torque variable in the trial with the larger reward out of the first trial and the second trial in the control map.

[0033] The adaptation system 100 repeatedly executes this learning routine to gradually update the control map so as to increase the reward, thereby optimizing the control map so as to quickly complete the start of the engine 33 while minimizing vibration and noise.

[0034] As the optimization of the control map approaches completion, it is preferable that the reward converges to a large value and the learning gradually converges. However, the reward value may continue to fluctuate due to the influence of fluctuations in state variables caused by various external factors such as noise in the signal from the sensor and differences in the combustion state in the engine 33. As a result, even at a stage where the number of times the learning routine is executed increases, the torque variable in the control map fluctuates each time the learning routine is executed, making it difficult for the learning to converge.

[0035] For example, the transition of the engine speed NE changes depending on the difference in the state of combustion in the engine 33 after cranking ends. As a result, the time it takes for the engine speed NE to converge to the target speed NEt varies with each trial. In this case, even if the number of times the learning routine is executed increases, the reward continues to vary, making it difficult for learning to converge.

[0036] Therefore, the adaptation system 100 aims to solve these problems by adopting an adaptation method that incorporates a special feature in the final learning routine. <Flow of a series of processes executed by the adaptation system 100> Next, a series of processing steps relating to the adaptation method in the adaptation system 100 will be described with reference to FIGS.

[0037] 5 and 6 are flowcharts showing a series of processes related to the adaptation method executed by the adaptation system 100. This series of processes is executed by the processing circuit 101 in a state where the adaptation system 100 is connected to the vehicle 10, as shown in FIG.

[0038] As shown in Fig. 5, first, in the process of step S100, the processing circuit 101 initializes a torque variable in a control map stored in the storage device 102. The storage device 102 stores a control map similar to the control map stored in the control device 20 of the vehicle 10. In the process of step S100, the processing circuit 101 initializes the torque variable in this control map to an initial value. Although this initial value is not optimized, it is a torque variable that is set in advance so that cranking can be performed.

[0039] In the process of step S110, the processing circuit 101 calculates a first variable. The first variable is a torque variable in a control map used in a first trial. In the process of step S110, the processing circuit 101 randomly adjusts the torque variable for each elapsed time in the control map stored in the storage device 102 within a predetermined adjustment range. The first variable is the torque variable thus adjusted.

[0040] In the next step S120, the processing circuit 101 calculates a second variable. The second variable is a torque variable in the control map used in the second trial. In the process of step S120, the processing circuit 101 calculates the second variable by adjusting the torque variable for each elapsed time in the control map stored in the storage device 102 by reversing the positive and negative of the adjustment in the process of step S100.

[0041] In the process of the next step S130, the processing circuit 101 performs a first trial, which is a trial using the first variable. Specifically, the processing circuit 101 performs a trial to start the engine 33 of the vehicle 10 using the first variable. That is, the processing circuit 101 performs a trial to start the engine 33 by making the control device 20 output the first variable as a command value of the MG torque. Then, the processing circuit 101 acquires state variables until the end of the trial. The processing circuit 101 calculates scores based on the state variables as described above, and calculates the first reward by summing up the scores. When the first trial ends in this way, the processing circuit 101 advances the process to step S140.

[0042] In the process of step S140, the processing circuit 101 performs a second trial, which is a trial using the second variable. Specifically, the processing circuit 101 performs a trial to start the engine 33 of the vehicle 10 using the second variable. That is, the processing circuit 101 performs a trial to start the engine 33 by making the control device 20 output the second variable as a command value of the MG torque. Then, the processing circuit 101 acquires state variables until the trial ends. The processing circuit 101 calculates scores in the same manner as the first trial, and calculates the second reward by summing up the scores. When the second trial ends in this manner, the processing circuit 101 advances the process to step S150.

[0043] In the process of step S150, the processing circuit 101 adds 1 to the number of times the learning routine is executed, and sets the sum as the new number of times the learning routine is executed. The initial value of the number of times the learning routine is executed is 0. Next, in the process of step S160, the processing circuit 101 determines whether the number of executions is less than a predetermined number. The adaptation system 100 repeats the learning routine until the number of executions reaches the end number to optimize the control map. The end number is set to, for example, 1000 times. The default number is less than the end number. For example, the default number is set to 900 times. The end number and the default number are hyperparameters that are adjusted in advance when designing the adaptation method.

[0044] In the process of step S160, if the processing circuit 101 determines that the number of executions is less than the predetermined number of times (step S160: YES), the processing circuit 101 advances the process to step S170. Then, in the process of step S170, the processing circuit 101 determines whether the first reward is greater than the second reward.

[0045] In the process of step S170, if the processing circuit 101 determines that the first reward is greater than the second reward (step S170: YES), the processing circuit 101 advances the process to step S180. In the process of step S180, the processing circuit 101 overwrites the first variable onto the control map, and updates the control map by changing the torque variable to the first variable. On the other hand, in the process of step S170, if the processing circuit 101 determines that the first reward is equal to or less than the second reward (step S170: NO), the processing circuit 101 advances the process to step S190. In the process of step S190, the processing circuit 101 overwrites the control map with the second variable, and updates the control map by changing the torque variable to the second variable.

[0046] The process from step S170 to step S190 is a process for updating the control map by reflecting the change in the trial with the larger reward out of the first trial and the second trial in the control map. Therefore, when the first reward is equal to the second reward, the processing circuit 101 may change the torque variable of the control map to the first variable. Also, when the first reward is equal to the second reward, the processing circuit 101 may not change the torque variable of the control map.

[0047] After updating the control map by reflecting the change in the trial with the larger reward out of the first trial and the second trial in the control map, the processing circuit 101 ends the learning routine and returns the process to step S110. That is, until the number of executions reaches the predetermined number of times, the processing circuit 101 repeatedly executes the learning routine for executing the first process for reflecting the change in the trial with the larger reward in the control map.

[0048] When the number of executions reaches the predetermined number of times, the processing circuit 101 determines in the process of step S160 that the number of executions is equal to or greater than the predetermined number of times (step S160: NO). In this case, the processing circuit 101 advances the process to the process of step S200 shown in FIG.

[0049] In the process of step S200, the processing circuit 101 determines whether the number of executions is less than the number of terminations. In the process of step S200, if the processing circuit 101 determines that the number of executions is less than the number of terminations (step S200: YES), the processing circuit 101 advances the process to step S210. Then, in the process of step S210, the processing circuit 101 determines whether the first reward is greater than the second reward.

[0050] In the process of step S210, if the processing circuit 101 determines that the first reward is greater than the second reward (step S210: YES), the processing circuit 101 advances the process to step S220. In the process of step S220, the processing circuit 101 records the first variable in the storage device 102 without reflecting the first variable in the control map. On the other hand, in the process of step S210, if the processing circuit 101 determines that the first reward is equal to or less than the second reward (step S210: NO), the processing circuit 101 advances the process to step S230. In the process of step S230, the processing circuit 101 records the second variable in the storage device 102 without reflecting the second variable in the control map.

[0051] The process from step S210 to step S230 is a process of recording the change in the trial with the larger reward out of the first trial and the second trial in the storage device 102 without reflecting it in the control map. Therefore, when the first reward and the second reward are equal, the processing circuit 101 may record the first variable in the storage device 102.

[0052] When the processing circuit 101 thus records the change in the trial in which the reward was larger out of the first trial and the second trial in the storage device 102, it ends the learning routine and returns the process to step S110 shown in Fig. 5. That is, from when the number of executions becomes equal to or greater than the preset number until the number of executions reaches the end number, the processing circuit 101 repeatedly executes the learning routine for executing the second process of recording the change in the trial in which the reward was larger in the storage device 102 without reflecting it in the control map.

[0053] When the execution count reaches the termination count, the processing circuit 101 determines in the process of step S200 that the execution count is equal to or greater than the termination count (step S200: NO). In this case, the processing circuit 101 advances the process to the process of step S240 shown in FIG.

[0054] In the process of step S240, the processing circuit 101 calculates average values ​​as summary statistics of the first variable and the second variable recorded in the storage device 102. That is, the processing circuit 101 calculates the average value of the torque variables recorded in the storage device 102 without being reflected in the control map while repeating the learning routine of the second step. The average value is calculated for each elapsed time period.

[0055] Next, in step S250, the processing circuit 101 overwrites the control map with this average value, and updates the torque variable of the control map to this average value. Then, in the next step S260, the processing circuit 101 records the torque variable of the control map stored in the storage device 102 in the storage device 102 as a control map to be stored in the control device 20, thereby completing the optimization of the control map.

[0056] The processes from step S240 to step S260 are a learning routine that executes a third process of reflecting changes based on summary statistics of the multiple changes recorded in storage device 102 to the control map, thereby completing the optimization of the control map.

[0057] The optimized control map data thus recorded in the storage device 102 of the adaptation system 100 is stored in the control device 20 of the vehicle 10. This enables the vehicle 10 to quickly complete the starting of the engine 33 while minimizing vibration and noise.

[0058] <Action of this embodiment> The adaptation method performed by the adaptation system 100 includes a first step of performing a first process, a second step of performing a second process, and a third step of performing a third process. In this adaptation method, through the second step and the third step performed at the end of the optimization, the changes obtained by the trials are converted into summary statistics, smoothed, and then reflected in the control map.

[0059] According to the above-described adaptation method and adaptation system 100, when the number of times the learning routine is executed reaches a preset number of times, the changes to the control map are put on hold and stored in the storage device 102. Then, when the number of times the learning routine is executed reaches the termination number, a final update of the control map is performed based on summary statistics that reflect information on the multiple changes stored in the storage device 102. Therefore, according to the above-described adaptation method and adaptation system 100, even if fluctuations occur in the state variables at the end of optimization due to noise in the sensor signals or the like, the influence of such fluctuations is unlikely to be reflected in the learning.

[0060] <Effects of this embodiment> (1) It is possible to prevent fluctuations in state variables due to noise in sensor signals, etc., from impeding the convergence of learning at the final stage of control map optimization.

[0061] (2) In the above-described adaptation system 100, the average value is used as a summary statistic. The information on the multiple changes recorded in the storage device 102 is smoothed and reflected in the average value. With the above-described configuration using the average value, even if fluctuations occur in the state variables at the final stage of optimization due to noise in the sensor signals, the influence of such fluctuations is unlikely to be reflected in learning.

[0062] (3) The state variables include the engine speed NE detected by the crank position sensor, the sound pressure detected by the microphone 50, and the acceleration detected by the acceleration sensor 51. Therefore, the adaptation system 100 can optimize the control map by reflecting information on noise and vibration during cranking.

[0063] <Example of change> This embodiment can be modified as follows: This embodiment and the following modifications can be combined with each other to the extent that there is no technical contradiction.

[0064] In the above embodiment, the average value is used as the summary statistic. However, a configuration using other summary statistic may be adopted. For example, the median value may be used as the summary statistic. In the above embodiment, the adaptation of the control map of the first motor generator 31 when cranking the engine 33 is illustrated. The above-described adaptation method can also be applied to other motor controls. For example, it can be applied to the adaptation of functions used in the control of a drive motor for an electric vehicle or the control of a motor that drives an electric actuator. [Explanation of symbols]

[0065] 10...vehicle, 20...control device, 21...overall control unit, 22...engine control unit, 23...motor control unit, 30...hybrid system, 31...first motor generator, 32...second motor generator, 33...engine, 34...power split mechanism, 35...power control unit, 36...reduction mechanism, 40...driving wheel, 50...microphone, 51...acceleration sensor, 100...adaptation system, 101...processing circuit, 102...storage device

Claims

1. A processing circuit and a storage device, the processing circuit optimizes the function stored in a control device that controls the motor by repeating a learning routine including: a trial of driving the motor while acquiring state variables by a sensor in a state in which a function for outputting a command value to the motor has been modified; an evaluation of calculating a reward based on the acquired state variables; and learning of updating the function based on the reward; The processing circuitry comprises: when the number of times the learning routine has been executed is less than a predetermined number of times, a first trial and a second trial are performed in which the change is made to the function so that the command value output from the function in each learning routine is adjusted in the opposite direction of positive and negative, and a first process is executed to update the function by reflecting the change in the trial in which the reward was larger among the first trial and the second trial, and to terminate the learning routine; a second process is executed in which, when the number of executions of the learning routine is equal to or greater than the predetermined number and is less than a number of terminations that is greater than the predetermined number, the first trial and the second trial are executed in each learning routine, and the change in the trial in which the reward was greater among the first trial and the second trial is recorded in the storage device without being reflected in the function, thereby terminating the learning routine; When the number of executions of the learning routine reaches the termination number, a third process is executed in which summary statistics of the plurality of changes that are not reflected in the function and are stored in the storage device are calculated, and the changes based on the summary statistics are reflected in the function, thereby terminating the learning routine and completing optimization of the function. Compatible systems.

2. the function is a control map for outputting the command value to the motor in accordance with the elapsed time from the start of control, The change in the first trial is a change in which the command value for each elapsed time period in the control map is randomly adjusted within a predetermined adjustment range, The change in the second trial is a change in which the adjustment of the command value for each elapsed time period in the change in the first trial is reversed in sign and applied to the value of the command value for each elapsed time period in the control map. The matching system of claim 1 .

3. The summary statistic is a mean The matching system of claim 1 .

4. the function is a function used for control when the motor drives a crankshaft of an engine mounted on a vehicle to crank the engine, the attempt is an attempt to crank the engine by the motor to start the engine; the sensor includes a crank position sensor that detects an engine speed of the engine, a microphone that detects a sound emitted from the vehicle, and an acceleration sensor that detects vibrations of the vehicle; The state variables include an engine rotation speed detected by the crank position sensor, a sound pressure detected by the microphone, and an acceleration detected by the acceleration sensor. The matching system of claim 1 .

5. Using an adaptation system having a processing circuit and a storage device, a learning routine including: a trial of driving the motor while acquiring state variables by a sensor in a state in which a function for outputting a command value to the motor has been modified; an evaluation for calculating a reward based on the acquired state variables; and learning for updating the function based on the reward, the method optimizing the function to be stored in a control device that controls the motor, a first step of causing the processing circuit to execute a first process of performing a first trial and a second trial in which the change is made to the function so that the command value output by the function in each learning routine is adjusted to have a positive or negative direction opposite to each other when the number of executions of the learning routine is less than a predetermined number, and updating the function by reflecting the change in the trial in which the reward was larger among the first trial and the second trial in the function, thereby terminating the learning routine; a second step of causing the processing circuit to execute a second process in which, when the number of executions of the learning routine is equal to or greater than the predetermined number and less than a number of terminations that is greater than the predetermined number, the first trial and the second trial are performed in each learning routine, and the change in the trial in which the reward was greater among the first trial and the second trial is recorded in the storage device without being reflected in the function, thereby terminating the learning routine; and a third step of causing the processing circuit to execute a third process, when the number of times the learning routine has been executed reaches the termination number, of calculating summary statistics of the plurality of changes that are not reflected in the function and are stored in the storage device, and reflecting the changes based on the summary statistics in the function, thereby terminating the learning routine and completing optimization of the function. How it fits:

Citation Information

Patent Citations

  • Machine learning device for learning motor current command, motor control device, and machine learning method

    JP2018014838A

  • Learning device, control apparatus, and learning method

    JP2021129420A