Simulation model testing method and device based on model concept, equipment and medium
Through the simulation model testing method for specific fields, the analysis and design of test cases for different situations, combined with the model concept description, solve the problems of inaccurate model performance and high consumption of evaluation resources in the existing technology, and realize a more efficient simulation model. Test and evaluate.
Patent Information
- Application Number
- CN202410389003.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-01
- Publication Date
- 2024-08-23
AI Technical Summary
Existing simulation model testing methods are too general and fail to fully consider the concepts and environmental dynamics of specific fields. As a result, the model performance cannot accurately reflect the actual situation, and the evaluation process requires a lot of time and resources, limiting the number of people who can participate in the evaluation.
By obtaining the test input of the simulation model test system, analyze the status of the model to be tested in specific scenarios, design test cases for different situations, and conduct testing and evaluation based on the model concept description to ensure the accuracy and adaptability of the model in specific fields.
It improves the accuracy, real-time and reliability of the simulation model, can better reflect the needs and characteristics of specific fields, and supports the evaluation and decision-making planning of complex scenarios.
Smart Images

Figure CN118535450A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of simulation model testing, and in particular to a simulation model testing method, device, equipment and medium based on a model concept. Background Art
[0002] Simulation model testing is a critical process used to evaluate and verify the accuracy and feasibility of simulation models in various fields to ensure that simulation models can provide reliable information support for decision-making, training and planning. Its background is wide, including aerospace, medical, urban planning, commerce and industry. Generally speaking, simulation model testing generally includes the following steps: determine the functional description of the model to be tested; design the corresponding test cases based on the functional description; configure and implement the corresponding test cases, conduct tests and evaluate the results.
[0003] Existing model testing methods can ensure the accuracy and reliability of models by generating test cases for model testing and verification. However, existing methods are too general and do not take into account the concepts and applications of specific fields, which may result in the performance of the model in a specific environment not accurately reflecting the actual situation. In addition, the dynamic nature of the environment requires that the model can be updated and adapted in real time to cope with rapidly changing situations, and traditional testing methods are usually unable to provide this real-time performance. In addition, the performance of existing model tests may involve a large amount of data collection and analysis, which usually requires a lot of time and resources. Evaluators usually need to have a deep understanding of specific fields to correctly evaluate the model, which may limit the people who can participate in the evaluation. Summary of the invention
[0004] Based on this, it is necessary to provide a simulation model testing method, device, equipment and medium based on model concepts that can fully utilize conceptual knowledge related to a specific field to improve the accuracy and adaptability of the simulation model in response to the above technical problems.
[0005] A simulation model testing method based on a model concept, the method comprising:
[0006] Obtain test input of the simulation model test system that is actually running, and analyze the state of the model to be tested in a specific scenario through the test input to obtain test information of the model to be tested;
[0007] Based on the test information and the model concept description of the model to be tested, design multiple test cases that can test the action processing of the model to be tested in different situations;
[0008] In the simulation model testing system, the model to be tested is tested according to each test case, and the test results are obtained for evaluation and analysis to complete the test process of the model to be tested.
[0009] In one embodiment, the test input includes resource files of the model to be tested, test instructions, and related supporting resource files for the model test.
[0010] In one embodiment, the state of the model to be tested in a specific scenario is analyzed through the test input to obtain test information of the model to be tested, including:
[0011] Through the resource files of the model to be tested, test instructions and related supporting resource files of the model test, the state of the model to be tested in a specific scenario is analyzed to obtain the test items, test background information and test assumptions of the model to be tested.
[0012] In one embodiment, testing the hypothesis includes:
[0013] It is assumed that the cognitive bias of the models to be tested when taking action is not taken into account, that is, it is assumed that all the models to be tested can correctly understand and execute according to the characteristics and requirements of the corresponding actions;
[0014] It is assumed that all the models under test can correctly identify and execute the direction, route, destination, and actions after arrival of basic actions;
[0015] It is assumed that the information required for the basic actions can be correctly acquired and recognized by all the models under test.
[0016] In one embodiment, based on the test information and in combination with the model concept description of the model to be tested, multiple test cases are designed that can respectively test the action processing of the model to be tested in different situations, including:
[0017] According to the test items, test background information and test assumptions of the model to be tested, and combined with the processing logic of the model to be tested in different situations described in the model concept description, design multiple test cases that can test the action processing of the model to be tested in different situations.
[0018] In one of the embodiments, the situations encountered by the model to be tested include: encountering other model entities during the action; discovering obstacles on or near the action route; the action route is damaged or incomplete; encountering force majeure during the action; and receiving other instructions during the action.
[0019] A simulation model testing device based on a model concept, the device comprising:
[0020] The test input analysis module is used to obtain the test input of the simulation model test system that is actually running, and to analyze the state of the model to be tested in a specific scenario through the test input to obtain the test information of the model to be tested;
[0021] A test case design module is used to design multiple test cases that can test the action processing of the model under test in different situations according to the test information and the model concept description of the model under test;
[0022] The model test evaluation module is used to test the model to be tested according to each test case in the simulation model test system, obtain the test results for evaluation and analysis, and complete the test process of the model to be tested.
[0023] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0024] Obtain test input of the simulation model test system that is actually running, and analyze the state of the model to be tested in a specific scenario through the test input to obtain test information of the model to be tested;
[0025] Based on the test information and the model concept description of the model to be tested, design multiple test cases that can test the action processing of the model to be tested in different situations;
[0026] In the simulation model testing system, the model to be tested is tested according to each test case, and the test results are obtained for evaluation and analysis to complete the test process of the model to be tested.
[0027] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0028] Obtain test input of the simulation model test system that is actually running, and analyze the state of the model to be tested in a specific scenario through the test input to obtain test information of the model to be tested;
[0029] Based on the test information and the model concept description of the model to be tested, design multiple test cases that can test the action processing of the model to be tested in different situations;
[0030] In the simulation model testing system, the model to be tested is tested according to each test case, and the test results are obtained for evaluation and analysis to complete the test process of the model to be tested.
[0031] Compared with the traditional simulation model testing method, the above-mentioned simulation model testing method based on model concept analyzes the state of the model to be tested in a specific scenario according to the test input, can accurately reflect the real-time dynamic situation of the model to be tested and provide test information of the model to be tested, and by analyzing and utilizing the model concept description of the specific field involved in the model to be tested to design and implement specific test cases, it can cover most of the scenarios of the model to be tested under normal action logic and special situation handling logic. Combining the model concept description of the specific field with the simulation model test can ensure that the test method can better reflect the needs and characteristics of the specific field, thereby improving the accuracy, real-time, reliability and adaptability of the simulation model, and realizing support for a variety of complex scenarios. In addition, this method also helps to evaluate whether the model to be tested can accurately reflect the scenario in which the specific model is located, and provides useful information to support subsequent decision-making and planning. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of a flow chart of a simulation model testing method based on a model concept in one embodiment;
[0033] Figure 2 A flowchart of the action processing logic of the model to be tested described in the model concept description in one embodiment;
[0034] Figure 3 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0036] In one embodiment, Figure 1 As shown, a simulation model testing method based on a model concept is provided, comprising the following steps:
[0037] Step S1, obtaining a test input of a simulation model test system that is actually running, and analyzing the state of the model to be tested in a specific scenario through the test input to obtain test information of the model to be tested.
[0038] The test input includes the resource files of the model to be tested, the test instructions, and the related supporting resource files of the model test. The state of the model to be tested in a specific scenario can be analyzed through the resource files of the model to be tested, the test instructions, and the related supporting resource files of the model test, and the test items, test background information, and test assumptions of the model to be tested can be obtained.
[0039] Specifically, the test items represent the basic action functions of the models to be tested. Test assumptions include assuming that the cognitive bias of the models to be tested when taking action is not taken into account, that is, assuming that all models to be tested can correctly understand and execute according to the characteristics and requirements of the corresponding actions; assuming that all models to be tested can correctly identify and execute the direction, route, destination, and actions after arrival of the basic actions; assuming that the information required for the basic actions can be correctly obtained and recognized by all models to be tested. Through the relevant supporting resource files of the model test, the environmental information of the model to be tested can be specifically analyzed and judged, and a reasonable basic action function design can be made.
[0040] Step S2, designing a plurality of test cases that can respectively test the action processing of the model under test in different situations according to the test information and in combination with the model concept description of the model under test.
[0041] Specifically, according to the test items, test background information and test assumptions of the model to be tested, and combined with the processing logic of the model to be tested in different situations described in the model concept description, multiple test cases are designed that can test the action processing of the model to be tested in different situations. Among them, the situations encountered by the model to be tested include: encountering other model entities during the action; discovering obstacles on or near the action route; the action route is damaged or incomplete; encountering force majeure during the action; receiving other instructions during the action. Among them, the processing logic of the model to be tested in different situations described in the model concept description is as follows: Figure 2 shown.
[0042] It can be understood that this application makes full use of the model concept knowledge related to a specific field in the simulation model testing process, designs corresponding test cases based on the action processing of the model under test in different situations to cover the test completeness of the model, thereby improving the accuracy and adaptability of the simulation model.
[0043] Step S3, testing the model to be tested according to each test case in the simulation model testing system, obtaining the test results for evaluation and analysis, and completing the test process of the model to be tested.
[0044] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0045] In one embodiment, a simulation model testing device based on a model concept is provided, comprising:
[0046] The test input analysis module is used to obtain the test input of the simulation model test system that is actually running, and to analyze the state of the model to be tested in a specific scenario through the test input to obtain the test information of the model to be tested;
[0047] A test case design module is used to design multiple test cases that can test the action processing of the model under test in different situations according to the test information and the model concept description of the model under test;
[0048] The model test evaluation module is used to test the model to be tested according to each test case in the simulation model test system, obtain the test results for evaluation and analysis, and complete the test process of the model to be tested.
[0049] For the specific definition of the simulation model testing device based on the model concept, please refer to the definition of the simulation model testing method based on the model concept in the above text, which will not be repeated here. Each module in the above-mentioned simulation model testing device based on the model concept can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0050] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 3As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a simulation model testing method based on a model concept is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0051] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0052] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0053] Obtain test input of the simulation model test system that is actually running, and analyze the state of the model to be tested in a specific scenario through the test input to obtain test information of the model to be tested;
[0054] Based on the test information and the model concept description of the model to be tested, design multiple test cases that can test the action processing of the model to be tested in different situations;
[0055] In the simulation model testing system, the model to be tested is tested according to each test case, and the test results are obtained for evaluation and analysis to complete the test process of the model to be tested.
[0056] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0057] Obtain test input of the simulation model test system that is actually running, and analyze the state of the model to be tested in a specific scenario through the test input to obtain test information of the model to be tested;
[0058] Based on the test information and the model concept description of the model to be tested, design multiple test cases that can test the action processing of the model to be tested in different situations;
[0059] In the simulation model testing system, the model to be tested is tested according to each test case, and the test results are obtained for evaluation and analysis to complete the test process of the model to be tested.
[0060] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0061] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0062] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A simulation model testing method based on model concept, characterized in that: The method comprises: Obtaining a test input of a simulation model test system that is actually running, and analyzing the state of the model to be tested in a specific scenario through the test input to obtain test information of the model to be tested; According to the test information and in combination with the model concept description of the model to be tested, design multiple test cases that can respectively test the action processing of the model to be tested in different situations; In the simulation model testing system, the model to be tested is tested according to each test case respectively, and the test results are obtained for evaluation and analysis to complete the test process of the model to be tested.
2. The method according to claim 1, characterized in that The test input includes the resource files of the model to be tested, the test instructions and the related supporting resource files of the model test.
3. The method according to claim 2, characterized in that Analyzing the state of the model to be tested in a specific scenario through the test input to obtain test information of the model to be tested, including: The state of the model to be tested in a specific scenario is analyzed through the resource files of the model to be tested, the test instructions and the related supporting resource files of the model test, and the test items, test background information and test assumptions of the model to be tested are obtained.
4. The method according to claim 3, characterized in that The test assumptions include: It is assumed that the cognitive bias of the models to be tested when taking action is not taken into account, that is, it is assumed that all the models to be tested can correctly understand and execute according to the characteristics and requirements of the corresponding actions; It is assumed that all the models under test can correctly identify and execute the direction, route, destination, and actions after arrival of basic actions; It is assumed that the information required for the basic actions can be correctly acquired and recognized by all the models under test.
5. The method according to claim 3, characterized in that: According to the test information and in combination with the model concept description of the model to be tested, multiple test cases are designed that can respectively test the action processing of the model to be tested in different situations, including: According to the test items, test background information and test assumptions of the model to be tested, and combined with the processing logic of the model to be tested in different situations described in the model concept description, multiple test cases are designed that can respectively test the action processing of the model to be tested in different situations.
6. The method according to claim 5, characterized in that The situations encountered by the model to be tested include: encountering other model entities during the action; discovering obstacles on or near the action route; the action route is damaged or incomplete; encountering force majeure during the action; and receiving other instructions during the action.
7. A simulation model testing device based on model concept, characterized in that: The device comprises: A test input analysis module is used to obtain the test input of the simulation model test system that is actually running, and to analyze the state of the model to be tested in a specific scenario through the test input to obtain the test information of the model to be tested; A test case design module, used to design a plurality of test cases capable of respectively testing the action processing of the model to be tested in different situations according to the test information and in combination with the model concept description of the model to be tested; The model test evaluation module is used to test the model to be tested according to each test case in the simulation model test system, and obtain the test results for evaluation and analysis to complete the test process of the model to be tested.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
