Performance parameter adjusting method and device of operating system of vehicle and storage medium
By obtaining initial performance parameters in the vehicle operating system and combining the historical fitness adjustment model, the problem of poor performance of the vehicle operating system is solved, and the transition load and performance improvement are avoided.
Patent Information
- Application Number
- CN202411186381.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-13
AI Technical Summary
The stress test cases of existing vehicle operating systems are complex and random, which makes it difficult to fully cover the stress tests of the operating system, resulting in transition load conditions, and thus poor performance.
By obtaining the initial performance parameters of the operating system, input them into the performance adjustment model for fitness calculation, determine the target performance parameters based on historical fitness, and adjust the operating system performance to avoid transition load.
It effectively improves the performance of the vehicle operating system, avoids the occurrence of transitional load conditions, and improves the stability and performance of the system.
Smart Images

Figure CN119127494A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicles, and in particular to a method, device and storage medium for adjusting performance parameters of an operating system of a vehicle. Background Art
[0002] In the existing performance parameter adjustment methods of the vehicle's operating system, it is often difficult to comprehensively cover the stress test of the operating system due to the lack of complexity and randomness of the test cases of the operating system's stress test, which causes the vehicle's operating system to be prone to excessive load, thereby leading to the technical problem of poor performance of the vehicle's operating system.
[0003] Currently, no effective solution has been proposed to the technical problem of poor performance of the operating system of the above-mentioned vehicles. Summary of the invention
[0004] Embodiments of the present invention provide a method, device, and storage medium for adjusting performance parameters of an operating system of a vehicle, so as to at least solve the technical problem of poor performance of the operating system of the vehicle.
[0005] According to one aspect of an embodiment of the present invention, a method for adjusting performance parameters of an operating system of a vehicle is provided, the method comprising: obtaining at least one initial performance parameter of the operating system of the vehicle, wherein the initial performance parameter is used to represent the current performance of the operating system in a full-load state; inputting the at least one initial performance parameter into a performance adjustment model for fitness calculation to obtain the initial fitness of the at least one initial performance parameter, wherein the performance adjustment model is trained based on at least performance parameter samples of the operating system in a full-load state and performance parameter samples of the operating system that is not in a full-load state; in the performance adjustment model, determining at least one target performance parameter of the operating system based on at least the initial fitness and the historical fitness, wherein the historical fitness is obtained by inputting at least one historical performance parameter of the operating system into the performance adjustment model for fitness calculation and adjusting the fitness of the calculated historical performance parameter, the historical performance parameter is used to represent the historical performance of the operating system in a full-load state, and the target performance parameter is used to represent the target performance to be achieved by the operating system in a full-load state; adjusting the initial performance parameter to the target performance parameter.
[0006] Optionally, at least one initial performance parameter is input into a performance adjustment model for fitness calculation to obtain the initial fitness of at least one initial performance parameter, including: inputting at least one initial performance parameter into an objective function in the performance adjustment model for fitness calculation to obtain the initial fitness of at least one initial performance parameter, wherein the objective function is used to represent the mapping relationship between at least one initial performance parameter and at least one initial fitness.
[0007] Optionally, in the performance adjustment model, at least one target performance parameter of the operating system is determined based at least on the initial fitness and the historical fitness, including: in the performance adjustment model, comparing the initial fitness and the historical fitness to obtain a comparison result; and determining the target performance parameter based on the comparison result.
[0008] Optionally, based on the comparison result, determining the target performance parameter includes: determining the target fitness from the initial fitness of at least one initial performance parameter, wherein the value of the target fitness is greater than the value of any fitness in the initial fitness except the target fitness; determining the target performance parameter based on the comparison result and the target fitness.
[0009] Optionally, based on the comparison result and the target fitness, the target performance parameters are determined, including: in response to the comparison result that the initial fitness is greater than or equal to the historical fitness, the target performance parameters are determined based on the initial fitness and the target fitness; in response to the comparison result that the initial fitness is less than the historical fitness, the target performance parameters are determined based on the historical fitness and the target fitness.
[0010] Optionally, in response to the comparison result that the initial fitness is greater than or equal to the historical fitness, the target performance parameter is determined based on the initial fitness and the target fitness, including: in response to the comparison result that the initial fitness is greater than or equal to the historical fitness, if the initial fitness that is greater than or equal to the historical fitness is greater than or equal to the target fitness, then the target performance parameter is determined to be the initial performance parameter corresponding to the initial fitness that is greater than or equal to the historical fitness; in response to the comparison result that the initial fitness is greater than or equal to the historical fitness, if the initial fitness that is greater than or equal to the historical fitness is less than the target fitness, then the target performance parameter is determined to be the initial performance parameter corresponding to the target fitness.
[0011] Optionally, in response to the comparison result that the initial fitness is less than the historical fitness, the target performance parameters are determined based on the historical fitness and the target fitness, including: in response to the comparison result that the initial fitness is less than the historical fitness, if the historical fitness is greater than or equal to the target fitness, then the target performance parameters are determined to be the historical performance parameters corresponding to the historical fitness; in response to the comparison result that the initial fitness is less than the historical fitness, if the historical fitness is less than the target fitness, then the target performance parameters are determined to be the initial performance parameters corresponding to the target fitness.
[0012] Optionally, adjusting the initial performance parameters to the target performance parameters includes: in response to the target performance parameter being the initial performance parameter corresponding to the initial fitness greater than or equal to the historical fitness, adjusting the initial performance parameter to the initial performance parameter corresponding to the initial fitness greater than or equal to the historical fitness; in response to the target performance parameter being the initial performance parameter corresponding to the target fitness, adjusting the initial performance parameter to the initial performance parameter corresponding to the target fitness; in response to the target performance parameter being the historical performance parameter corresponding to the historical fitness, adjusting the initial performance parameter to the historical performance parameter corresponding to the historical fitness.
[0013] According to one aspect of an embodiment of the present invention, a performance parameter adjustment device for an operating system of a vehicle is provided, and the device may include: an acquisition unit, used to acquire at least one initial performance parameter of the operating system of the vehicle, wherein the initial performance parameter is used to represent the current performance of the operating system in a full-load state; a calculation unit, used to input the at least one initial performance parameter into a performance adjustment model for fitness calculation, and obtain the initial fitness of the at least one initial performance parameter, wherein the performance adjustment model is trained based on at least performance parameter samples of the operating system in a full-load state and performance parameter samples of the operating system not in a full-load state; a determination unit, used to determine at least one target performance parameter of the operating system in the performance adjustment model based on at least the initial fitness and the historical fitness, wherein the historical fitness is obtained by inputting at least one historical performance parameter of the operating system into the performance adjustment model for fitness calculation and adjusting the fitness of the calculated historical performance parameter, the historical performance parameter is used to represent the historical performance of the operating system in a full-load state, and the target performance parameter is used to represent the target performance to be achieved by the operating system in a full-load state; and an adjustment unit, used to adjust the initial performance parameter to the target performance parameter.
[0014] According to another aspect of an embodiment of the present invention, a processor is further provided, wherein the processor is used to run a program, wherein when the program is run by the processor, the performance parameter adjustment method of the vehicle operating system in the embodiment of the present invention is executed.
[0015] According to another aspect of an embodiment of the present invention, an electronic device is also provided, including: a memory storing an executable program; and a processor for running the program, wherein when the program is running, the performance parameter adjustment method of the vehicle operating system in each embodiment of the present invention is executed.
[0016] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the performance parameter adjustment method of the vehicle operating system in the embodiment of the present invention.
[0017] According to another aspect of an embodiment of the present invention, a computer program product is further provided. The computer program product includes a computer program. When the computer program is executed by a processor, the performance parameter adjustment method of the vehicle operating system in the embodiment of the present invention is implemented.
[0018] According to another aspect of an embodiment of the present invention, a computer program product is also provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the performance parameter adjustment method of the operating system of the vehicle in the embodiment of the present invention is implemented.
[0019] According to another aspect of an embodiment of the present invention, an embodiment of the present application further provides a computer program, which, when executed by a processor, implements the performance parameter adjustment method of the vehicle operating system in the above-mentioned embodiment of the present invention.
[0020] In an embodiment of the present invention, when adjusting the performance parameters of the vehicle's operating system, at least one initial performance parameter of the vehicle's operating system can be obtained. The at least one initial performance parameter obtained is input into the performance adjustment model for fitness calculation, and the initial fitness of the at least one initial performance parameter can be obtained. In the performance adjustment model, at least one target performance parameter of the operating system can be determined based on the obtained initial fitness and historical fitness, that is, the target performance to be achieved by the operating system in a fully loaded state can be determined, and the initial performance parameter can be adjusted to the determined target performance parameter, thereby achieving the purpose of avoiding the situation where the operating system has an excessive load, thereby solving the technical problem of poor performance of the vehicle's operating system, and further achieving the technical effect of improving the performance of the vehicle's operating system. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0022] Figure 1 is a flow chart of a method for adjusting performance parameters of an operating system of a vehicle according to an embodiment of the present invention;
[0023] Figure 2 is a flow chart of a stress testing method based on a particle swarm algorithm according to an embodiment of the present invention;
[0024] Figure 3 is a schematic diagram of a performance parameter adjustment device for an operating system of a vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] According to an embodiment of the present invention, a method for adjusting performance parameters of an operating system of a vehicle is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0028] Figure 1 : is a flow chart of a method for adjusting performance parameters of an operating system of a vehicle according to an embodiment of the present invention. The method may include the following steps:
[0029] Step S101, obtaining at least one initial performance parameter of the vehicle's operating system.
[0030] In the technical solution provided in step S101 of the present invention, the initial performance parameter can be used to represent the current performance of the operating system in a fully loaded state. For example, the initial performance parameter can include at least one of the following parameters: the frequency of interrupts of the operating system, the speed of context switching of the process, and the utilization rate of the central processing unit (CPU), etc., which are only given as examples and are not specifically limited.
[0031] In this embodiment, at least one initial performance parameter of the vehicle's operating system is obtained. Optionally, this embodiment monitors the vehicle's operating system in real time at each moment in the current period, and can obtain at least one initial performance parameter of the vehicle's operating system in the current period.
[0032] Optionally, by real-time monitoring of the vehicle's operating system at various times during the period from 18:00 to 19:00 on May 1, 2024, the frequency of interruptions of the vehicle's operating system, the speed of context switching of the process, and the CPU utilization rate during the period from 18:00 to 19:00 on May 1, 2024 can be obtained. This is only an example and is not specifically limited.
[0033] Step S102: input at least one initial performance parameter into the performance adjustment model to perform fitness calculation to obtain an initial fitness of the at least one initial performance parameter.
[0034] In the technical solution provided in the above step S102 of the present invention, the above performance adjustment model can be trained based on at least performance parameter samples of the operating system in a full-load state and performance parameter samples of the operating system not in a full-load state.
[0035] In this embodiment, after obtaining at least one initial performance parameter of the vehicle's operating system, the at least one initial performance parameter is input into the performance adjustment model to perform fitness calculation, thereby obtaining the initial fitness of the at least one initial performance parameter. Optionally, based on obtaining at least one initial performance parameter of the vehicle's operating system, this embodiment inputs the obtained at least one initial performance parameter into the performance adjustment model to perform fitness calculation, and uses the calculated result as the initial fitness of the at least one initial performance parameter, thereby obtaining the initial fitness of the at least one initial performance parameter.
[0036] Step S103: in the performance adjustment model, at least one target performance parameter of the operating system is determined based on at least the initial fitness and the historical fitness.
[0037] In the technical solution provided in the above step S103 of the present invention, the above historical fitness can be obtained by inputting at least one historical performance parameter of the operating system into the performance adjustment model to perform fitness calculation, and adjusting the fitness of the calculated historical performance parameter.
[0038] In this embodiment, the above historical performance parameters can be used to represent the historical performance of the operating system in a fully loaded state. For example, the above historical performance parameters may include at least one of the following parameters: the historical frequency of interrupts of the operating system, the historical speed of context switching of the process, and the historical CPU usage rate, etc., which are only used as examples and are not specifically limited.
[0039] In this embodiment, the target performance parameter can be used to represent the target performance to be achieved by the operating system in a fully loaded state. The target performance parameter can include at least one of the following parameters: the interrupt frequency to be achieved of the operating system, the context switching speed to be achieved of the process, and the CPU usage rate to be achieved, etc., which are only given as examples and are not specifically limited.
[0040] In this embodiment, after at least one initial performance parameter is input into the performance adjustment model for fitness calculation and the initial fitness of at least one initial performance parameter is obtained, at least one target performance parameter of the operating system is determined in the performance adjustment model based on at least the initial fitness and the historical fitness. Optionally, this embodiment can obtain the historical fitness of at least one historical performance parameter on the basis of obtaining the initial fitness of at least one initial performance parameter. In this performance adjustment model, by comparing the initial fitness of at least one initial performance parameter with the historical fitness of at least one historical performance parameter, at least one target performance parameter of the operating system can be obtained, for example, the interruption frequency to be reached of the operating system, the context switching speed to be reached of the process, and the utilization rate to be reached of the CPU can be obtained, which is only used as an example and is not specifically limited.
[0041] Step S104, adjusting the initial performance parameters to the target performance parameters.
[0042] In the technical solution provided in the above step S104 of the present invention, in the performance adjustment model, after determining at least one target performance parameter of the operating system based on at least the initial fitness and the historical fitness, the initial performance parameter is adjusted to the target performance parameter. Optionally, this embodiment determines the relationship between the determined target performance parameter and the initial performance parameter and the historical performance parameter on the basis of determining at least one target performance parameter of the operating system, and a judgment result can be obtained. According to the obtained judgment result, the initial performance parameter can be adjusted to the target performance parameter, thereby achieving the purpose of adjusting the vehicle's operating system from the current performance to the target performance.
[0043] In the above steps S101 to S104 of the present application, when adjusting the performance parameters of the vehicle's operating system, at least one initial performance parameter of the vehicle's operating system can be obtained. The at least one initial performance parameter obtained is input into the performance adjustment model for fitness calculation, and the initial fitness of the at least one initial performance parameter can be obtained. In the performance adjustment model, at least one target performance parameter of the operating system can be determined based on the obtained initial fitness and historical fitness, that is, the target performance to be achieved by the operating system in a fully loaded state can be determined, and the initial performance parameters can be adjusted to the determined target performance parameters, thereby achieving the purpose of avoiding the situation where the operating system has an excessive load, thereby solving the technical problem of poor performance of the vehicle's operating system, and further achieving the technical effect of improving the performance of the vehicle's operating system.
[0044] The above method of this embodiment is further introduced below.
[0045] As an optional implementation method, step S102, inputs at least one initial performance parameter into the performance adjustment model for fitness calculation to obtain the initial fitness of at least one initial performance parameter, including: inputting at least one initial performance parameter into the objective function in the performance adjustment model for fitness calculation to obtain the initial fitness of at least one initial performance parameter.
[0046] In this embodiment, the objective function may be used to represent a mapping relationship between at least one initial performance parameter and at least one initial fitness.
[0047] In this embodiment, after obtaining at least one initial performance parameter of the operating system of the vehicle, the at least one initial performance parameter is input into the objective function of the performance adjustment model to perform fitness calculation, thereby obtaining the initial fitness of the at least one initial performance parameter. Optionally, on the basis of obtaining at least one initial performance parameter of the operating system of the vehicle, this embodiment inputs the obtained at least one initial performance parameter into the objective function of the performance adjustment model to perform fitness calculation, and uses the calculated result as the initial fitness of the at least one initial performance parameter, thereby obtaining the initial fitness of the at least one initial performance parameter.
[0048] As an optional implementation method, step S103, in the performance adjustment model, determines at least one target performance parameter of the operating system based at least on the initial fitness and the historical fitness, including: in the performance adjustment model, comparing the initial fitness and the historical fitness to obtain a comparison result; based on the comparison result, determining the target performance parameter.
[0049] In this embodiment, the comparison result can be used to represent the relationship between the initial fitness and the historical fitness. For example, the comparison result can be that the initial fitness is greater than or equal to the historical fitness, or that the initial fitness is less than the historical fitness, which is only used as an example and is not specifically limited.
[0050] In this embodiment, after at least one initial performance parameter is input into the performance adjustment model for fitness calculation and the initial fitness of at least one initial performance parameter is obtained, the initial fitness and the historical fitness are compared in the performance adjustment model to obtain a comparison result. Optionally, this embodiment can obtain the historical fitness of at least one historical performance parameter on the basis of obtaining the initial fitness of at least one initial performance parameter. In this performance adjustment model, by comparing the initial fitness of at least one initial performance parameter with the historical fitness of at least one historical performance parameter, a comparison result can be obtained, that is, the relationship between the initial fitness of at least one initial performance parameter and the historical fitness of at least one historical performance parameter can be obtained.
[0051] In this embodiment, after the comparison result is obtained, the target performance parameter is determined based on the comparison result. Optionally, this embodiment can determine at least one target performance parameter of the operating system based on the relationship between the initial fitness of at least one initial performance parameter and the historical fitness of at least one historical performance parameter, for example, the interruption frequency to be reached of the operating system, the context switching speed to be reached of the process, and the CPU usage rate to be reached can be determined, which is only an example for illustration and not specifically limited.
[0052] As an optional implementation manner, determining the target performance parameter based on the comparison result includes: determining the target fitness from the initial fitness of at least one initial performance parameter; and determining the target performance parameter based on the comparison result and the target fitness.
[0053] In this embodiment, the value of the target fitness may be greater than the value of any fitness in the initial fitness except the target fitness.
[0054] In this embodiment, in the performance adjustment model, the initial fitness and the historical fitness are compared, and after the comparison result is obtained, the target fitness is determined from the initial fitness of at least one initial performance parameter. Optionally, this embodiment can determine the target fitness from the initial fitness of at least one initial performance parameter based on the relationship between the initial fitness of at least one initial performance parameter and the historical fitness of at least one historical performance parameter, that is, the maximum initial fitness among the initial fitnesses can be determined from the initial fitness of at least one initial performance parameter.
[0055] In this embodiment, after determining the target fitness, the target performance parameter is determined based on the comparison result and the target fitness. Optionally, this embodiment analyzes the comparison result obtained on the basis of determining the target fitness, and can analyze the relationship between the initial fitness and the historical fitness. On the basis of analyzing the relationship between the initial fitness and the historical fitness, according to the target fitness determined from the initial fitness, at least one target performance parameter of the operating system can be determined, for example, the interruption frequency to be reached of the operating system, the context switching speed to be reached of the process, and the utilization rate to be reached of the CPU can be obtained, which is only used as an example and is not specifically limited.
[0056] As an optional implementation method, the target performance parameters are determined based on the comparison result and the target fitness, including: in response to the comparison result that the initial fitness is greater than or equal to the historical fitness, the target performance parameters are determined based on the initial fitness and the target fitness; in response to the comparison result that the initial fitness is less than the historical fitness, the target performance parameters are determined based on the historical fitness and the target fitness.
[0057] In this embodiment, after determining the target fitness from the initial fitness of at least one initial performance parameter, in response to the comparison result that the initial fitness is greater than or equal to the historical fitness, the target performance parameter is determined based on the initial fitness and the target fitness. Optionally, this embodiment analyzes the obtained comparison result on the basis of determining the target fitness, and if the analysis shows that the comparison result is that the initial fitness is greater than or equal to the historical fitness, at least one target performance parameter of the operating system can be determined based on the initial fitness and the target fitness determined from the initial fitness.
[0058] In this embodiment, after determining the target fitness from the initial fitness of at least one initial performance parameter, in response to the comparison result that the initial fitness is less than the historical fitness, the target performance parameter is determined based on the historical fitness and the target fitness. Optionally, this embodiment analyzes the comparison result obtained on the basis of determining the target fitness, and if the comparison result is that the initial fitness is less than the historical fitness, at least one target performance parameter of the operating system can be determined based on the historical fitness and the target fitness determined from the initial fitness.
[0059] As an optional implementation method, in response to the comparison result that the initial fitness is greater than or equal to the historical fitness, the target performance parameter is determined based on the initial fitness and the target fitness, including: in response to the comparison result that the initial fitness is greater than or equal to the historical fitness, if the initial fitness that is greater than or equal to the historical fitness is greater than or equal to the target fitness, then the target performance parameter is determined to be the initial performance parameter corresponding to the initial fitness that is greater than or equal to the historical fitness; in response to the comparison result that the initial fitness is greater than or equal to the historical fitness, if the initial fitness that is greater than or equal to the historical fitness is less than the target fitness, then the target performance parameter is determined to be the initial performance parameter corresponding to the target fitness.
[0060] In this embodiment, in response to the comparison result being that the initial fitness is greater than or equal to the historical fitness, if the initial fitness that is greater than or equal to the historical fitness is greater than or equal to the target fitness, the target performance parameter is determined to be the initial performance parameter corresponding to the initial fitness that is greater than or equal to the historical fitness. Optionally, this embodiment determines the relationship between the initial fitness that is greater than or equal to the historical fitness and the target fitness on the basis of analyzing that the comparison result is that the initial fitness is greater than or equal to the historical fitness, and if it is determined that the initial fitness that is greater than or equal to the historical fitness is greater than or equal to the target fitness, the target performance parameter can be determined to be the initial performance parameter corresponding to the initial fitness that is greater than or equal to the historical fitness.
[0061] In this embodiment, in response to the comparison result being that the initial fitness is greater than or equal to the historical fitness, if the initial fitness that is greater than or equal to the historical fitness is less than the target fitness, the target performance parameter is determined to be the initial performance parameter corresponding to the target fitness. Optionally, this embodiment, based on analyzing that the comparison result is that the initial fitness is greater than or equal to the historical fitness, determines the relationship between the initial fitness that is greater than or equal to the historical fitness and the target fitness, and if it is determined that the initial fitness that is greater than or equal to the historical fitness is less than the target fitness, the target performance parameter can be determined to be the initial performance parameter corresponding to the target fitness.
[0062] As an optional implementation method, in response to the comparison result that the initial fitness is less than the historical fitness, the target performance parameters are determined based on the historical fitness and the target fitness, including: in response to the comparison result that the initial fitness is less than the historical fitness, if the historical fitness is greater than or equal to the target fitness, then the target performance parameters are determined to be the historical performance parameters corresponding to the historical fitness; in response to the comparison result that the initial fitness is less than the historical fitness, if the historical fitness is less than the target fitness, then the target performance parameters are determined to be the initial performance parameters corresponding to the target fitness.
[0063] In this embodiment, in response to the comparison result that the initial fitness is less than the historical fitness, if the historical fitness is greater than or equal to the target fitness, the target performance parameter is determined to be the historical performance parameter corresponding to the historical fitness. Optionally, this embodiment determines the relationship between the historical fitness and the target fitness based on the analysis that the comparison result is that the initial fitness is less than the historical fitness, and if it is determined that the historical fitness is greater than or equal to the target fitness, the target performance parameter can be determined to be the historical performance parameter corresponding to the historical fitness.
[0064] In this embodiment, in response to the comparison result that the initial fitness is less than the historical fitness, if the historical fitness is less than the target fitness, the target performance parameter is determined to be the initial performance parameter corresponding to the target fitness. Optionally, this embodiment determines the relationship between the historical fitness and the target fitness based on the analysis that the comparison result is that the initial fitness is less than the historical fitness, and if it is determined that the historical fitness is less than the target fitness, the target performance parameter can be determined to be the initial performance parameter corresponding to the target fitness.
[0065] As an optional implementation method, step S104, adjusting the initial performance parameters to the target performance parameters, includes: in response to the target performance parameter being the initial performance parameter corresponding to the initial fitness greater than or equal to the historical fitness, adjusting the initial performance parameter to the initial performance parameter corresponding to the initial fitness greater than or equal to the historical fitness; in response to the target performance parameter being the initial performance parameter corresponding to the target fitness, adjusting the initial performance parameter to the initial performance parameter corresponding to the target fitness; in response to the target performance parameter being the historical performance parameter corresponding to the historical fitness, adjusting the initial performance parameter to the historical performance parameter corresponding to the historical fitness.
[0066] In this embodiment, in the performance adjustment model, after determining at least one target performance parameter of the operating system based at least on the initial fitness and the historical fitness, in response to the target performance parameter being the initial performance parameter corresponding to the initial fitness greater than or equal to the historical fitness, the initial performance parameter is adjusted to the initial performance parameter corresponding to the initial fitness greater than or equal to the historical fitness. Optionally, this embodiment determines the relationship between the determined target performance parameter and the initial performance parameter and the historical performance parameter on the basis of determining at least one target performance parameter of the operating system, and a judgment result can be obtained. If the judgment result obtained is that the target performance parameter is the initial performance parameter corresponding to the initial fitness greater than or equal to the historical fitness, the initial performance parameter is adjusted to the initial performance parameter corresponding to the initial fitness greater than or equal to the historical fitness.
[0067] In this embodiment, in the performance adjustment model, after determining at least one target performance parameter of the operating system based at least on the initial fitness and the historical fitness, in response to the target performance parameter being the initial performance parameter corresponding to the target fitness, the initial performance parameter is adjusted to the initial performance parameter corresponding to the target fitness. Optionally, on the basis of determining at least one target performance parameter of the operating system, this embodiment judges the relationship between the determined target performance parameter and the initial performance parameter and the historical performance parameter to obtain a judgment result. If the judgment result obtained is that the target performance parameter is the initial performance parameter corresponding to the target fitness, the initial performance parameter is adjusted to the initial performance parameter corresponding to the target fitness.
[0068] In this embodiment, in the performance adjustment model, after determining at least one target performance parameter of the operating system based at least on the initial fitness and the historical fitness, in response to the target performance parameter being a historical performance parameter corresponding to the historical fitness, the initial performance parameter is adjusted to the historical performance parameter corresponding to the historical fitness. Optionally, on the basis of determining at least one target performance parameter of the operating system, this embodiment judges the relationship between the determined target performance parameter and the initial performance parameter and the historical performance parameter to obtain a judgment result. If the judgment result obtained is that the target performance parameter is a historical performance parameter corresponding to the historical fitness, the initial performance parameter is adjusted to the historical performance parameter corresponding to the historical fitness.
[0069] In an embodiment of the present invention, when adjusting the performance parameters of the vehicle's operating system, at least one initial performance parameter of the vehicle's operating system can be obtained. The at least one initial performance parameter obtained is input into the performance adjustment model for fitness calculation, and the initial fitness of the at least one initial performance parameter can be obtained. In the performance adjustment model, at least one target performance parameter of the operating system can be determined based on the obtained initial fitness and historical fitness, that is, the target performance to be achieved by the operating system in a fully loaded state can be determined, and the initial performance parameter can be adjusted to the determined target performance parameter, thereby achieving the purpose of avoiding the situation where the operating system has an excessive load, thereby solving the technical problem of poor performance of the vehicle's operating system, and further achieving the technical effect of improving the performance of the vehicle's operating system.
[0070] The technical solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.
[0071] In the existing performance parameter adjustment methods of the vehicle's operating system, it is often difficult to comprehensively cover the stress test of the operating system due to the lack of complexity and randomness of the test cases of the operating system's stress test, which causes the vehicle's operating system to be prone to excessive load, thereby leading to the technical problem of poor performance of the vehicle's operating system.
[0072] In order to solve the above technical problems, an embodiment of the present invention proposes a performance adjustment method for a vehicle operating system, wherein at least one initial performance parameter of the vehicle operating system obtained is input into a performance adjustment model for fitness calculation, and the initial fitness of at least one initial performance parameter can be obtained. According to the initial fitness and historical fitness of the at least one initial performance parameter obtained, a target performance parameter can be determined, thereby adjusting the performance of the operating system, thereby achieving the purpose of avoiding the situation where the operating system has an excessive load, thereby solving the technical problem of poor performance of the vehicle operating system, and further achieving the technical effect of improving the performance of the vehicle operating system.
[0073] In this embodiment, the stress test method based on the particle swarm algorithm can comprehensively cover the stress test of the operating system. For example, Figure 2 is a flow chart of a stress testing method based on a particle swarm algorithm according to an embodiment of the present invention. Figure 2 As shown, the method may include the following steps:
[0074] Step S201, initializing and generating various stress test case particle groups.
[0075] In the technical solution provided in the above step S201 of the present invention, the above stress test case particle swarm can be used to represent the initial performance parameters of the vehicle's operating system.
[0076] After initializing and generating various stress test case particle swarms, the process proceeds to step S202 to construct a fitness function with the system performance index as the optimization target.
[0077] After constructing the fitness function with the system performance index as the optimization target, enter step S203 to adjust the speed direction and size of the particle swarm according to the fitness function value to achieve fast traversal search.
[0078] After constructing the fitness function with the system performance index as the optimization target, the process proceeds to step S204 to fuse the historical optimal information of individual particles and the global optimal information of the particle group.
[0079] In the technical solution provided in step S204 of the present invention, the above-mentioned individual particle historical optimal information can be used to represent the historical fitness of at least one historical performance parameter. The above-mentioned particle group global optimal information can be used to represent the target fitness in the initial fitness.
[0080] After fusing the historical optimal information of individual particles and the global optimal information of the particle group, the process proceeds to step S205 to iteratively update the particle group until a global optimal solution is obtained.
[0081] In the technical solution provided in the above step S205 of the present invention, the global optimal solution can be used to make all performance parameters of the vehicle's operating system within the range of optimal values. If there are multiple global optimal solutions, as long as the load of the operating system is maximized (that is, the operating system is in a full load state), multiple global optimal solutions can be retained. Through the above-mentioned stress testing method based on the particle swarm algorithm, it can be ensured that the vehicle's operating system can be used normally within the threshold range.
[0082] In this embodiment, at least one initial performance parameter of the vehicle's operating system is input into the performance adjustment model for fitness calculation, and the initial fitness of the at least one initial performance parameter can be obtained. According to the initial fitness and historical fitness of the at least one initial performance parameter obtained, the target performance parameter can be determined, thereby adjusting the performance of the operating system, thereby achieving the purpose of avoiding the situation where the operating system has an excessive load, thereby solving the technical problem of poor performance of the vehicle's operating system, and further achieving the technical effect of improving the performance of the vehicle's operating system.
[0083] According to an embodiment of the present invention, a performance parameter adjustment device for a vehicle operating system is also provided. It should be noted that the performance parameter adjustment device for a vehicle operating system can be used to execute a performance parameter adjustment method for a vehicle operating system in embodiment 1.
[0084] Figure 3 Schematic diagram of a performance parameter adjustment device for a vehicle operating system according to an embodiment of the present invention. Figure 3 As shown, the performance parameter adjustment device 300 of the vehicle operating system may include: an acquisition unit 301 , a calculation unit 302 , a determination unit 303 and an adjustment unit 304 .
[0085] The acquisition unit 301 is used to acquire at least one initial performance parameter of the vehicle's operating system, wherein the initial performance parameter is used to represent the current performance of the operating system in a full-load state.
[0086] The calculation unit 302 is used to input at least one initial performance parameter into the performance adjustment model to perform fitness calculation to obtain the initial fitness of at least one initial performance parameter, wherein the performance adjustment model is trained based on at least performance parameter samples of the operating system in a full load state and performance parameter samples of the operating system that is not in a full load state.
[0087] The determination unit 303 is used to determine at least one target performance parameter of the operating system in the performance adjustment model, at least based on the initial fitness and the historical fitness, wherein the historical fitness is obtained by inputting at least one historical performance parameter of the operating system into the performance adjustment model for fitness calculation, and adjusting the fitness of the calculated historical performance parameter, the historical performance parameter is used to represent the historical performance of the operating system in a full load state, and the target performance parameter is used to represent the target performance to be achieved by the operating system in a full load state.
[0088] The adjustment unit 304 is used to adjust the initial performance parameter to the target performance parameter.
[0089] Optionally, the calculation unit 302 may include: a calculation module, used to input at least one initial performance parameter into the objective function in the performance adjustment model to perform fitness calculation, and obtain the initial fitness of at least one initial performance parameter, wherein the objective function is used to represent the mapping relationship between at least one initial performance parameter and at least one initial fitness.
[0090] Optionally, the determination unit 303 may include: a comparison module, used to compare the initial fitness and the historical fitness in the performance adjustment model to obtain a comparison result; and a determination module, used to determine the target performance parameter based on the comparison result.
[0091] Optionally, the determination module may include: a first determination submodule, used to determine the target fitness from the initial fitness of at least one initial performance parameter, wherein the value of the target fitness is greater than the value of any fitness in the initial fitness except the target fitness; and a second determination submodule, used to determine the target performance parameter based on the comparison result and the target fitness.
[0092] Optionally, the second determination submodule can determine the target performance parameters based on the comparison result and the target fitness by performing the following steps: in response to the comparison result that the initial fitness is greater than or equal to the historical fitness, the target performance parameters are determined based on the initial fitness and the target fitness; in response to the comparison result that the initial fitness is less than the historical fitness, the target performance parameters are determined based on the historical fitness and the target fitness.
[0093] Optionally, the second determination submodule can determine the target performance parameter based on the initial fitness and the target fitness in response to the comparison result that the initial fitness is greater than or equal to the historical fitness by executing the following steps: in response to the comparison result that the initial fitness is greater than or equal to the historical fitness, if the initial fitness that is greater than or equal to the historical fitness is greater than or equal to the target fitness, then the target performance parameter is determined to be the initial performance parameter corresponding to the initial fitness that is greater than or equal to the historical fitness; in response to the comparison result that the initial fitness is greater than or equal to the historical fitness, if the initial fitness that is greater than or equal to the historical fitness is less than the target fitness, then the target performance parameter is determined to be the initial performance parameter corresponding to the target fitness.
[0094] Optionally, the second determination submodule can determine the target performance parameters based on the historical fitness and the target fitness in response to the comparison result that the initial fitness is less than the historical fitness by executing the following steps: in response to the comparison result that the initial fitness is less than the historical fitness, if the historical fitness is greater than or equal to the target fitness, then the target performance parameters are determined to be the historical performance parameters corresponding to the historical fitness; in response to the comparison result that the initial fitness is less than the historical fitness, if the historical fitness is less than the target fitness, then the target performance parameters are determined to be the initial performance parameters corresponding to the target fitness.
[0095] Optionally, the adjustment unit 304 may include: a first adjustment module, used to adjust the initial performance parameter to an initial performance parameter corresponding to the initial fitness greater than or equal to the historical fitness in response to the target performance parameter being the initial performance parameter corresponding to the initial fitness greater than or equal to the historical fitness; a second adjustment module, used to adjust the initial performance parameter to the initial performance parameter corresponding to the target fitness in response to the target performance parameter being the initial performance parameter corresponding to the target fitness; and a third adjustment module, used to adjust the initial performance parameter to the historical performance parameter corresponding to the historical fitness in response to the target performance parameter being the historical performance parameter corresponding to the historical fitness.
[0096] In this embodiment, an acquisition unit is used to acquire at least one initial performance parameter of the operating system of the vehicle, wherein the initial performance parameter is used to represent the current performance of the operating system in a fully loaded state; a calculation unit is used to input the at least one initial performance parameter into a performance adjustment model for fitness calculation to obtain an initial fitness of the at least one initial performance parameter, wherein the performance adjustment model is trained based on at least performance parameter samples of the operating system in a fully loaded state and performance parameter samples of the operating system not in a fully loaded state; a determination unit is used to determine at least one target performance parameter of the operating system in the performance adjustment model based on at least the initial fitness and the historical fitness, wherein the historical fitness is obtained by inputting at least one historical performance parameter of the operating system into the performance adjustment model for fitness calculation and adjusting the fitness of the calculated historical performance parameter, the historical performance parameter is used to represent the historical performance of the operating system in a fully loaded state, and the target performance parameter is used to represent the target performance to be achieved by the operating system in a fully loaded state; an adjustment unit is used to adjust the initial performance parameter to the target performance parameter, thereby achieving the purpose of avoiding the situation where the operating system has an excessive load, thereby solving the technical problem of poor performance of the operating system of the vehicle, and further achieving the technical effect of improving the performance of the operating system of the vehicle.
[0097] According to an embodiment of the present invention, a processor is further provided, the processor being used to run a program, wherein when the program is run by the processor, the performance parameter adjustment method of the vehicle operating system in the embodiment is executed.
[0098] According to an embodiment of the present invention, there is also provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the performance parameter adjustment method of the vehicle operating system in the embodiment is executed when the program is running.
[0099] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the performance parameter adjustment method of the vehicle operating system in the embodiment.
[0100] According to an embodiment of the present invention, a computer program product is further provided. The computer program product includes a computer program. When the computer program is executed by a processor, the performance parameter adjustment method of the vehicle operating system in the embodiment is implemented.
[0101] According to an embodiment of the present invention, a computer program product is also provided, including a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the performance parameter adjustment method of the vehicle operating system in the embodiment is implemented.
[0102] According to an embodiment of the present invention, a computer program is also provided. When the computer program is executed by a processor, the method for adjusting performance parameters of an operating system of a vehicle in the embodiment is implemented.
[0103] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0104] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0105] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0106] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0107] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0108] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the relevant technology or the whole or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, referred to as Read-Only Memory), random access memory (RAM, referred to as Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0109] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for adjusting performance parameters of a vehicle operating system, characterized in that: include: Acquiring at least one initial performance parameter of an operating system of a vehicle, wherein the initial performance parameter is used to represent a current performance of the operating system in a full-load state; Inputting the at least one initial performance parameter into a performance adjustment model to perform fitness calculation to obtain an initial fitness of the at least one initial performance parameter, wherein the performance adjustment model is trained based on at least a performance parameter sample of the operating system in the full load state and a performance parameter sample of the operating system not in the full load state; In the performance adjustment model, at least one target performance parameter of the operating system is determined based on at least the initial fitness and the historical fitness, wherein the historical fitness is obtained by inputting at least one historical performance parameter of the operating system into the performance adjustment model for fitness calculation, and adjusting the calculated fitness of the historical performance parameter, the historical performance parameter is used to represent the historical performance of the operating system in the full load state, and the target performance parameter is used to represent the target performance to be achieved by the operating system in the full load state; The initial performance parameter is adjusted to the target performance parameter.
2. The method according to claim 1, characterized in that Inputting the at least one initial performance parameter into the performance adjustment model to perform fitness calculation to obtain the initial fitness of the at least one initial performance parameter includes: The at least one initial performance parameter is input into the objective function in the performance adjustment model to perform fitness calculation to obtain the initial fitness of the at least one initial performance parameter, wherein the objective function is used to represent the mapping relationship between the at least one initial performance parameter and the at least one initial fitness.
3. The method according to claim 1, characterized in that: In the performance adjustment model, determining at least one target performance parameter of the operating system based at least on the initial fitness and the historical fitness includes: In the performance adjustment model, the initial fitness and the historical fitness are compared to obtain a comparison result; Based on the comparison result, the target performance parameter is determined.
4. The method according to claim 3, characterized in that Determining the target performance parameter based on the comparison result includes: Determining a target fitness from the initial fitness of the at least one initial performance parameter, wherein the value of the target fitness is greater than the value of any fitness in the initial fitness except the target fitness; Based on the comparison result and the target fitness, the target performance parameter is determined.
5. The method according to claim 4, characterized in that Determining the target performance parameter based on the comparison result and the target fitness includes: In response to the comparison result being that the initial fitness is greater than or equal to the historical fitness, determining the target performance parameter based on the initial fitness and the target fitness; In response to the comparison result being that the initial fitness is less than the historical fitness, the target performance parameter is determined based on the historical fitness and the target fitness.
6. The method according to claim 5, characterized in that In response to the comparison result being that the initial fitness is greater than or equal to the historical fitness, determining the target performance parameter based on the initial fitness and the target fitness includes: In response to the comparison result being that the initial fitness is greater than or equal to the historical fitness, if the initial fitness that is greater than or equal to the historical fitness is greater than or equal to the target fitness, determining the target performance parameter to be the initial performance parameter corresponding to the initial fitness that is greater than or equal to the historical fitness; In response to the comparison result that the initial fitness is greater than or equal to the historical fitness, if the initial fitness that is greater than or equal to the historical fitness is less than the target fitness, the target performance parameter is determined to be the initial performance parameter corresponding to the target fitness.
7. The method according to claim 6, characterized in that In response to the comparison result being that the initial fitness is less than the historical fitness, determining the target performance parameter based on the historical fitness and the target fitness includes: In response to the comparison result being that the initial fitness is less than the historical fitness, if the historical fitness is greater than or equal to the target fitness, determining the target performance parameter to be the historical performance parameter corresponding to the historical fitness; In response to the comparison result being that the initial fitness is smaller than the historical fitness, if the historical fitness is smaller than the target fitness, determining the target performance parameter to be the initial performance parameter corresponding to the target fitness.
8. The method according to claim 5 or 6, characterized in that: Adjusting the initial performance parameter to the target performance parameter includes: In response to the target performance parameter being the initial performance parameter corresponding to the initial fitness greater than or equal to the historical fitness, adjusting the initial performance parameter to the initial performance parameter corresponding to the initial fitness greater than or equal to the historical fitness; In response to the target performance parameter being the initial performance parameter corresponding to the target fitness, adjusting the initial performance parameter to the initial performance parameter corresponding to the target fitness; In response to the target performance parameter being the historical performance parameter corresponding to the historical fitness, the initial performance parameter is adjusted to the historical performance parameter corresponding to the historical fitness.
9. A performance parameter adjustment device for a vehicle operating system, characterized in that: include: an acquisition unit, configured to acquire at least one initial performance parameter of an operating system of a vehicle, wherein the initial performance parameter is used to represent a current performance of the operating system in a full-load state; a calculation unit, configured to input the at least one initial performance parameter into a performance adjustment model to perform fitness calculation, and obtain an initial fitness of the at least one initial performance parameter, wherein the performance adjustment model is trained based on at least a performance parameter sample of the operating system in the full load state and a performance parameter sample of the operating system not in the full load state; a determining unit, configured to determine, in the performance adjustment model, at least one target performance parameter of the operating system based at least on the initial fitness and the historical fitness, wherein the historical fitness is obtained by inputting at least one historical performance parameter of the operating system into the performance adjustment model for fitness calculation, and adjusting the calculated fitness of the historical performance parameter, the historical performance parameter is used to represent the historical performance of the operating system in the full load state, and the target performance parameter is used to represent the target performance to be achieved by the operating system in the full load state; The adjustment unit is used to adjust the initial performance parameter to the target performance parameter.
10. A processor, characterized in that: The processor is used to run a program, wherein the program, when run by the processor, executes the performance parameter adjustment method of the vehicle operating system according to any one of claims 1 to 8.
11. An electronic device, characterized in that: include: A memory storing an executable program; A processor is used to run the program, wherein the program, when running, executes the performance parameter adjustment method of the vehicle operating system described in any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the storage medium is located is controlled to execute the performance parameter adjustment method of the vehicle operating system described in any one of claims 1 to 8.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for adjusting performance parameters of the operating system of the vehicle described in any one of claims 1 to 8 is implemented.
