Adaptation system and adaptation method

The adaptive system optimizes motor control by performing trials with opposite changes and reflecting higher rewards, addressing sensor noise interference and achieving efficient, noise-minimized engine starting.

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

Patent Information

Application Number
JP2023024534
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 motor control optimization is hindered by accidental fluctuations in state variables due to noise in sensor signals, making it difficult for the adaptation system to achieve stable and efficient motor control.

Method used

An adaptive system and method that includes a processing circuit and storage device, which optimizes motor control functions by performing first and second trials with opposite changes in command values, reflecting the trial with higher reward, and repeatedly updating the function until a predetermined condition is met, thereby minimizing the impact of sensor noise on learning convergence.

Benefits of technology

The solution effectively suppresses fluctuations in state variables due to sensor noise, ensuring stable learning convergence and optimizing motor control to quickly start the engine while minimizing vibration and noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024118219000001
    Figure 2024118219000001
Patent Text Reader

Abstract

To provide an adaptation system that can prevent fluctuations of a state variable due to noise in sensor's signals or the like from disturbing convergence of learning in the final stage of optimization of a control map.SOLUTION: A processing circuit of an adaptation system, until a predetermined condition is met (step S130: NO), performs a first trial and a second trial in each learning routine, and executes first processing (from step S140 to step S180) of reflecting, in a control map, a change in the trial with a larger reward, and ending the learning routine. After the predetermined condition is met (step S130: YES), the processing circuit performs the first trial and the second trial a plurality of times in each learning routine (step S190 and step S200), and executes second processing of comparing the reward for a plurality of executions of the first trial with the reward for a plurality of executions of the second trial, reflecting, in a control map, a change in the trial with the larger reward, and ending the learning routine.SELECTED DRAWING: Figure 5
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, the learning may be difficult to converge due to the influence of accidental 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 where 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. In this adaptation system, until a predetermined condition for determining that the optimization has progressed to the end is satisfied, the processing circuit performs 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 updates the function by reflecting the change in one of the first trial and the second trial in which the reward was larger, and ends the learning routine. In this adaptation system, after the predetermined condition is met, the processing circuit executes a second process in which the first trial and the second trial are performed multiple times in each learning routine, the reward for the multiple first trials is compared with the reward for the multiple second trials, and the change in the one of the first trial and the second trial in which the reward was larger is reflected in the function, thereby updating the function and terminating the learning routine.

[0007] The adaptation method for solving the above problem is an adaptation method that optimizes a function stored in a control device that controls a motor by using an adaptation system including a processing circuit and a storage device. This adaptation method optimizes the function by repeatedly executing 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 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 causing the processing circuit to execute a first process of performing a first trial and a second trial 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 until a predetermined condition for determining that the optimization has progressed to the end is satisfied, and updating the function by reflecting the modification in one of the first trial and the second trial in which the reward was larger in the function, and ending the learning routine. This adaptation method includes a second step of having the processing circuit execute a second process in which, after the predetermined condition is satisfied, the first trial and the second trial are performed multiple times in each learning routine, the reward for the multiple first trials is compared with the reward for the multiple second trials, and the change in one of the first and second trials in which the reward was larger is reflected in the function, thereby updating the function and terminating the learning routine. 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 at 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 the flow of a series of processes 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 value of the reward may continue to fluctuate due to the influence of accidental fluctuations in the 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 related to the adaptation method in the adaptation system 100 will be described with reference to FIG.

[0037] 5 is a flowchart showing the flow of 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 in which 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. This initial value is a torque variable that is set in advance so that the crankshaft can be rotated, although it is not optimized.

[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 determines whether or not a predetermined condition for determining that the optimization has progressed to the end stage is satisfied. The predetermined condition is, for example, that the number of times the learning routine is executed is equal to or greater than a predetermined number. The adaptation system 100 repeats the learning routine until the number of times the routine is executed 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. In the process of step S130, if the number of times the routine is executed is equal to or greater than the default number, the processing circuit 101 determines that the predetermined condition is satisfied. That is, the default number is a threshold value for the number of times the routine is executed to determine that the optimization has progressed to the end stage.

[0042] The default condition may be any condition that can determine that optimization has progressed to the end. As optimization progresses, the reward in one trial becomes smaller. Therefore, the default condition may be that the reward in the previous learning routine is less than a default value. As optimization progresses, the reward may not decrease even if the learning routine is repeated. Therefore, the default condition may be that the reward decrease stagnates. For example, when the difference between the reward in the learning routine before last and the reward in the previous learning routine continues to be less than a default value, it may be determined that the reward decrease stagnates. As optimization progresses, the engine rotation speed NE gradually approaches the target rotation speed NEt in the trial. Therefore, the default condition may be that the engine rotation speed NE during the trial in the previous learning routine has reached a default rotation speed or higher.

[0043] When the processing circuit 101 determines in the process of step S130 that the predetermined condition is not satisfied (step S130: NO), the processing circuit 101 advances the process to step S140.

[0044] In the process of step S140, 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 causing the control device 20 to 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 manner, the processing circuit 101 advances the process to step S150.

[0045] In the process of step S150, 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 end of the trial. 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 S160.

[0046] In the process of step S160, the processing circuit 101 determines whether the first reward is greater than the second reward. In the process of step S160, if the processing circuit 101 determines that the first reward is greater than the second reward (step S160: YES), the processing circuit 101 advances the process to step S170. In the process of step S170, 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 S160, if the processing circuit 101 determines that the first reward is equal to or less than the second reward (step S160: NO), the processing circuit 101 advances the process to step S180. In the process of step S180, 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.

[0047] The process from step S160 to step S180 is a process for updating the control map by reflecting the change in one of the first and second trials, which had a larger reward, in the control map. 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.

[0048] The processing circuit 101 thus updates the control map by reflecting the changes in one of the first and second trials, whichever had the larger reward, in the control map, and then ends the learning routine.

[0049] In this way, when the predetermined condition is not met, the processing circuit 101 performs a first trial and a second trial, and executes a first process in which the control map is updated to reflect changes made in the trial that had the larger reward between the first trial and the second trial.

[0050] Next, in the process of step S220, 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. Then, in the process of step S230, the processing circuit 101 determines whether the number of times the learning routine is executed is less than the number of times to end the learning routine. In the process of step S230, if the processing circuit 101 determines that the number of times the learning routine is executed is less than the number of times to end the learning routine (step S230: YES), the processing circuit 101 returns the process to step S110. In this way, the processing circuit 101 repeatedly executes the first process until the predetermined condition is satisfied.

[0051] Then, when the predefined condition is satisfied, in the process of step S130, the processing circuit 101 determines that the predefined condition is satisfied (step S130: YES). In the process of step S130, if the processing circuit 101 determines that the predefined condition is satisfied (step S130: YES), the processing circuit 101 advances the process to step S190.

[0052] In the process of step S190, the processing circuit 101 performs a first trial, which is a trial using the first variable, multiple times. In this embodiment, the first trial is performed three times. The processing circuit 101 calculates a score based on the state variable in each of the multiple first trials, and calculates the first reward by summing up the scores. When the multiple first trials are thus completed, the processing circuit 101 advances the process to step S150.

[0053] In the process of step S200, the processing circuit 101 performs a second trial, which is a trial using the second variable, multiple times. The number of times the first trial is performed in the process of step S190 is the same as the number of times the second trial is performed in the process of step S200. In this embodiment, the second trial is performed three times. As in the process of step S190, the processing circuit 101 calculates a score for each of the multiple second trials and calculates the second reward by adding up the scores. When the multiple second trials are thus completed, the processing circuit 101 advances the process to step S210.

[0054] In the process of step S210, the processing circuit 101 determines whether the first average reward is greater than the second average reward. The first average reward is the average value of the first rewards calculated through the process of step S190 for multiple times. The second average reward is the average value of the second rewards calculated through the process of step S200 for multiple times.

[0055] In the process of step S210, if the processing circuit 101 determines that the first average reward is greater than the second average reward (step S210: YES), the processing circuit 101 advances the process to step S170. In the process of step S170, 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 S210, if the processing circuit 101 determines that the first average reward is equal to or less than the second average reward (step S210: NO), the processing circuit 101 advances the process to step S180. In the process of step S180, 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. The process consisting of steps S210, S170, and S180 compares the rewards of the first trials multiple times with the rewards of the second trials multiple times, and reflects the change in one of the first and second trials with the larger reward in the control map. When the first average reward and the second average reward are equal, the processing circuit 101 may change the torque variable of the control map to the first variable. Also, when the first average reward and the second average reward are equal, the processing circuit 101 may not change the torque variable of the control map. After updating the control map in this way, the processing circuit 101 ends the learning routine.

[0056] In this way, when the predetermined conditions are met, the processing circuit 101 performs the first trial and the second trial multiple times each, and executes a second process in which the change in one of the first and second trials that had a larger reward is reflected in the control map.

[0057] In the process of step S230, when the processing circuit 101 determines that the number of executions is less than the termination number (step S230: YES), the processing circuit 101 returns the process to step S110. In this way, after the predetermined condition is satisfied, the processing circuit 101 repeatedly executes the second process until the number of executions reaches the termination number.

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

[0059] In the process of step S240, the processing circuit 101 records the torque variables 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.

[0060] 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.

[0061] <Action of this embodiment> The adaptation method executed by the adaptation system 100 includes a first step of executing a first process and a second step of executing a second process. In this adaptation method, after a predetermined condition for determining that the optimization has progressed to the end is satisfied, a learning routine in a second step is executed. In the learning routine in the second step, multiple trials are performed without changing the torque variable, and the torque variable in one of the first and second trials that has a larger reward is adopted. In this case, the rewards in the multiple trials are used when comparing the magnitudes. Therefore, even if an accidental fluctuation in the state variable occurs in one of the trials due to noise in the signal from the sensor, it is less likely to affect the determination of the torque variable.

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

[0063] (2) 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.

[0064] <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.

[0065] In the second process, the control map is updated by reflecting the change in one of the first and second trials, in which the average value of the reward for multiple trials is larger than the other, in the control map, and the learning routine is terminated. The first and second trials are each performed multiple times, and the second process is executed to reflect the change in one of the first and second trials, in which the reward was larger, in the control map. The specific aspect of the second process is not limited to such an aspect. For example, the aspect of comparing the reward for multiple trials is not limited to the aspect of comparing the average value. For example, when the first and second trials are each performed three times in the learning routine, the processing circuit 101 compares the reward for the first trials, the reward for the second trials, and the reward for the third trials. Then, the processing circuit 101 reflects the change in one of the first and second trials, in which the reward was determined to be larger more times, in the control map. Such an aspect may be adopted. Alternatively, for example, the processing circuit 101 may arrange the three rewards from the three first trials and the three rewards from the three second trials, totaling six rewards, in descending order. Then, the processing circuit 101 reflects in the control map a change to one of the trials in which two or more rewards are included in the top three. Such an embodiment may be adopted.

[0066] 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]

[0067] 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 circuit executes a first process of performing a first trial and a second trial in which the change is made to the function so as to adjust the command value output from the function in the opposite direction of positive and negative in each learning routine until a predetermined condition for determining that the optimization has progressed to the end is satisfied, updating the function by reflecting the change in one of the first trial and the second trial in which the reward was larger, and terminating the learning routine; After the predetermined condition is established, the processing circuit executes a second process of performing the first trial and the second trial multiple times in each learning routine, comparing the rewards of the multiple first trials with the rewards of the multiple second trials, and updating the function by reflecting the change in one of the first trial and the second trial in which the reward was larger, thereby ending the learning routine. Compatible systems.

2. In the second process, the function is updated by reflecting the change in one of the first trial and the second trial, in which the average value of the reward for a plurality of trials is greater than the other, to the function, and the learning routine is terminated. The matching system of claim 1 .

3. 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 .

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 as to adjust the command value output by the function in the opposite direction of positive and negative in each learning routine until a predetermined condition for determining that the optimization has progressed to the end is satisfied, and updating the function by reflecting the change in one of the first trial and the second trial in which the reward was larger, thereby completing the learning routine; and a second step of causing the processing circuit to execute a second process in which, after the predetermined condition is satisfied, the first trial and the second trial are performed a plurality of times in each learning routine, the rewards of the plurality of first trials are compared with the rewards of the plurality of second trials, and the change in one of the first trial and the second trial in which the reward was larger is reflected in the function, thereby updating the function and terminating the learning routine. 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