Automatic deduction control method, device and equipment for simulation deduction model
By setting automatic pause conditions in the simulation deduction model, the inaccurate and cumbersome simulation deduction problems caused by manual control in the existing technology are solved, and automated simulation deduction control is realized, improving user experience and efficiency.
Patent Information
- Application Number
- CN202510504026.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-22
- Publication Date
- 2025-07-18
AI Technical Summary
In the existing simulation deduction technology, the pause function relies on manual control, which makes it impossible to accurately record the simulation status before pause, and cannot seamlessly restore the simulation process, and user interaction is inconvenient, the control process is cumbersome and the experience is poor.
By setting the deduction pause conditions on the visual interactive interface, generating state conditions, step conditions, deduction result conditions and instance conditions, automatically judge and pause simulation deduction, displaying the pause status and results, and supporting automatic control of simulation deduction.
Simulation deduction is realized without manual control, improving user interaction convenience and accuracy of simulation control, and improving the efficiency and user satisfaction of simulation deduction.
Smart Images

Figure CN120337578A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of simulation technology. Specifically, it relates to an automatic deduction control method, device, and equipment for a simulation deduction model. Background Art
[0002] The pause technology is a crucial function that enables users to flexibly interrupt the process during the simulation run for necessary analysis, adjustment, or status recording. The following are the steps of the current pause technology solution in modeling and simulation deduction:
[0003] First, regarding the implementation method of the pause function, most simulation software or systems have built-in specific control instructions. These instructions give users the ability to pause, resume, accelerate, or decelerate the simulation process at any time during the simulation. For example, in advanced simulation tools like DELMIA, users can, through a simple click operation, select the "Create a Pause Activity" command in the simulation activity creation toolbar, and then select the insertion point in the process list to easily create a pause node. When the simulation runs to this node, the entire simulation process will immediately stop, waiting for the user's next operation instruction to resume.
[0004] The pause function has extremely wide applications in the simulation process. It provides users with an opportunity to deeply analyze the simulation state, verify the simulation results, or capture specific event moments. Whether it is in debugging the simulation model, confirming the accuracy of simulation data, or in cases where a specific simulation stage needs to be detailedly recorded, the pause function can play a key role. In addition, for the simulation of equipment with moving mechanisms, the pause function is also applicable. Users only need to connect the pause node in parallel with the simulation process node of the moving equipment to achieve precise control of the equipment operation.
[0005] However, by manually monitoring the simulation deduction process in real time on the visual monitoring interface, achieving manual click pause at a certain state cannot control the pause of the simulation model meticulously and in a timely manner. As a result, the current pause for the simulation model cannot accurately record the simulation state before the pause, nor can it seamlessly continue the previous process when resuming the simulation under the user's instruction. At the same time, during the deduction process, manual participation is necessary, and it is impossible to perform simulation deduction control without humans; moreover, the convenience of user interaction is not considered, resulting in a cumbersome implementation process of simulation control and a poor experience. Summary of the Invention
[0006] The purpose of the embodiments of this application is to provide an automatic deduction control method, device, and equipment for a simulation deduction model, which solves the above problems existing in the prior art, realizes simulation deduction in a scenario without humans, and further realizes full-automatic simulation deduction control of the simulation deduction model.
[0007] In a first aspect, the present invention provides an automatic deduction control method for a simulation deduction model, the method comprising:
[0008] In response to a user's operation of setting deduction pause conditions for a target simulation deduction model on a visual interaction interface, generating at least one deduction pause condition; wherein, the target simulation deduction model is constructed by using an object-oriented modeling method based on a system engineering modeling language, and is used for performing dynamic simulation deduction of system engineering by defining objects and the interaction process between objects;
[0009] During the simulation deduction process of the target simulation deduction model, if the target simulation deduction model satisfies any deduction pause condition, controlling the target simulation deduction model to pause the simulation deduction;
[0010] In a visual form, presenting to the user the state and deduction result of the target simulation deduction model when the deduction pause condition is triggered.
[0011] In an optional implementation manner, the target simulation deduction model further includes classes and instances; wherein, the class is a template for objects with common attributes; the instance is a specific object created according to the class;
[0012] The deduction result is generated based on the states of multiple variables;
[0013] The deduction pause conditions include: state conditions, step conditions, deduction result conditions, and instance conditions;
[0014] The operation of setting deduction pause conditions includes: selecting whether to perform state monitoring, setting step control parameters, setting deduction results, and setting instances.
[0015] In an optional implementation manner, in response to a user's operation of setting deduction pause conditions for a target simulation deduction model on a visual interaction interface, generating at least one deduction pause condition, including:
[0016] If the user's operation of setting deduction pause conditions is to select to perform state monitoring, generating state conditions;
[0017] If the user's operation of setting deduction pause conditions is to set step control parameters, generating step conditions;
[0018] If the user's operation of setting deduction pause conditions is to set deduction results, generating deduction result conditions; the setting of deduction results includes: setting at least one variable and the state conditions of the corresponding variables;
[0019] If the deduction suspension condition setting operation of the user is a setting instance, generate instance conditions; the setting instance includes: the class corresponding to the setting instance and the quantity threshold of the instances under this class.
[0020] In an alternative embodiment, if the target simulation deduction model meets any deduction suspension condition, including:
[0021] If the interaction processes among all objects in the target simulation deduction model are all in a suspended or unstarted state, then the state condition is met;
[0022] If the number of time steps experienced by the target simulation deduction model during the simulation deduction process meets the step control parameter set by the user, then the step condition is met;
[0023] Take the variable set by the user as the target variable. If, during the simulation deduction process of the target simulation deduction model, the state of the target variable meets the state condition corresponding to the target variable, then the deduction result condition is met;
[0024] Take the class set by the user as the target class. If, during the simulation deduction process of the target simulation deduction model, the number of instances created under the target class meets the quantity threshold corresponding to the target class, then the instance condition is met.
[0025] In an alternative embodiment, controlling the target simulation deduction model to suspend the simulation deduction includes:
[0026] Control the state and deduction result of the target simulation deduction model to keep the state and deduction result when the deduction suspension condition is met unchanged.
[0027] In an alternative embodiment, after presenting the state and deduction result of the target simulation deduction model when the deduction suspension condition is triggered to the user, the method further includes:
[0028] In response to the user's deduction resumption operation on the target simulation deduction model in the visual interaction interface, control the target simulation deduction model to continue the simulation deduction with the state and deduction result when the deduction suspension condition is triggered as the current state and deduction result; until the target simulation deduction model meets any deduction suspension condition again, suspend the simulation deduction, or meets the configured termination condition, and end the simulation deduction.
[0029] In an alternative embodiment, before the simulation deduction process of the target simulation deduction model, the method further includes:
[0030] In response to the user's deduction parameter setting operation on the target simulation deduction model in the visual interaction interface, generate the first simulation deduction parameter; wherein, the first simulation deduction parameter includes: the first time step.
[0031] Control the target simulation and deduction model to perform simulation and deduction according to the first time step;
[0032] During the simulation and deduction process of the target simulation and deduction model, in response to the user's operation of setting the deduction parameters for the target simulation and deduction model on the visual interaction interface, generate second simulation and deduction parameters; wherein, the second simulation and deduction parameters include: a second time step; the first time step is different from the second time step;
[0033] Control the target simulation and deduction model to perform simulation and deduction according to the second time step to adjust the simulation speed of the target simulation and deduction model.
[0034] In a second aspect, the present invention provides an automatic deduction control device for a simulation and deduction model, and the device includes:
[0035] A generation unit, configured to generate at least one deduction pause condition in response to the user's operation of setting the deduction pause condition for the target simulation and deduction model on the visual interaction interface; wherein, the target simulation and deduction model is constructed by using an object-oriented modeling method based on the modeling language of systems engineering, and is used for performing dynamic simulation and deduction of systems engineering by defining objects and the interaction process between objects;
[0036] A control unit, configured to control the target simulation and deduction model to pause the simulation and deduction if the target simulation and deduction model meets any deduction pause condition during the simulation and deduction process of the target simulation and deduction model;
[0037] A display unit, configured to visually display the state and deduction result of the target simulation and deduction model when the deduction pause condition is triggered to the user.
[0038] In a third aspect, the present invention provides an electronic device, and the electronic device includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus;
[0039] The memory is used to store a computer program;
[0040] The processor is configured to implement the method according to any one of the foregoing embodiments when executing the program stored on the memory.
[0041] In a fourth aspect, the present invention provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program, and the computer program implements the method according to any one of the foregoing embodiments when being executed by a processor.
[0042] This application realizes more effective control by users over the simulation and deduction model, enabling detailed analysis and deduction of specific scenarios in the simulation and deduction environment. Participants can control the progress of the simulation time, including functions such as start, pause, fast forward, slow forward, and stop, thereby more intuitively understanding the environment and status, and formulating decision-making and action strategies based on data-driven. This application not only provides flexible means of deduction control, but also trains and improves the decision-making ability and problem-solving ability of participants through simulation practice.
[0043] This application preset deduction pause conditions, and automatically judges and pauses when the deduction pause conditions are met during the deduction process of the simulation and deduction model, enabling the simulation and deduction model to achieve simulation and deduction in the absence of human scenarios, and further realizing full-automatic simulation and deduction control of the simulation and deduction model.
[0044] This application uses an intuitive and easy-to-use graphical user interface (GUI) or other interaction methods to generate a visual interface, improving the user experience, realizing convenient pause of simulation and deduction, and greatly enhancing the satisfaction and efficiency of users when using the paused simulation and deduction model. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of this application, the following will briefly introduce the drawings required to be used in the embodiments of this application. It should be understood that the following drawings only show some embodiments of this application, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can also be obtained based on these drawings without creative efforts.
[0046] Figure 1 It is a flowchart of an automatic deduction control method for a simulation and deduction model provided by an embodiment of this application;
[0047] Figure 2 It is a schematic structural diagram of an automatic deduction control device for a simulation and deduction model provided by an embodiment of this application;
[0048] Figure 3 It is a schematic structural diagram of an electronic device provided by an embodiment of this application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0049] The following will clearly and completely describe the technical solutions in the embodiments of this application with reference to the drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, not all of them. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of this application.
[0050] The automatic deduction control method for the simulation deduction model provided by the embodiments of the present application can be applied to a server or a terminal with strong computing power. The server can be a physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms. The terminal can be a user equipment (UE) such as a mobile phone, a smart phone, a laptop computer, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (PAD), a handheld device, a vehicle-mounted device, a wearable device, a computing device or other processing devices connected to a wireless modem, a mobile station (MS), a mobile terminal, etc. The terminal and the server can be directly or indirectly connected through wired or wireless communication methods, which are not limited in this application.
[0051] The preferred embodiments of the present application will be described below with reference to the accompanying drawings of the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. And without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
[0052] Figure 1 It is a schematic flowchart of an automatic deduction control method for a simulation deduction model provided by an embodiment of the present application. As Figure 1 shown, the method may include:
[0053] S110. In response to a user's operation of setting a deduction pause condition for a target simulation deduction model on a visual interaction interface, generate at least one deduction pause condition.
[0054] In the embodiments of the present application, before the simulation deduction of the simulation deduction model, the user adjusts the deduction parameters and sets the deduction pause condition on the visual interaction interface according to actual needs.
[0055] In the embodiments of the present application, the target simulation deduction model is constructed by using an object-oriented modeling method based on the modeling language of systems engineering, and is used to perform dynamic simulation deduction of systems engineering by defining objects and the interaction processes between objects.
[0056] In the embodiments of the present application, the target simulation deduction model includes objects, interaction processes between objects (referred to as processes), classes, and instances; among them, a class is a template for objects with common attributes; an instance is a specific object created according to a class.
[0057] In the embodiments of the present application, the deduction result is generated based on the states of multiple variables of the target simulation deduction model; variables generally refer to the values used to represent the system state or parameters in the target simulation deduction model. These variables can be inputs, outputs, or internal states.
[0058] In the embodiments of the present application, the operation of setting the deduction pause condition includes: selecting whether to perform state monitoring, setting step control parameters, setting deduction results, and setting instances; the deduction pause conditions include: state conditions, step conditions, deduction result conditions, and instance conditions.
[0059] In the embodiments of the present application, when the user selects to perform state monitoring, a state condition is generated; that is, the user, on the visual interaction interface, relies on the option area related to "activity monitoring" or "process detection"; selects the checkbox of "pause when there is no active process" or a similar option (that is, the operation of setting the deduction pause condition is to select to perform state monitoring); when this option is checked, during the simulation deduction process, if it is detected that there is no active process in progress, that is, all preset activities or tasks have been completed or are in a waiting state, the system automatically triggers a pause. This setting is very useful for identifying idle periods or potential problems in the deduction.
[0060] In the embodiments of the present application, if the user's operation of setting the deduction pause condition is to set step control parameters, a step condition is generated; a step is an important concept in simulation deduction, representing each discrete time point or state change in the deduction process. In the visual interaction interface, the user locates the part related to "step control" or "time step". Enter an input box, and the user enters a specific step value. According to the deduction plan or requirements, a desired step value is set. When the simulation deduction reaches this step (that is, the simulation deduction reaches a certain process), the system will automatically pause to allow the user to observe, analyze, or adjust.
[0061] For example, when the step condition is 12, the simulation deduction model pauses automatically when the simulation deduction reaches the 12th step.
[0062] In the embodiments of the present application, if the user's operation of setting the deduction pause condition is to set deduction results, a deduction result condition is generated; setting deduction results includes: setting at least one variable and the state condition of the corresponding variable; in the visual interaction interface, the user relies on the area related to "result monitoring" or "condition trigger", defines one or more deduction result values, and sets a condition for triggering a pause for each value. For example, the user may expect that when the value of a certain key variable in the simulation deduction model reaches or exceeds a certain specific threshold (that is, the result of a certain process in the deduction process reaches the preset value), the system can automatically pause. The user can intervene at a critical moment to deeply analyze or adjust the deduction result.
[0063] For example, for the amplitude variable of the earthquake simulation and deduction model, it can be set that when the amplitude variable is 100, the simulation and deduction will pause. Then, when the earthquake simulation and deduction model conducts earthquake simulation and deduction, once the amplitude reaches 100, it will automatically pause.
[0064] In the embodiment of the present application, if the deduction pause condition setting operation of the user is a setting example, an example condition is generated; the setting example includes: the class corresponding to the setting example and the quantity threshold of the examples under this class; in complex simulation and deduction, the quantity of examples often represents the satisfaction of a certain state or condition. The user sets the pause condition according to the quantity of examples. In the visual interaction interface, the user first selects or specifies the type of example to be monitored. Then, in the corresponding quantity setting area, the user inputs a desired example quantity value. When the quantity of this type of example reaches or exceeds this value during the simulation and deduction process, the system will automatically trigger a pause. This setting is very helpful for monitoring resource usage, identifying bottlenecks, or optimizing performance, etc.
[0065] For example, during the school process simulation and deduction, students or teachers are of one type. It is set to pause when the quantity of examples of the student class meets 100. Then, during the school process simulation and deduction, when the number of students entering the school (such as transferring or enrolling) reaches 100, the school process simulation and deduction will automatically stop.
[0066] S120. During the simulation and deduction process of the target simulation and deduction model, if the target simulation and deduction model meets any deduction pause condition, then control the target simulation and deduction model to pause the simulation and deduction.
[0067] In the embodiment of the present application, one or more pause conditions can be set for a target simulation and deduction model at the same time.
[0068] In the embodiment of the present application, if all the interaction processes among all objects in the target simulation and deduction model are in a paused or unstarted state, then the state condition is met; if the number of time steps experienced by the target simulation and deduction model during the simulation and deduction process meets the step control parameter set by the user, then the step condition is met; taking the variable set by the user as the target variable, if the state of the target variable meets the state condition corresponding to the target variable during the simulation and deduction process of the target simulation and deduction model, then the deduction result condition is met; taking the class set by the user as the target class, if the number of examples created under the target class meets the quantity threshold corresponding to the target class during the simulation and deduction process of the target simulation and deduction model, then the example condition is met.
[0069] In the embodiment of the present application, controlling the target simulation and deduction model to pause the simulation and deduction includes:
[0070] Control the state and deduction results of the target simulation deduction model, and keep the state and deduction results unchanged when the deduction pause condition is met.
[0071] In the embodiment of the present application, when the target simulation deduction model pauses after meeting a pause condition, the user can input a start signal or a resume signal on the visualization interface. In response to the user's deduction resume operation on the visualization interaction interface for the target simulation deduction model, control the target simulation deduction model to use the state and deduction results when the deduction pause condition is triggered as the current state and deduction results, and continue the simulation deduction; until the target simulation deduction model meets any deduction pause condition again, pause the simulation deduction, or meets the configured termination condition, and end the simulation deduction.
[0072] In the embodiment of the present application, assume that the user sets 3 deduction pause conditions at the same time. The first deduction pause condition is the step condition, the second deduction pause condition is the instance condition, and the third deduction pause condition is the state condition; when the first deduction pause condition is met, the target simulation deduction model stops the simulation deduction; after 10 minutes, the user performs a deduction resume operation on the visualization interaction interface for the target simulation deduction model, then the target simulation deduction model will continue the simulation deduction until the next pause condition is met. At this time, all 3 pause conditions set by the user are in an effective state; that is, the deduction pause conditions will not become invalid because of the number of times of suspension or the fact that they have been suspended before.
[0073] In practical applications, assume that the step condition is 12 steps. When the target simulation deduction model resumes after a pause and then simulates 12 steps again and does not meet other deduction pause conditions during this process, the target simulation deduction model will still pause because it meets the deduction pause condition of 12 steps; assume that the target simulation deduction model resumes after the second pause and then simulates 10 steps. At this time, the instance condition is met, then the target simulation deduction model will not continue without pausing because other pause conditions are not met, but will pause because the instance condition is met.
[0074] That is to say, in the embodiment of the present application, the number of deduction pause conditions does not affect whether the deduction pause conditions take effect; when multiple deduction pause conditions are set at the same time, whether other deduction pause conditions take effect does not affect the suspension effect when the target simulation deduction model meets this deduction pause condition; all deduction pause conditions are parallel and equal, without priority.
[0075] In the embodiment of the present application, when the target simulation deduction model receives a deduction resume instruction, it will continue the deduction with the state and deduction results at the time of suspension as the current state and results, rather than starting from the beginning.
[0076] For example, the earthquake simulation and deduction model starts the simulation and deduction from a temperature of 0, an earthquake wave of 0, and an amplitude of 0; when paused, the temperature is 10, the earthquake wave is 100, and the amplitude is 199. Then when the simulation and deduction continue, it starts from a temperature of 10, an earthquake wave of 100, and an amplitude of 199 and continues the deduction.
[0077] That is to say, the pause in this application is not an interruption and restart, but rather temporarily pauses the time axis of the target simulation and deduction model at a certain time point. When recovery is needed, it can continue to deduce backward from the paused time point.
[0078] S130. In a visual form, display to the user the state and deduction results of the target simulation and deduction model when the deduction pause condition is triggered.
[0079] In the embodiment of this application, during the simulation and deduction process of the target simulation and deduction model, if the target simulation and deduction model meets any deduction pause condition, control the target simulation and deduction model to pause the simulation and deduction, thereby realizing the pause of the deduction process of the target simulation and deduction model; in response to the user's deduction recovery operation on the visual interaction interface for the target simulation and deduction model, control the target simulation and deduction model to use the state and deduction results when the deduction pause condition is triggered as the current state and deduction results, and continue the simulation and deduction, thereby realizing the deduction recovery of the target simulation and deduction model.
[0080] In the embodiment of this application, the method further includes: in response to the user's operation of setting deduction parameters on the visual interaction interface for the target simulation and deduction model, generate the first simulation and deduction parameters; control the target simulation and deduction model to perform simulation and deduction according to the first time step;
[0081] During the simulation and deduction process of the target simulation and deduction model, in response to the user's operation of setting deduction parameters on the visual interaction interface for the target simulation and deduction model, generate the second simulation and deduction parameters;
[0082] Control the target simulation and deduction model to perform simulation and deduction according to the second time step to adjust the simulation speed of the target simulation and deduction model.
[0083] In the embodiment of this application, the first simulation and deduction parameters include: the first time step; the second simulation and deduction parameters include: the second time step; the first time step and the second time step are different.
[0084] In the embodiments of the present application, the suspension and simulation speed adjustment of the target simulation deduction model are both achieved by performing certain operations on the deduction timeline of the target simulation deduction model; when the control timeline remains unchanged, the suspension of the target simulation deduction model is achieved; when the control timeline is reduced, the deduction process of the target simulation deduction model is accelerated, that is, the deduction speed is fast-forwarded; when the control timeline is increased, the deduction process of the target simulation deduction model is slowed down, that is, the deduction speed is slow-forwarded.
[0085] In another embodiment of the present application, status conditions and step conditions can also be set when the target simulation deduction model is performing simulation deduction, so that the target simulation deduction model determines whether to pause after the simulation deduction starts; during the simulation deduction process, the user can also set deduction result conditions and instance conditions through the visual interface, and at this time the target simulation deduction model will determine whether the 4 suspension conditions are met; that is, the setting timing of the deduction suspension conditions does not affect their suspension effect.
[0086] In the embodiments of the present application, the present application can not only set deduction suspension conditions before the simulation deduction starts, but also set deduction suspension conditions during the simulation deduction process; however, status conditions and step conditions cannot be set during the simulation deduction process; that is, status conditions, step conditions, deduction result conditions and instance conditions can be set before the simulation deduction starts; deduction result conditions and instance conditions can be set during the simulation deduction process.
[0087] In one embodiment of the present application, only one of the status conditions and step conditions can be selected for setting.
[0088] In the embodiments of the present application, the suspension of the target simulation deduction model means that all calculations, updates and interactions related to the target simulation deduction model will stop.
[0089] Corresponding to the above method, the embodiments of the present application also provide an automatic deduction control device for a simulation deduction model, as Figure 2 shown, the automatic deduction control device for the simulation deduction model includes:
[0090] A generating unit 210, configured to generate at least one deduction suspension condition in response to a user's operation of setting a deduction suspension condition for the target simulation deduction model on the visual interaction interface; wherein, the target simulation deduction model is constructed by using an object-oriented modeling method based on the modeling language of systems engineering, and is used for performing dynamic simulation deduction of systems engineering by defining objects and the interaction processes between objects.
[0091] A control unit 220, configured to control the target simulation deduction model to suspend the simulation deduction if the target simulation deduction model meets any deduction suspension condition during the simulation deduction process of the target simulation deduction model.
[0092] A display unit 230 for visually displaying to the user the state and deduction result of the target simulation deduction model when a deduction pause condition is triggered.
[0093] The functions of the functional units of the automatic deduction control device of the simulation deduction model provided in the above embodiments of the present application can be implemented by the above method steps. Therefore, the specific working processes and beneficial effects of each unit in the automatic deduction control device of the simulation deduction model provided in the embodiments of the present application will not be repeated here.
[0094] Embodiments of the present application also provide an electronic device, as Figure 3 shown, including a processor 310, a communication interface 320, a memory 330, and a communication bus 340. Among them, the processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340.
[0095] The memory 330 is used to store a computer program;
[0096] When the processor 310 executes the program stored on the memory 330, the following steps are implemented:
[0097] In response to a user's operation of setting a deduction pause condition for the target simulation deduction model on the visual interaction interface, generating at least one deduction pause condition; wherein, the target simulation deduction model is constructed by using an object-oriented modeling method based on a system engineering modeling language, and is used for dynamically simulating and deducing system engineering by defining objects and the interaction processes between objects.
[0098] During the simulation deduction process of the target simulation deduction model, if the target simulation deduction model meets any deduction pause condition, then control the target simulation deduction model to pause the simulation deduction.
[0099] Visually display to the user the state and deduction result of the target simulation deduction model when a deduction pause condition is triggered.
[0100] The above-mentioned communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0101] The communication interface is used for communication between the above electronic device and other devices.
[0102] The memory may include a Random Access Memory (RAM), or may also include a Non-Volatile Memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0103] The aforementioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0104] Since the implementation manners and beneficial effects of the components of the electronic device in the above embodiments can be realized by referring to the steps in the Figure 1 embodiments shown, therefore, the specific working process and beneficial effects of the electronic device provided in the embodiments of the present application will not be elaborated herein.
[0105] In another embodiment provided by the present application, there is also provided a computer-readable storage medium storing instructions, which, when running on a computer, cause the computer to execute the automatic deduction control method of the simulation deduction model described in any one of the above embodiments.
[0106] In another embodiment provided by the present application, there is also provided a computer program product containing instructions, which, when running on a computer, cause the computer to execute the automatic deduction control method of the simulation deduction model described in any one of the above embodiments.
[0107] Those skilled in the art should understand that the embodiments in the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the embodiments in the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments in the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.
[0108] Embodiments of the present application are described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing device generate a means for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0109] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction means that implements the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0111] Although the preferred embodiments in the embodiments of the present application have been described, those skilled in the art can make additional changes and modifications once they know the basic creative concepts. Therefore, the appended claims are intended to be construed as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.
[0112] Obviously, those skilled in the art can make various changes and variations to the embodiments in the embodiments of the present application without departing from the spirit and scope of the embodiments in the embodiments of the present application. Thus, if these modifications and variations of the embodiments in the embodiments of the present application fall within the scope of the claims of the embodiments of the present application and their equivalent technologies, the embodiments in the embodiments of the present application are also intended to include these changes and variations.
Claims
1. An automatic deduction control method for a simulation deduction model, characterized in that The method includes: In response to a user's operation of setting a deduction pause condition for a target simulation deduction model on a visual interaction interface, generating at least one deduction pause condition; wherein, the target simulation deduction model is constructed by using an object-oriented modeling method based on a system engineering modeling language, and is used to perform dynamic simulation deduction of system engineering by defining objects and the interaction processes between objects; During the simulation deduction process of the target simulation deduction model, if the target simulation deduction model meets any deduction pause condition, then control the target simulation deduction model to pause the simulation deduction; In a visual form, display to the user the state and deduction result of the target simulation deduction model when the deduction pause condition is triggered.
2. The method according to claim 1, characterized in that, The target simulation deduction model further includes classes and instances; wherein, the class is a template for objects with common attributes; the instance is a specific object created according to the class; The deduction result is generated based on the states of multiple variables; The deduction pause conditions include: state conditions, step conditions, deduction result conditions, and instance conditions; The operation of setting the deduction pause condition includes: selecting whether to perform state monitoring, setting step control parameters, setting deduction results, and setting instances.
3. The method according to claim 2, wherein In response to a user's operation of setting a deduction pause condition for a target simulation deduction model on a visual interaction interface, generating at least one deduction pause condition, including: If the user's operation of setting the deduction pause condition is to select to perform state monitoring, then generate state conditions; If the user's operation of setting the deduction pause condition is to set step control parameters, then generate step conditions; If the user's operation of setting the deduction pause condition is to set deduction results, then generate deduction result conditions; the setting of the deduction results includes: setting at least one variable and the state conditions corresponding to the variables; If the user's operation of setting the deduction pause condition is to set an instance, then generate instance conditions; the setting of the instance includes: setting the class corresponding to the instance and the quantity threshold of the instances under the class.
4. The method according to claim 3, wherein If the target simulation deduction model meets any deduction pause condition, including: If the interaction processes between all objects in the target simulation deduction model are in a paused state or not started, then the state conditions are met; If the number of time steps experienced by the target simulation deduction model during the simulation deduction process meets the step control parameters set by the user, then the step conditions are met; Taking the variables set by the user as target variables, if the state of the target variables in the target simulation deduction model during the simulation deduction process meets the state conditions corresponding to the target variables, then the deduction result conditions are met; Taking the class set by the user as the target class, if the number of instances created under the target class in the target simulation deduction model during the simulation deduction process meets the quantity threshold corresponding to the target class, then the instance conditions are met.
5. The method according to claim 1, characterized in that Controlling the target simulation deduction model to pause the simulation deduction includes: Controlling the state and deduction result of the target simulation deduction model to keep the state and deduction result when the deduction pause condition is unchanged.
6. The method according to claim 1, characterized in that, After presenting the state and deduction result of the target simulation deduction model when the deduction pause condition is triggered to the user, the method further includes: In response to a deduction resume operation on the target simulation deduction model by the user on the visual interaction interface, control the target simulation deduction model to continue the simulation deduction with the state and deduction result when the deduction pause condition is triggered as the current state and deduction result; until the target simulation deduction model meets any deduction pause condition again, pause the simulation deduction, or meets the configured termination condition, and end the simulation deduction.
7. The method according to claim 1, wherein Before the simulation deduction process of the target simulation deduction model, the method further includes: In response to a deduction parameter setting operation on the target simulation deduction model by the user on the visual interaction interface, generate a first simulation deduction parameter; wherein, the first simulation deduction parameter includes: a first time step. Control the target simulation deduction model to perform simulation deduction according to the first time step. During the simulation deduction process of the target simulation deduction model, in response to a deduction parameter setting operation on the target simulation deduction model by the user on the visual interaction interface, generate a second simulation deduction parameter; wherein, the second simulation deduction parameter includes: a second time step; the first time step and the second time step are different. Control the target simulation deduction model to perform simulation deduction according to the second time step to adjust the simulation speed of the target simulation deduction model.
8. An automatic deduction control device for a simulation deduction model, characterized in that, The device includes: A generation unit, configured to generate at least one deduction pause condition in response to a deduction pause condition setting operation on the target simulation deduction model by the user on the visual interaction interface; wherein, the target simulation deduction model is constructed by using an object-oriented modeling method based on the modeling language of systems engineering, and is used to perform dynamic simulation deduction of systems engineering by defining objects and the interaction processes between objects. A control unit, configured to control the target simulation deduction model to pause the simulation deduction if the target simulation deduction model meets any deduction pause condition during the simulation deduction process of the target simulation deduction model. A display unit, configured to visually present the state and deduction result of the target simulation deduction model when the deduction pause condition is triggered to the user.
9. An electronic device, characterized in that, The electronic device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used for storing a computer program; The processor, when executing the program stored on the memory, implements the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, it implements the method according to any one of claims 1-7.