Multi-objective test data generation method based on adaptive resonance topology network
Through the multi-modal multi-objective particle swarm optimization algorithm of the adaptive resonance topology network, the multi-modal multi-objective optimization problem of the aircraft is solved, the test data is quickly generated, the test efficiency and accuracy are improved, and the predefined topology structure is avoided. limitation.
Patent Information
- Application Number
- CN202410112127.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-01-26
Smart Images

Figure CN118012004B_ABST
Abstract
Description
Technical Field
[0001] The invention provides a multi-objective test data generation method based on an adaptive resonance topology network, belonging to the technical field of multi-modal multi-objective optimization algorithm and black box optimization test. Background Art
[0002] When an aircraft is subject to external interference or system failure during flight, the aircraft itself is stable and equipped with an autopilot system, which can resist a certain degree of interference or failure. Therefore, it is often difficult to estimate the state after interference or system failure during flight. Therefore, it is necessary to test the flight response of the aircraft under different degrees of interference or system failure. Considering the diverse structures, different control laws, and close coupling of software and hardware of different aircraft, the aircraft in flight can be regarded as a black box, without paying attention to the control logic and flight dynamics principles inside the aircraft. The external interference of a given intensity or a certain degree of system failure is input, and the flight state is judged according to certain specific indicators. The indicators used to judge the flight state of the aircraft are often not single, such as altitude, speed, angle of attack, etc. It is necessary to refer to multiple indicators at the same time to judge the flight state. Therefore, it is particularly important to find the interference conditions that make each indicator reach the unreliable or unsafe state threshold at the same time. For different indicators, the interference conditions that make them reach the unreliable or unsafe state threshold are often different, and some goals even conflict with each other. If such goals are to be achieved at the same time, such problems need to be regarded as multi-objective optimization problems. In addition, for the same flight status indicator, the interference variable combination that makes it reach the abnormal state threshold may also be different. If we want to find the interference variable combination that makes multiple indicators reach an unreliable or unsafe state, in addition to considering multi-objective optimization, we also need to consider the multimodal characteristics of the variable space, that is, to regard such problems as multimodal and multi-objective optimization problems.
[0003] There are generally two mainstream solutions to black-box optimization and testing problems: one is the Bayesian optimization method, and the other is the heuristic algorithm, such as genetic algorithm, differential evolution algorithm, and particle swarm algorithm. For black-box optimization and testing problems with multiple objectives, multi-objective optimization algorithms can be used to solve them, but most methods only focus on finding the Pareto frontier of the target space, while ignoring that the points on the same Pareto frontier may correspond to multiple variable combinations in the decision space, that is, the same function value may correspond to multiple solutions. If the black-box optimization and testing problem is only regarded as a multi-objective optimization problem, the diversity of the decision space solution may be ignored, and more feasible solutions cannot be provided for the solution of the problem. Instead, some black-box optimization problems are regarded as multi-modal and multi-objective optimization problems, and heuristic algorithms are used to explore the Pareto optimal solution set of such problems, which provides a more comprehensive approach to solving such problems.
[0004] To solve the multimodal multi-objective optimization problem, the optimization algorithms proposed so far mainly include Pareto-based, decomposition-based and indicator-based algorithms. Considering the multimodal characteristics of the decision space, some studies based on the Pareto dominance method apply the niche method to locate multiple optimal solutions, but the classic niche method is extremely sensitive to the value of the parameters. Therefore, a particle swarm multimodal multi-objective optimization algorithm based on the ring topology to form a stable niche is proposed. This algorithm does not need to define any niche parameters, but the ring topology is obtained by connecting the particles in the decision space end to end, and cannot reflect the true topological structure of the particle distribution in the space. When solving multimodal multi-objective problems, the neighborhood information reflected by the topological structure of the optimal solution plays an important role in local search. Inspired by the characteristics of multimodal multi-objective optimization problems and the neighborhood characteristics of the self-organizing map network, a multimodal multi-objective particle swarm optimization algorithm based on self-organizing maps is proposed. However, this method requires pre-definition of topological structure information such as the number of nodes, node arrangement, and node connection method, which often requires prior knowledge of the problem to be solved. In reality, it is often difficult for us to know this information in advance, which makes this method have great limitations.
[0005] Therefore, it is urgent for those skilled in the art to provide a new perspective on the problem of finding interference variable values that simultaneously reach the unreliable state threshold for multiple flight status indicators as a black box optimization test problem, and based on this new perspective, provide a multimodal multi-objective particle swarm optimization algorithm that does not require the pre-defined topology structure, and use the algorithm to achieve a method for rapid generation of targeted test data. Summary of the invention
[0006] In view of this, the present invention proposes a multi-objective test data generation method based on an adaptive resonance topology network, which regards the test aircraft under what external interference or self-system failure conditions will simultaneously approach multiple index thresholds of unreliable or unsafe states as a black box optimization test problem, generates test data through an optimization algorithm, that is, interference variable parameter combinations, and tests the state of the aircraft under different interference conditions. This type of black box optimization problem belongs to a multi-modal multi-objective optimization problem, which can be solved by a multi-modal multi-objective particle swarm optimization algorithm based on an adaptive resonance topology network, and regards the external interference variable parameter combinations encountered by the aircraft as particle positions, and finds the optimal parameter combination by iteratively updating the particle positions. The algorithm does not need to predefine the structural information of the topological network, and uses the adaptive resonance topological network to incrementally learn the distribution of the Pareto optimal solution set, providing neighborhood information for the iterative update of particles in the particle swarm algorithm, further guiding the update direction of the particle swarm, and then inputting the Pareto optimal solution in the particles after the updated position into the adaptive resonance topological network, so that the topological structure of the network is closer and closer to the distribution of the real Pareto optimal solution set with the iteration of the particle swarm, while ensuring the convergence of the multi-modal multi-objective algorithm and maintaining the exploration of the diversity of decision space solutions. After each generation of particles is iterated, duplicate particles are removed by comparing with the test data archive, and what is finally retained is the test data generated by the iteration, that is, the combination of aircraft interference variable values or system fault factor values that need to be tested. The present invention can use less test data and shorter test time to quickly find the interference variable value boundary that distinguishes the reliable and unreliable states of the aircraft under certain conditions where the number of tests is limited or the test cost is expensive.
[0007] In order to achieve the above object, the present invention adopts the following technical solution:
[0008] A method for generating multi-objective test data based on an adaptive resonance topology network comprises the following steps:
[0009] Step 1: Determine the interference variables affecting the flight state and their value ranges, and multiple indicators and their thresholds for determining the flight state;
[0010] Step 2: Convert the test problem into a multi-modal multi-objective black box optimization test problem and build an automatic test environment;
[0011] Step 3: Set the relevant parameters of the particle swarm optimization algorithm and initialize the particle swarm;
[0012] Step 4: Construct test data archive, test data set, external set, learning set and individual optimal set;
[0013] Step 5: input the learning set into the adaptive resonance topology network to update the topology structure of the adaptive resonance network;
[0014] Step 6: Update the particle swarm position according to the updated adaptive resonance network topology structure to generate new test data;
[0015] Step 7: Update the test data set, input the updated test data set into the automatic test environment, calculate the multi-objective function value, and update the test data file;
[0016] Step 8: Update the external set, learning set and individual optimal set according to the non-dominated relationship of the updated particles;
[0017] Step 9, repeat the updating process of the adaptive resonance network, particle swarm and external set until the termination condition is met;
[0018] The method of "determining the interference variables affecting the flight state and their value ranges and multiple indicators and their thresholds for judging the flight state" in step 1 is as follows: obtaining the interference variables that can affect the flight state according to the actual operating environment of the aircraft or human experience. D Disturbance Variables And the value range of each factor: , ,…, , such as the wind speed and direction of gusts encountered during flight. Then obtain the information that can reflect the change of flight status M Related indicators ; For example, altitude, speed, and angle of attack. These indicators can change with the influence of interference variables on the flight state. When one of the indicators reaches its threshold, the flight state changes from a reliable or safe state to an unreliable or unsafe state. The threshold of each indicator is determined by the relevant requirements for reliable and safe operation of the aircraft.
[0019] Among them, in step 2, "converting the test problem into a multi-modal multi-objective black-box optimization test problem and building an automatic test environment", the approach is as follows: first, the test problem needs to be converted into a multi-modal multi-objective black-box optimization test problem, without paying attention to the structure and control law of the aircraft to be tested, and only observing its output according to different inputs. The input is a combination of parameters of various interference variables or system failures encountered by the aircraft during flight, and the output is the index value of the flight state. The degree of interference or the occurrence of what kind of failure will cause the aircraft to be unreliable or unsafe is regarded as a black-box optimization test problem, and the optimization goal is set to make multiple flight state indicators approach their respective unreliable or unsafe thresholds at the same time, and the value of the interference variable is set as the decision space. A multi-modal multi-objective black-box optimization problem is constructed. Without loss of generality, this problem can be expressed as: ;in, F The function representing the closeness between the flight state and the unreliable state boundary, FThe smaller the value, the closer the flight status is to an unreliable state and is on the verge of abnormality. The flight status is determined by various flight status indicators. f (var) to determine, M represents the number of targets to be optimized, that is, the number of flight status indicators; var represents the decision space middle D dimensional vector, that is, D A vector consisting of interference variables or system failure factors. It should be noted that:
[0020] The decision space is the space composed of the value range of each variable in all decision variables; the target space is the space composed of mapping decision variables with a certain value range to the objective function.
[0021] Traditional multi-objective optimization problems only focus on finding the Pareto front distribution in the target space, without considering the diversity of solutions in the decision space. By constructing a multi-modal multi-objective black-box optimization problem, our optimization goal is not only to find a uniformly distributed Pareto front in the target space, but also to find multiple Pareto optimal solution sets corresponding to the Pareto front in the decision space, that is, different combinations of interference variable values. It should be noted that:
[0022] The Pareto optimal solution is defined as: for any two solutions and , if satisfied No better than in all goals Poor, and at least on one target Better than ,say Dominate When a solution is not dominated by any other solution, it is called a Pareto optimal solution. The Pareto optimal solution set is the set of these optimal solutions in the decision space, and the Pareto frontier is the projection of the Pareto solution set in the target space.
[0023] After constructing the multi-modal multi-objective black box optimization test problem, it is necessary to construct an automatic test environment. Since the flight scene of a real aircraft is difficult to construct and the test cost is high, the test scene of the present invention is constructed based on flight simulation software. The flight simulation software is used to simulate the scene when the real aircraft encounters similar interference or system failure during flight, reflecting the real-time changes of key flight parameters or indicators. The automatic test environment generally consists of three parts: a test control module, a test execution module, and a test result acquisition module. Among them, the test control module is responsible for obtaining the test data generated by the optimization algorithm, the test execution module inputs the test data into the system to execute the test, and the test result acquisition module collects the test results corresponding to each test data and feeds the results back to the optimization algorithm.
[0024] Among them, in step 3, "setting relevant parameters of particle swarm optimization algorithm" is described. To solve the multi-modal multi-objective problem mentioned in step 2, it is necessary to find the Pareto optimal solution set of the problem. The multi-modal multi-objective particle swarm optimization algorithm can be used to find the Pareto optimal solution set of the problem. The external interference variable parameter combination encountered by the aircraft Considered as D The particle position coordinates are updated by iteration, and new interference variable parameter combinations are continuously generated. These new interference variable combinations are test data. These test data are input into the test environment to obtain the corresponding aircraft state indicators under different interference conditions, and find the optimal interference variable parameter combination. The relevant parameters of the particle swarm optimization algorithm mainly include: the number of particles N , particle dimension D , inertia factor , learning factor and Particle Dimension D Corresponding to the number of disturbance variables or system failure factors in step 1, these parameters can be set according to the actual problem requirements, previous experience and some preliminary experiments.
[0025] The “initialization of particle swarm” described in step 3 is performed as follows: D The decision space of dimension 1 generates N particles by random selection and initializes the velocity of the i-th particle. and location ,in , , the position of the particle corresponds to the value of the interference variable combination during the flight.
[0026] Among them, the "test data file" described in step 4, TA It refers to the data archive used to store all the data that have been input into the simulation automatic test environment for testing. The test data is the interference variable parameter combination generated after the particle iteratively updates the position. The main function of the test data archive is to compare with the newly generated test data to prevent the same test data from being input into the automatic test environment again to avoid repeated testing; "test data set", TS Refers to the data set that will be input into the test environment for testing. The "external set, learning set and individual optimal set" are all used to store the Pareto optimal solution, that is, the combination of multiple indicator thresholds in the generated interference variable parameter combination that can make the aircraft closer to the critical state of reliability and unreliability; the external set EA is used to store all Pareto optimal solutions after each generation of particle swarm updates, and the learning set LS Used to store the Pareto optimal solution added to the external set of the previous iteration. Each particle has its own individual optimal set. The individual optimal set is used to store the Pareto optimal solution of each particle in all iterative updates.
[0027] Among them, the specific method of "constructing the test data archive, test data set, external set, learning set and individual optimal set" in step 4 is to establish an empty set of each archive and set in the initial stage before the algorithm starts to iterate, and then input all initialized particle positions into the test data archive, test data set, external set and learning set, that is, , , , , the position of each particle is input into its own individual optimal set, that is ,Later, as the particle swarm is updated, each archive and collection will also be updated.
[0028] Among them, the "adaptive resonance topological network" described in step 5 refers to a topological network constructed based on the adaptive resonance theory, which is composed of nodes and edges connecting the nodes. During its construction process, the data input into the network with high similarity are classified into the same node representation. The adaptive resonance topological network can incrementally learn the neighborhood characteristics of data distribution. The learning set after each generation of updates is input into the adaptive resonance topological network, and the adaptive resonance topological network is used to learn the distribution of the Pareto optimal solution set, thereby providing neighborhood information for better iterative updates of the particle swarm, so that the algorithm can find the Pareto optimal solution set more quickly, that is, the interference variable parameter combination of multiple indicator thresholds that can make the aircraft closer to the critical state of reliability and unreliability. The similarity of the input data in the adaptive resonance topological network is quantified by the correlation entropy induced measure (CIM). The input data is the new Pareto optimal solution generated after the particle swarm of this generation iteratively updates its position. The two input data and The relevant entropy induced metric calculation formula is: ;in, represents the kernel bandwidth of the Gaussian kernel, D represents the dimension of the input data, and the smaller the value of the correlation entropy induced measure is, the higher the similarity between the two input data is.
[0029] Among them, in step 5, "inputting the learning set into the adaptive resonance topology network to update the topology structure of the adaptive resonance network", the learning set is used to store the new Pareto optimal solution generated after the generation of particle swarm iteratively updates the position, that is, the interference variable parameter combination of multiple indicator thresholds that makes the aircraft closer to the critical state of reliability and unreliability. The construction and update process of the adaptive resonance topology network mainly includes the following steps:
[0030] (1) Initialization: In the initial stage of building the adaptive resonant topology network, since there are no nodes in the network, the first two data in the input network directly become nodes. The input data is the Pareto optimal solution in the learning set, that is, the interference variable parameter combination of multiple indicator thresholds that makes the aircraft closer to the critical state of reliability and unreliability. The generation of other new nodes needs to be determined by calculating the correlation entropy induced metric between the input data and the nodes. The calculation of the correlation entropy induced metric is affected by the kernel bandwidth. The kernel bandwidth is a data-dependent parameter that can be determined by the previous The data estimates are: ;in, is the kernel bandwidth of the dth dimension, represents the input to the adaptive resonance topology network The median of the array composed of the kernel bandwidth of each dimension is the kernel bandwidth of the node. .
[0031] (2) Winning node selection: When the data point When it is input into the adaptive resonance topology network, its relationship with the existing nodes is first calculated. The entropy-induced metric between , the winning node is selected according to the size of the relevant entropy induced metric value: , ;in, and Represents the index of the first and second winning nodes respectively, and the parameters Indicates the first winning node.
[0032] (3) Warning value test: The similarity between the data point and the first and second winning nodes can be expressed as: , ;in, Indicates the second winning node.
[0033] Compare the similarity with the predefined warning value By comparison, the relationship between data points and nodes can be divided into the following three cases:
[0034] 1) , this situation means that the similarity between the data point and the winning node is greater than the warning value, that is, the winning node does not match the data point. At this time, a new node needs to be generated. The new node is represented as: .
[0035] 2) , this case means that the data point matches the first winning node but not the second winning node.
[0036] 3) ,This case means that the data point matches the first and second winning nodes, and the node learning and edge connection ,process is performed.
[0037] (4) Node learning and edge connection:
[0038] When a data point matches a node, the node state is updated. If the first and second winning nodes meet condition 2), the position of the first winning node is updated by the following formula: ;in, Is a node The number of data points, each time a new data point matches a node , Updated by the following formula: ; When the first and second winning nodes meet condition 3), then the node and The update method is the same as that in case 2). If there is no edge connection between the first and second winning nodes, a new edge is generated to connect the first and second winning nodes. Neighbor nodes connected by edges Updated by the following formula: ;in, Indicates that it belongs to a node Through the above four steps, an adaptive resonance topological network consisting of nodes and edges connecting nodes can be constructed. This topological network can continuously update its number of nodes and node connection methods as new data is input, so as to more quickly and truly reflect the distribution of data. Here, the adaptive resonance topological network is used to learn the distribution of interference variable parameter combinations of multiple indicator thresholds that make the aircraft closer to the critical state of reliability and unreliability in the decision space, providing neighborhood information for the update of the particle swarm, so as to generate more such interference variable parameter combinations more quickly.
[0039] The method of "updating the particle swarm position according to the updated adaptive resonance network topology structure and generating new test data" in step 6 is as follows:
[0040] (1) Map the external set into the adaptive resonance topology network and find the node corresponding to the Pareto optimal solution in each external set.
[0041] (2) Map the particles to the adaptive resonance topology network, find the node to which each particle belongs, and then find the neighbor nodes of the node to which each particle belongs based on the adaptive resonance topology network.
[0042] (3) The Pareto optimal solutions of the external set of nodes to which each particle belongs and the neighboring nodes of the node together constitute the neighborhood solution set. The solutions in the neighborhood solution set are sorted according to the degree of crowding of the particle in the decision space and the function value corresponding to the particle in the target space. The first one in the ranking is the neighborhood optimal solution of the particle. .
[0043] (4) For the solutions in the individual optimal set of the particle, sort them according to the degree of crowding, and the one ranked first is the individual optimal solution of the particle. .
[0044] (5) Update the particle's velocity and position based on each particle's individual optimal solution and neighborhood optimal solution. The update formula is as follows: , ;in, Indicates Daidi The speed of a particle, Indicates Daidi The position of a particle, Indicates Daidi The speed of a particle, Indicates Daidi The position of a particle, and are two random variables in the range (0,1).
[0045] In the above steps, the first three steps are to use the constructed adaptive resonance topology network to provide neighborhood information for the particle swarm, that is, to find the neighborhood solution set of each particle. The neighborhood optimal solution contained in this solution set can guide the position update of each particle together with the individual optimal solution of each particle found in the fourth step, so that the particle can update its position in the direction of multiple indicator thresholds that make the aircraft closer to the critical state of reliability and unreliability. The new particle position is the test data generated by this round of iteration, that is, several combinations of values of interference variables that affect the flight state.
[0046] It should be noted that:
[0047] The decision space crowding distance refers to the indicator of the crowding degree between a particle and its neighboring particles in the decision space. The larger the crowding distance, the more dispersed the distribution of particles is, and the more diverse the solutions can be.
[0048] The target space crowding distance refers to the index of the crowding degree between the target function value of a particle and the function value of its neighboring particles in the target space. The larger the crowding distance, the more dispersed the distribution of the target function value of the particle, and the greater the diversity of the target space solution.
[0049] The “update test data set” described in step 7 is done as follows:
[0050] The previous generation test data set TS(t) Replace it with the updated particle position, find the intersection of the test data set and the solution in the test data file, then delete the intersection part in the test data set, and the remaining part is the updated test data set S(t+1) .
[0051] The method of "inputting the updated test data set into the automatic test environment to calculate the multi-objective function value" in step 7 is as follows:
[0052] The updated test data set is input into the automatic test environment, and the actual operation results of the test data are obtained through automatic test execution. That is, the value combinations of different flight interference factors or system failures are input into the flight simulation software, and the values of multiple flight status indicators under the influence of the interference or failure conditions are obtained. The result is used to calculate the multi-objective function value, that is, the absolute value of the difference between the multiple flight status indicator values and the corresponding flight status indicator unreliable threshold.
[0053] The method of “updating the test data file” in step 7 is as follows:
[0054] The current generation test data set after testing TS(t+1) Included in the previous generation test data archive TA(t) , you can get the updated test data file TA(t+1) . It represents all the interference variable parameter combinations that affect the flight state of the aircraft that have been input into the automatic test environment for testing up to this round of iteration.
[0055] Among them, the method of "updating the external set, learning set and individual optimal set according to the non-dominated relationship of the updated particles" in step 8 is as follows:
[0056] external set EA The updating process is as follows: merge all particles after the updated position into the external set, quickly sort the solutions in the external set, retain the Pareto optimal solution, and remove the dominated solution. The updated external set contains all the interference variable parameter combinations that make the aircraft closer to the critical state of reliability and unreliability so far in this round of iteration.
[0057] Study Sets LS The update process is: find the external set of this generation EA(t+1) Compared with the previous generation of external EA(t)The intersection of the two sets is then deleted, and the remaining solutions are the updated learning set. The updated learning set contains all the new interference variable parameter combinations that make the aircraft closer to the critical state of reliability and unreliability until this round of iteration.
[0058] Individual optimal set The updating process is as follows: merge each particle after the updated position into the individual optimal set of the particle, perform fast non-dominated sorting on the individual optimal set of each particle, retain the Pareto optimal solution, and remove the dominated solution. The updated individual optimal set contains the interference variable parameter combination of multiple indicator thresholds that make the aircraft closer to the critical state of reliability and unreliability in the historical position of the particle until this round of iteration.
[0059] Among them, the "repeat the updating process of the adaptive resonance network, particle swarm and external set until the termination condition is met" described in step 9 is as follows: as the position of the particle swarm is updated, the new learning set is input into the adaptive resonance topology network according to step 5, incremental learning is performed, and the topology structure of the adaptive resonance network is updated, and then according to steps 6-8, the particle position is updated, the new particle position is evaluated, the external set, the learning set and the individual optimal set are updated, and the iteration is continuously repeated until the termination condition is met. The termination condition is generally a specified number of iterations or the test data obtained meets a certain number.
[0060] It can be seen from the above technical solutions that the multi-target test data generation method based on the adaptive resonance topology network provided by the present invention has the following advantages compared with the prior art:
[0061] Firstly, the present invention regards the problem of finding the value of the interference variable that makes multiple flight status indicators reach the unreliable flight status threshold at the same time as a multimodal multi-objective black-box optimization test problem. Compared with the multi-objective black-box optimization test problem that only focuses on the diversity of target space solutions, the use of a multimodal multi-objective optimization algorithm to generate test data is able to pay attention to the diversity of decision space solutions while paying attention to the diversity of target space solutions, and more comprehensively find out all the interference variables or system failure factor combinations in the decision space that cause the aircraft to approach an unreliable flight state.
[0062] Secondly, the traditional multi-modal multi-objective particle swarm optimization algorithm based on self-organizing map (SOM), although its SOM network used to learn the distribution of Pareto optimal solutions is also composed of nodes and edges, it requires a predefined topological structure, including the number of nodes, the arrangement of nodes, and the connection relationship between the edges of nodes, so that the SOM network needs to have a certain understanding of the problem to be solved before construction, and when the SOM network solves some multi-modal multi-objective problems with discontinuous Pareto optimal solution sets, the network structure cannot be flexibly adjusted, and the trained network cannot reflect the distribution of the real Pareto optimal solution set. The connection relationship of the adaptive resonance topology network is gradually generated according to the input information, does not need to be predefined, and can more realistically reflect the neighborhood relationship based on learning updates. At the same time, compared with other incremental clustering methods, the adaptive resonance topology network has fewer parameters and converges faster.
[0063] Thirdly, the present invention uses the adaptive resonance theory to perform incremental clustering on the new non-dominated solutions iteratively generated by the particle swarm optimization algorithm, constructs and continuously updates the adaptive resonance topological network, so that the adaptive resonance topological network can more accurately reflect the distribution of the Pareto optimal solution set, and at the same time enables the particle swarm algorithm to in turn use the particle neighborhood information provided by the adaptive resonance topological network to update the particle position to generate more promising solutions, thereby further improving the topological structure of the adaptive resonance network.
[0064] In addition, the test data archive established by the present invention can be used to store all test data that have been input into the test environment for testing. Each time new test data is generated, the new test data is compared with the existing test data archive to avoid repeated testing and save test time, test resources and test costs.
[0065] Finally, the present invention regards the problem of reliable flight test of aircraft under interference conditions as a multimodal multi-objective black-box optimization test problem, and utilizes a multimodal multi-objective particle swarm optimization algorithm based on an adaptive resonance topology network to ensure the convergence of the algorithm while maintaining the exploration of the diversity of decision space solutions. It can quickly generate test data for the target task under the conditions of limited test times or expensive testing costs, using less test data and shorter testing time, and more quickly find the interference variable values that make multiple flight status indicators reach the unreliable flight status threshold at the same time, which is of great significance for ensuring the reliable and safe operation of the aircraft. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 A flowchart of the overall steps of the multi-objective test data generation method based on the adaptive resonance topology network provided by the present invention.
[0067] Figure 2 A flow chart of a method for generating multi-objective test data based on an adaptive resonance topology network provided by the present invention.
[0068] Figure 3 A schematic diagram of an automatic test environment in a multi-objective test data generation method based on an adaptive resonance topology network provided by the present invention.
[0069] Figure 4 A flow chart of constructing an adaptive resonance topology network in a multi-objective test data generation method based on an adaptive resonance topology network provided by the present invention.
[0070] Figure 5 The adaptive resonance topology network is constructed in the embodiment of the multi-objective test data generation method based on the adaptive resonance topology network provided by the present invention.
[0071] Figure 6 An aircraft flight status data graph corresponding to test data generated by the multi-objective test data generation method based on an adaptive resonance topology network provided by the present invention.
[0072] Figure 7 A test data graph generated by the multi-objective test data generation method based on an adaptive resonance topology network provided by the present invention.
[0073] Figure 8 The present invention provides an aircraft flight status data graph corresponding to the test data generated based on the random algorithm.
[0074] Fig. 9 This is a test data graph generated based on a random algorithm provided by the present invention. DETAILED DESCRIPTION
[0075] The present invention takes the specific scenario of an aircraft encountering gust interference during cruising as an example to disclose a multi-target test data generation method based on an adaptive resonance topology network. The method steps are as follows: Figure 1 The specific process of the method is as shown in Figure 2 The specific contents are as follows:
[0076] Step 1: Determine the interference variables affecting the flight status and their value ranges, as well as multiple indicators and their thresholds for judging the flight status.
[0077] In this embodiment, the interference variables affecting the flight state of the aircraft are mainly the horizontal angle between the gust and the flight direction and the gust speed. Generally speaking, the greater the gust speed, the greater the impact on the safe flight of the aircraft. The different horizontal angles between the gust and the flight direction have different impacts on the safe flight of the aircraft. In this embodiment, the horizontal angle between the gust and the flight direction has a value range of [0,180] (unit: degree), and the gust speed has a value range of [0,400] (unit: feet / second). In this embodiment, the indicators used to determine the flight state are altitude and angle of attack. When the aircraft altitude is too low, the strong airflow conversion in the troposphere will cause the aircraft to lose control, and the low-altitude meteorological conditions are complex, and it is easy to encounter extreme weather such as storms and lightning. In addition, it is easy to encounter bird strikes when flying at low altitudes; if the altitude changes too much in a short period of time during the flight, on the one hand, it will threaten the personal safety of passengers in the cabin, and on the other hand, the aircraft may enter the flight altitude layer of other aircraft, resulting in the risk of mid-air collision. When the aircraft's angle of attack is too large, it may cause risks such as aircraft stalling. According to the flight manual and the Civil Aviation Administration regulations, the maximum altitude change threshold in this embodiment is 100 feet, and the maximum angle of attack threshold is 19 degrees.
[0078] Step 2: Convert the test problem into a multi-modal and multi-objective black-box optimization test problem and build an automatic testing environment.
[0079] In this embodiment, since the aircraft itself has a certain stability and can withstand a certain degree of wind influence, and the aircraft has an automatic driving system that automatically corrects the aircraft's attitude and altitude, it is almost difficult to test and evaluate the situation in which the aircraft encounters gust interference, except for performing complex calculations or expensive wind tunnel experiments. The present invention converts this problem into a multi-modal multi-objective black box optimization test problem, without considering the aircraft structure and the control rate of the aircraft's automatic driving. The scenario in which the aircraft encounters gust interference is regarded as a black box, and only considers what kind of gust interference will cause changes in the flight altitude and angle of attack. The degree to which the flight altitude and angle of attack are close to their respective thresholds after the gust interference is set as the optimization target, and the gust direction and speed are interference variables that affect the flight altitude and angle of attack values. In this embodiment, since it is impossible to use a real flight environment to test the aircraft encountering gust interference, flight simulation software is used for testing, and the automatic test environment constructed is as follows: Figure 3As shown in the figure, the flight dynamics model JSBSim and the visual flight simulation software FlightGear are used for joint simulation. Through the test script, various gust variable combinations are input into the simulation test environment to obtain the aircraft flight altitude and angle of attack values under different interference conditions. JSBSim is an open source 6-DOF flight dynamics model that contains a complex flight physics / mathematical model and provides a realistic simulation of the complex dynamic interaction between the fuselage, propulsion system, atmosphere, aerodynamics and flight control. FlightGear can vividly display the motion state of the aircraft using its rich interfaces and 3D real-time display functions. Combining the characteristics of the two flight simulation software and using various pre-written scripts, the construction of a real-time automatic flight visual test environment can be realized.
[0080] The specific test environment is constructed as follows: Run the initialization script in JSBsim, and let the whole aircraft simulation model of Cessna 172 aircraft cruise at an altitude of 4000 feet at a speed of 100 feet per second, with a cruising angle of attack of 1 degree. At the same time, run the flight interference script, add gust interference at the 4th second of cruising, and the direction of the gust is in the range of [0,180] (unit: degree) of the horizontal angle with the flight direction, and the speed of the gust is in the range of [0,400] (unit: feet / second). Each time a set of parameter combinations within the value range is input, such as (30, 110), indicating that the horizontal angle between the gust and the aircraft's flight direction is 30°, and the wind speed is 110 feet per second. After 2 seconds of such gust interference, obtain the current flight altitude and angle of attack of the aircraft simulation model, reflecting the flight status of the aircraft after being disturbed by the gust, and then the round of simulation test ends. When testing the next set of gust direction and speed value combinations, it is necessary to reinitialize the test environment and restart the test. The range of values for the direction and speed of each set of gusts generated by the optimization algorithm later is a set of test data, which must be input into the environment through an automatic test script for testing to obtain the corresponding outputs of aircraft altitude and angle of attack values. These outputs are then used to calculate the fitness function of the optimization algorithm to further guide the generation of test data.
[0081] Step 3: Set the relevant parameters of the particle swarm optimization algorithm and initialize the particle swarm.
[0082] The multimodal multi-objective particle swarm optimization algorithm is used to solve the multimodal multi-objective black box optimization test problem mentioned in step 2. The direction and speed of the gusts that interfere with the flight state of the aircraft are regarded as the positions of the particles in the particle swarm algorithm. Through continuous iterative updates, new combinations of gust direction and speed are optimized and generated. First, set the particle swarm related parameters: number of particles N , particle dimension D , inertia factor , learning factor and Among them, the particle dimension D The number of interference variables in step one is 2, and the total number of particles N is crucial to the performance of the algorithm. If the number of particles is too small, the diversity of the population will be insufficient to fully cover the decision space, resulting in poor decision-making performance. On the contrary, if the population size is too large, it will consume too many computing resources. Therefore, it is necessary to select an appropriate total number of particles. This parameter needs to be set based on actual problem requirements, previous experience, and some preliminary experiments. In the experiment, we set the number of particles N to 10. The inertia factor w is the ability of the particle to maintain the state of motion at the previous moment. The learning factors c1 and c2 are mainly used to control the degree to which the particle is affected by individual cognition and social cognition. Usually, w takes the value of 0.7298, and c1 and c2 take the values of 2.05. Initialize the speed of each particle and location In this embodiment, the position of the particle represents the combination of interference variables. The two dimensions of the particle correspond to the direction and speed of the gust, so the value range of the first dimension of the particle is , the value range of the second dimension is , within these ranges, randomly generate the initial positions of 10 particles, for example: , the initial value range of the particle velocity is and , within these ranges, randomly generate the initial velocities of 10 particles, for example: .
[0083] Step 4: Construct the test data archive, test data set, external set, learning set and individual optimal set.
[0084] Test data archive ( TA ): used to store all the data files that have been input into the test environment for testing, that is, all the combinations of gust direction and speed values that have been input into the simulation test environment to test the flight status of the aircraft;
[0085] Test dataset ( TS ): used to store the data set to be input into the test environment for testing, that is, the value combination of gust direction and speed to be input into the simulation test environment to test the flight status of the aircraft;
[0086] external set ( ): used to store the set of all Pareto optimal solutions generated after each generation of particle swarm updates, that is, all the combinations of gust direction and speed that can make the aircraft closer to the critical height and angle of attack threshold of reliable and unreliable states until this round of iteration;
[0087] Learning set ( LS): used to store the set of Pareto optimal solutions added to the external set of the previous iteration, that is, the data to be input into the adaptive resonance topology network for incremental learning, that is, all the newly generated combinations of gust direction and speed values that can make the aircraft closer to the critical state of reliability and unreliability, height and angle of attack threshold, so far in this iteration; individual optimal set ( ): used to store the set of Pareto optimal solutions in all iterative updates of each particle, that is, the combination of gust direction and speed values that can make the aircraft close to the critical height and angle of attack threshold of reliable and unreliable states in the historical position of each particle so far in this round of iteration. In the initial stage, all initialized particle positions are input into the test data archive, test data set, external set and learning set, that is, , , , , the position of each particle is input into its own individual optimal set, that is , later, as the particle swarm is updated, the archives and collections will also be updated accordingly. It should be noted that:
[0088] The Pareto optimal solution is defined as: for any two solutions and , if satisfied No better than in all goals Poor, and at least on one target Better than ,say Dominate . When a solution is not dominated by any other solution, the solution is called a Pareto optimal solution. In this embodiment, the Pareto optimal solution is a combination of gust direction and speed values that simultaneously make the aircraft's altitude and angle of attack closer to the reliable and unreliable critical state thresholds. The more Pareto optimal solutions found, the more conducive it is to solving the multi-modal multi-objective black box optimization test problem mentioned in step 2.
[0089] Step 5: Input the learning set into the adaptive resonance topology network to update the topology structure of the adaptive resonance network.
[0090] An adaptive resonance topological network refers to a topological network built based on the adaptive resonance theory. It is composed of nodes and edges connecting the nodes. During its construction, the data input into the network with high similarity are grouped into the same node representation. The adaptive resonance topological network can incrementally learn the neighborhood characteristics of data distribution. The learning set after each generation of updates is input into the adaptive resonance topological network. The adaptive resonance topological network is used to learn the distribution of the Pareto optimal solution set, thereby providing neighborhood information for better iterative updates of the particle swarm, so that the algorithm can find the Pareto optimal solution set more quickly, that is, the combination of gust direction and speed values that can bring the aircraft closer to the altitude and angle of attack threshold of the critical state of reliability and unreliability. The similarity of data points is quantified by the correlation entropy induced measure (CIM). Two data points and The relevant entropy induced metric calculation formula is: ;in, represents the kernel bandwidth of the Gaussian kernel, D represents the dimension of the data point, and the smaller the value of the correlation entropy induced measure is, the higher the similarity between the two data points is.
[0091] The construction process of the adaptive resonance topology network is as follows: Figure 4 As shown, the specific method is as follows:
[0092] (1) Initialization: In the initial stage of building an adaptive resonant topology network, since there are no nodes in the network, the first two data points in the input network directly become nodes, and the generation of other new nodes needs to be determined by calculating the correlation entropy induced metric between the input data points and the nodes. The calculation of the correlation entropy induced metric is affected by the kernel bandwidth. The kernel bandwidth is a data-dependent parameter that can be determined by the previous The data points give an estimate of: ;in, is the kernel bandwidth of the dth dimension, represents the input to the adaptive resonance topology network The median of the array composed of the kernel bandwidth of each dimension is the kernel bandwidth of the node. .
[0093] (2) Winning node selection: When the data point When it is input into the adaptive resonance topology network, its relationship with the existing nodes is first calculated. The entropy-induced metric between , the winning node is selected according to the size of the relevant entropy induced metric value: , ,in, and Represents the index of the first and second winning nodes respectively, and the parameters Indicates the first winning node.
[0094] (3) Warning value test: The similarity between the data point and the first and second winning nodes can be expressed as: , ;in, Indicates the second winning node. By comparing the similarity with the predefined warning value, the relationship between the data point and the node can be divided into the following three cases:
[0095] 1) ; This situation means that the similarity between the data point and the winning node is greater than the warning value, that is, the winning node does not match the data point. At this time, a new node needs to be generated. The new node is represented as: .
[0096] 2) ; This situation means that the data point matches the first winning node but not the second winning node.
[0097] 3) ; This situation means that the data point matches the first and second winning nodes, and the node learning and edge connection process is performed.
[0098] (4) Node learning and edge connection:
[0099] When a data point matches a node, the node state is updated. If the first and second winning nodes meet condition 2), the position of the first winning node is updated by the following formula: ;in, Is a node The number of data points, each time a new data point matches a node , Updated by the following formula: ; When the first and second winning nodes meet condition 3), then the node and The update method is the same as that in case 2). If there is no edge connection between the first and second winning nodes, a new edge is generated to connect the first and second winning nodes. Neighbor nodes connected by edges Updated by the following formula: ;in, Indicates that it belongs to a node Through the above four steps, an adaptive resonance topological network consisting of j nodes and G edges connecting the nodes can be constructed. The topological network can continuously update the number of nodes and the node connection mode as new data is input, so as to more quickly and truly reflect the distribution of data. Here, the adaptive resonance topological network is used to learn the distribution of interference variable parameter combinations of multiple indicator thresholds that make the aircraft closer to the critical state of reliability and unreliability in the decision space, and provide neighborhood information for the update of the particle swarm, so as to generate more such interference variable parameter combinations more quickly. The adaptive resonance topological network finally automatically constructed in this embodiment is as follows: Figure 5 shown.
[0100] Step 6: Update the particle swarm position according to the updated adaptive resonance network topology structure and generate new test data, which mainly includes the following steps:
[0101] (1) External collection EA(t) Mapped to the adaptive resonance topology network, find the node corresponding to the Pareto optimal solution in each external set .
[0102] (2) Map the particles to the adaptive resonance topology network and find the node to which each particle belongs y , and then find the neighbor nodes of the node to which each particle belongs according to the adaptive resonance topology network .
[0103] (3) The Pareto optimal solutions of the external set of nodes to which each particle belongs and the neighboring nodes of the node together constitute the neighborhood solution set. The solutions in the neighborhood solution set are sorted according to the degree of crowding of the particle in the decision space and the function value corresponding to the particle in the target space. The first one in the ranking is the neighborhood optimal solution of the particle. .
[0104] (4) For the solutions in the individual optimal set of the particle, sort them according to the degree of crowding, and the one ranked first is the individual optimal solution of the particle. .
[0105] (5) Update the particle's velocity and position based on each particle's individual optimal solution and neighborhood optimal solution. The update formula is as follows: , ;in, Indicates Daidi The speed of a particle, Indicates Daidi The position of a particle, Indicates Daidi The speed of a particle, Indicates Daidi The position of a particle, and are two random variables in the range (0,1).
[0106] In the above steps, the first three steps are to use the constructed adaptive resonance topology network to provide neighborhood information for the particle swarm, that is, to find the neighborhood solution set of each particle. The neighborhood optimal solution contained in this solution set can guide the position update of each particle together with the individual optimal solution of each particle found in the fourth step, so that the particle can update its position in the direction of multiple indicator thresholds that make the aircraft closer to the critical state of reliability and unreliability. The new particle position is the test data generated by this round of iteration, that is, a combination of values of several gust directions and speeds that affect the flight state.
[0107] It should be noted that:
[0108] The decision space crowding distance refers to the indicator of the crowding degree between a particle and its neighboring particles in the decision space. The larger the crowding distance, the more dispersed the distribution of particles is, and the more diverse the solutions can be.
[0109] The target space crowding distance refers to the index of the crowding degree between the target function value of a particle and the function value of its neighboring particles in the target space. The larger the crowding distance, the more dispersed the distribution of the target function value of the particle, and the greater the diversity of the target space solution.
[0110] Step 7: Update the test data set, input the updated test data set into the automatic test environment, calculate the multi-objective function value, and update the test data file. The method is as follows: TS(t) Replace it with the updated particle position, find the intersection of the test data set and the solution in the test data file, then delete the intersection part in the test data set, and the remaining part is the updated test data set TS(t+1) .
[0111] The updated test data set is input into the automatic test environment built by JSBSim and FlightGear. The test data generated by the multimodal multi-objective particle swarm optimization algorithm based on the adaptive resonance topology network is mainly the value combination of the two variables of wind direction and wind speed. Each time a set of value combinations is input, the wind direction and wind speed values are modified at the corresponding positions in the flight script. The interference action time is fixed, and then JSBSim will solve the aircraft's flight attitude, altitude and other state information according to the flight script, and output the required state index value, that is, the altitude and angle of attack of the aircraft after the interference ends. The output index value is used to calculate the multi-objective function value, that is, the absolute value of the difference between the index and the index threshold. The smaller the absolute value of the difference, the closer the system state is to abnormality.
[0112] The current generation test data set after testing TS(t+1) Included in the previous generation test data archive TA(t) , you can get the updated test data file TA(t+1) . It indicates all the combinations of gust direction and speed that affect the flight status of the aircraft that have been input into the automatic test environment for testing up to this round of iteration.
[0113] Step 8: Update the external set, learning set and individual optimal set according to the non-dominated relationship of the updated particles. The steps are as follows:
[0114] external set EA The update process is as follows: all particles after the updated position are merged into the previous generation external set EA(t) In this process, the solutions in the external set are quickly non-dominated sorted, the Pareto optimal solutions are retained, and the dominated solutions are removed to obtain the external set of this generation. EA(t+1) The updated external set includes all combinations of gust direction and speed values that bring the aircraft closer to the critical threshold of reliable and unreliable states in this iteration.
[0115] Study Sets LS The update process is: find the external set of this generation EA(t+1) Compared with the previous generation of external EA(t) The intersection of the two sets is then deleted, and the remaining solutions are the updated learning set. LS(t+1) The updated learning set contains all the newly generated combinations of gust direction and speed values that make the aircraft closer to the critical height and angle of attack threshold between reliable and unreliable states so far in this iteration. Individual optimal set The update process is: each particle after updating the position The optimal set of individuals of the previous generation that are incorporated into this particle (t) In the process, the optimal individual set of each particle is quickly non-dominated sorted, the Pareto optimal solution is retained, and the dominated solution is removed to obtain the optimal individual set of this generation. t+1) The updated individual optimal set includes the gust direction and speed value combinations in the particle's historical position that make the aircraft closer to the altitude and angle of attack threshold of the reliable and unreliable critical state up to this round of iteration.
[0116] The updated external set, learning set and individual optimal set are used to guide the particle position update of the next round of iteration, that is, to guide the generation of the gust direction and speed value combination of the next round of iteration.
[0117] Step 9: Repeat the updating process of the adaptive resonance network, particle swarm and external set until the termination condition is met. The method is as follows:
[0118] As the position of the particle swarm is updated, the new learning set is input into the adaptive resonance topology network according to step five, incremental learning is performed, and the topology of the adaptive resonance network is updated. Then, according to steps six to eight, the particle position is updated, and the test data is input into the flight simulation automatic test environment to obtain the height and angle of attack values of the aircraft under the corresponding interference conditions, calculate the multi-objective function value, update the external set, the learning set and the individual optimal set, and continuously and iteratively generate test data, that is, different gust direction and speed value combinations, until the termination condition is met. In this embodiment, the termination condition is that the test data in the test data file meets the specified number of 500, that is, the test is terminated after 500 tests are performed in the flight simulation automatic test environment.
[0119] The test data generated by the multi-objective test data generation method based on the adaptive resonance topology network and the corresponding output values of the altitude and angle of attack obtained in the automatic test environment are as follows: Figure 6 and Figure 7 As shown, Figure 6 The horizontal axis represents the speed of the gust, and the vertical axis represents the direction of the gust. Figure 7 The horizontal axis represents the height of the aircraft, and the vertical axis represents the angle of attack of the aircraft. Since the initial cruising condition of the aircraft set in this embodiment is an altitude of 4000 feet, an angle of attack of 1 degree, a maximum altitude threshold of 100 feet, and a maximum angle of attack threshold of 19 degrees, the more flight states with altitudes between 3900 feet and 4000 feet and angles of attack between -20 degrees and 1 degree are tested, the more conducive it is to find a combination of gust direction and speed values that makes the aircraft close to the altitude and angle of attack threshold of the critical state of reliability and unreliability; Figure 7 The solid circle in the middle represents all flight status data in the flight status with an altitude between 3900 feet and 4000 feet and an angle of attack between -20 degrees and 1 degree, corresponding to Figure 6 In order to compare the distribution of the generated test data, this embodiment also uses a random algorithm to randomly generate 500 sets of gust angle and gust speed value combinations in the range of [0,180] (unit: degree) between the horizontal angle between the gust and the flight direction and the gust speed in the range of [0,400] (unit: feet / second), such as Figure 8 As shown, it is input into the automatic test environment to obtain the corresponding aircraft flight status, such as Fig. 9 Similarly, Fig. 9 The solid circles represent all the flight status data in the flight status with altitude between 3900 feet and 4000 feet and angle of attack between -20 degrees and 1 degree. Figure 8The solid circles in the figure represent the test data that achieve this flight state, that is, the corresponding combination of gust direction and speed values. By comparison, it can be seen that for the same 500 sets of test data, the test data generated by the multi-target test data generation method based on the adaptive resonance topology network can find more combinations of gust direction and speed values that make the aircraft close to the critical state of reliability and unreliability, compared with the test data generated by the random algorithm. The specific statistical data is that there are 142 test data generated by the multi-target test data generation method based on the adaptive resonance topology network that can make the flight state with an altitude of 3900 feet to 4000 feet and an angle of attack of -20 degrees to 1 degree, while there are only 84 such data in the test data generated by the random algorithm. Obviously, the test data generated by the multi-target test data generation method based on the adaptive resonance topology network can find more combinations of gust direction and speed values that make the aircraft close to the critical state of reliability and unreliability, and the test data obtained near the index threshold are more concentrated, which greatly improves the test efficiency and has certain significance for improving the reliability and safety of aircraft flight.
Claims
1. A multi-objective test data generation method based on an adaptive resonance topology network, characterized in that: The steps include: Step 1: determine the interference variables affecting the flight state and their value ranges, and multiple indicators and their thresholds for judging the flight state; Step 2: Convert the test problem into a multi-modal multi-objective black-box optimization test problem and build an automatic test environment; ignore the structure and control law of the aircraft to be tested, and only observe its output according to different inputs. The input is a combination of parameters of various interference variables or system failures encountered by the aircraft during flight, and the output is the index value of the flight state. The degree of interference or the occurrence of what kind of failure will cause the aircraft to be unreliable or unsafe is regarded as a black-box optimization test problem. Set the optimization goal as making multiple flight state indicators approach their respective unreliable or unsafe thresholds at the same time, and set the value of the interference variable as the decision space; The automatic test environment consists of three parts: test control module, test execution module and test result collection module; Step 3: Set the relevant parameters of the particle swarm optimization algorithm and initialize the particle swarm; the relevant parameters of the particle swarm optimization algorithm include: number of particles N, particle dimension D, inertia factor w, learning factors c1 and c2; Step 4: Construct the test data archive TA, test data set TS, external set EA, learning set LS and individual optimal set Pbest i ; Step 5: Input the learning set into the adaptive resonance topology network to update the topology of the adaptive resonance network. The similarity of the input data in the adaptive resonance topology network is quantified by the correlation entropy induced metric CIM. The input data is the new Pareto optimal solution generated after the particle swarm iteratively updates its position. The two input data a = (a1, a2, ..., a D ) and b=(b1,b2,...,b D ) is calculated as: Among them, σ represents the kernel bandwidth of the Gaussian kernel, D represents the dimension of the input data, and the smaller the value of the correlation entropy induced measure is, the higher the similarity between the two input data is; Step 6: Update the particle swarm position according to the updated adaptive resonance network topology structure to generate new test data; including: (1) Map the external set to the adaptive resonance topology network and find the node corresponding to the Pareto optimal solution in each external set; (2) Mapping the particles to the adaptive resonance topology network, finding the node to which each particle belongs, and then finding the neighbor nodes of the node to which each particle belongs based on the adaptive resonance topology network; (3) The Pareto optimal solutions of the external set of nodes to which each particle belongs and the neighboring nodes of the node together constitute the neighborhood solution set. The solutions in the neighborhood solution set are sorted according to the degree of crowding of the particle in the decision space and the function value corresponding to the particle in the target space. The first one in the ranking is the neighborhood optimal solution of the particle. (4) The solutions in the individual optimal set of the particle are sorted according to the degree of crowding, and the first one in the ranking is the individual optimal solution of the particle. (5) Update the particle's velocity and position based on each particle's individual optimal solution and neighborhood optimal solution; Step 7: Update the test data, input the updated test data set into the automatic test environment, calculate the multi-objective function value, and update the test data file; replace the previous generation test data set TS(t) with the updated particle position, calculate the intersection of the test data set and the solution in the test data file, and then delete the intersection part in the test data set. The remaining part is the updated test data set TS(t+1); Step 8: Update the external set, learning set and individual optimal set according to the non-dominated relationship of the updated particles; Step 9, repeat the updating process of the adaptive resonance network, particle swarm and external set until the termination condition is met; Among them, in step 5, the learning set is used to store the new Pareto optimal solution generated after the particle swarm iteratively updates the position, which makes the aircraft closer to the interference variable parameter combination of multiple indicator thresholds of the critical state of reliability and unreliability. The construction and update process of the adaptive resonance topology network includes the following steps: (1) Initialization: In the initial stage of building the adaptive resonant topology network, since there are no nodes in the network, the first two data in the input network directly become nodes. The input data is the Pareto optimal solution in the learning set, that is, the interference variable parameter combination of multiple indicator thresholds that makes the aircraft closer to the critical state of reliability and unreliability. The generation of other new nodes needs to be determined by calculating the correlation entropy induced metric between the input data and the nodes. The calculation of the correlation entropy induced metric is affected by the kernel bandwidth σ, which is a data-related parameter estimated by the first H data in the input network: Among them, σ d is the kernel bandwidth of the dth dimension, S d It represents the sample standard deviation of the dth dimension of the H data points input into the adaptive resonance topology network. The median of the array composed of the kernel bandwidth of each dimension is the kernel bandwidth σ of the node. (2) Winning node selection: When the data point x i =(x i 1 ,x i 2 ,...,x i D ) is input into the adaptive resonance topology network, firstly, its relationship with the existing nodes Y = {y1, y2, ..., y j }, where y j =(y j 1 ,y j 2 ,...,y j D ), the winning node is selected according to the size of the relevant entropy induced metric: Among them, w1 and w2 represent the indexes of the first and second winning nodes respectively, and the parameters represents the first winning node; (3) Warning value test: The similarity between the data point and the first and second winning nodes is expressed as: in, represents the second winning node; The similarity is compared with the predefined warning value V, and the relationship between the data point and the node is divided into the following three cases: 1) The similarity between the data point and the winning node is greater than the warning value, that is, the winning node does not match the data point. At this time, a new node needs to be generated. The new node is represented as: and j+1 =x i 2) The data point matches the first winning node but not the second winning node; 3) The data point is matched with the first and second winning nodes, and the node learning and edge connection process is performed; (4) Node Learning and Edge Connection When a data point matches a node, the node state is updated. If the first and second winning nodes meet condition 2), the position of the first winning node is updated by the following formula: in, Is a node The number of data points, each time a new data point matches a node Updated by the following formula: When the first and second winning nodes meet condition 3), then the node and The update method is the same as that in case 2). If there is no edge connection between the first and second winning nodes, a new edge is generated to connect the first and second winning nodes. Neighbor nodes y connected by edges neighbor Updated by the following formula: Among them, M neighbor Indicates that it belongs to node y neighbor The number of data points.
2. The method for generating multi-objective test data based on an adaptive resonance topology network according to claim 1, characterized in that: In step 1, according to the actual operating environment of the aircraft, D interference variables var1, var2, ..., var that can affect the operating state of the aircraft are obtained. D ; Among them, var1∈[var 1min ,var 1max ],var2∈[var 2min ,var 2max ],…,var D ∈[var Dmin ,var Dmax ]; then obtain M related indicators {obj1, obj2, ..., obj M }; When one of the indicators reaches its threshold, the flight state changes from a reliable or safe state to an unreliable or unsafe state. The threshold of each indicator is determined by the relevant requirements for reliable and safe operation of the aircraft.
3. The method for generating multi-objective test data based on an adaptive resonance topology network according to claim 1, characterized in that: In step 2, a multimodal multi-objective black-box optimization problem is constructed. Without loss of generality, the problem is expressed as: My F(var)={f1(var),f2(var),....,f M (where)} stvar=(var1,var2,...,var D )∈Ω Among them, F represents the function of the proximity between the flight state and the boundary of the unreliable state. The smaller the value of F, the closer the flight state is to the unreliable state and is on the verge of abnormality. The flight state is determined by various flight state indicators f(var). M represents the number of targets to be optimized, that is, the number of flight state indicators; var represents the D-dimensional vector in the decision space Ω, that is, the vector composed of D interference variables or system failure factors.
4. The method for generating multi-objective test data based on an adaptive resonance topology network according to claim 1, characterized in that: In step 2, the test control module is responsible for obtaining the test data generated by the optimization algorithm, the test execution module inputs the test data into the system to execute the test, and the test result acquisition module collects the test results corresponding to each test data and feeds the results back to the optimization algorithm.
5. The method for generating multi-objective test data based on an adaptive resonance topology network according to claim 1, characterized in that: In step 3, N particles are randomly generated in the D-dimensional decision space, and the velocity V of the i-th particle is initialized. i and position X i , where V i =(V i 1 ,V i 2 ,...,V i D ), X i =(var i 1 ,var i 2 ,...,var i D ), the position of the particle corresponds to the value of the interference variable combination during the flight.
6. The method for generating multi-objective test data based on an adaptive resonance topology network according to claim 1, characterized in that: In step 4, at the initial stage before starting the iteration, an empty set of each archive and set is established, and then all initialized particle positions are input into the test data archive, test data set, external set and learning set, that is, TA = {X1, X2, ..., X i ,...,X N }, TS={X1,X2,...,X i ,...,X N }, EA={X1,X2,...,X i ,...,X N }, LS={X1,X2,...,X i ,...,X N }, the position of each particle is input into its own individual optimal set, that is, Pbest1={X1}, Pbest2={X2}, ..., Pbest i ={X i },...,Pbest N ={X N }, as the particle swarm is updated, the archives and collections will also be updated.
7. The method for generating multi-objective test data based on an adaptive resonance topology network according to claim 1, characterized in that: In step 6, the update formula is as follows: X i (t+1)=X i (t)+V i (t+1) Among them, V i (t+1) represents the velocity of the ith particle in the t+1th generation, X i (t+1) represents the position of the i-th particle in the t+1th generation, V i (t) represents the velocity of the ith particle of the tth generation, X i (t) represents the position of the i-th particle of the t-th generation, r1 and r2 are two random variables in the range of (0,1).
8. The method for generating multi-objective test data based on an adaptive resonance topology network according to claim 1, characterized in that: In step 7, the updated test data set is input into the automatic test environment, and the actual operation result of the test data is obtained through automatic test execution, that is, the value combination of different flight interference factors or system failures is input into the flight simulation software, and the values of multiple flight status indicators under the influence of the interference or failure conditions are obtained. The result is used to calculate the multi-objective function value, that is, the absolute value of the difference between the multiple flight status indicator values and the corresponding flight status indicator unreliable threshold value; The tested data set TS(t+1) of this generation is added to the test data file TA(t) of the previous generation, that is, the updated test data file TA(t+1) is obtained; it represents all the interference variable parameter combinations that affect the flight state of the aircraft that have been input into the automatic test environment for testing up to this round of iteration.
9. The method for generating multi-objective test data based on an adaptive resonance topology network according to claim 1, characterized in that: In step 8, The updating process of the external set EA is as follows: all particles after the position update are merged into the external set, the solutions in the external set are quickly non-dominated sorted, the Pareto optimal solutions are retained, and the dominated solutions are removed; The updated external set includes all interference variable parameter combinations that make the aircraft closer to multiple indicator thresholds of the critical state of reliability and unreliability until this round of iteration; The updating process of the learning set LS is as follows: find the intersection of the external set EA(t+1) of this generation and the external set EA(t) of the previous generation, and then delete the solutions of the intersection part in the external set of this generation. The remaining solutions are the updated learning set; the updated learning set contains all the new interference variable parameter combinations of multiple indicator thresholds that make the aircraft closer to the critical state of reliability and unreliability until this round of iteration; Individual optimal set Pbest i The updating process is as follows: each particle after the updated position is incorporated into the individual optimal set of the particle, the individual optimal set of each particle is quickly non-dominated sorted, the Pareto optimal solution is retained, and the dominated solution is removed; the updated individual optimal set contains the interference variable parameter combination of multiple indicator thresholds that make the aircraft closer to the critical state of reliability and unreliability in the historical position of the particle up to this round of iteration.
Citation Information
Patent Citations
Design method of resonance frequency of circular microstrip antenna
CN104680235A
Software test data generation method based on software network
CN114020647A
