A method for constructing an architecture of a modeling and simulation system for simulating on-demand migration execution
By building an open modeling and simulation system architecture for simulation on-demand migration execution, the problem of poor interoperability of existing technologies on different simulation infrastructures is solved, and simulation activities in global Internet, universal terminals and online large-scale parallel experiments are realized, supporting efficient collaborative and seamless migration.
Patent Information
- Application Number
- CN202111268927.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2041-10-29
AI Technical Summary
Existing modeling and simulation software is difficult to achieve efficient collaboration, seamless migration and free switching on different simulation infrastructures, and cannot meet the simulation needs of global Internet, universal terminals and online large-scale parallel experiments.
Build an open modeling and simulation system architecture for simulation on-demand migration execution. By establishing a graphical user interface on the desktop terminal for modeling, using migration agents and execution agents to achieve cross-platform deployment and monitoring of the simulation system, supporting on-demand migration and interoperability on different simulation infrastructures.
It realizes interoperability of simulation activities on different simulation infrastructures, supports efficient collaboration under the global Internet, seamless migration of universal terminals and free switching of online large-scale parallel trials, reducing manual transformation and deployment work.
Smart Images

Figure CN114065326B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of modeling and simulation, and more particularly to a method for constructing a modeling and simulation system architecture capable of simulating on-demand migration execution. Background Art
[0002] Current modeling and simulation software, such as Simulink, SimulationX, Ansys, and AnyLogic, is mostly stand-alone software that typically runs only locally and requires a graphical user interface (GUI) to conduct modeling and simulation activities. Some software offers separate cluster versions that can be installed on high-performance computing clusters, allowing models or projects created with the stand-alone version to be run manually via the command line. Other software also offers VC++ or JAVA code generation (some of which can run in embedded environments), making it easy for users to copy and run the code in other environments.
[0003] With the further application of simulation technology, it is necessary to support simulation anytime and anywhere on different simulation infrastructures. The current modeling and simulation software system architecture, which mainly relies on stand-alone versions and independently deployed cluster versions, has weak interoperability support for on-demand simulation activities on different simulation infrastructures, making it difficult to meet the following modeling and simulation business needs:
[0004] (1) As the scope of simulation development expands from traditional local area networks to the existing global Internet (such as model-based system engineering), it is difficult for users to achieve efficient collaboration of simulations across different enterprises using existing modeling and simulation software.
[0005] (2) As the deployment locations of simulations expand from traditional desktop terminals to existing ubiquitous terminals (such as digital twins), it is difficult for users to achieve seamless migration of simulations to different locations using existing modeling and simulation software.
[0006] (3) As the operation mode of simulation expands from traditional offline small-scale verification to existing online large-scale parallel experiments (such as parallel learning of artificial intelligence, etc.), it is difficult for users to freely switch between simulations of different scales using existing modeling and simulation software. Summary of the Invention
[0007] The purpose of the present invention is to provide a method for constructing a modeling and simulation system architecture for on-demand migration execution of simulations, and to establish an open modeling and simulation system architecture that natively supports on-demand migration execution of simulation systems for simulations to be performed anytime and anywhere on different simulation infrastructures, so as to reduce a large amount of work that requires manual modification, packaging, and deployment of simulation systems.
[0008] In order to achieve the above object, the present invention adopts the following technical solutions:
[0009] The present invention provides a method for constructing a modeling and simulation system architecture for simulating on-demand migration execution, comprising the following steps:
[0010] S101: Establishing a graphical user interface on a desktop terminal, modeling and generating a simulation system execution program on the graphical user interface;
[0011] S103: Various simulation system execution terminals establish migration agents to receive and deploy simulation system execution programs submitted by desktop terminals;
[0012] S105: Various simulation system execution terminals establish execution agents, prepare the simulation running environment and control the simulation autonomous execution;
[0013] S107: Establish status feedback between the desktop terminal and various simulation system execution terminals, and perform simulation monitoring and evaluation on the desktop terminal.
[0014] In a specific example, step S101 includes:
[0015] Perform visual modeling and scenario editing on the graphical user interface of the desktop terminal, and build a simulation system execution program separated from the graphical user interface based on the formed model and data;
[0016] An experiment management module is established on the graphical user interface, and the simulation system experiment requirements are input into the experiment management module, including specifying the parameter adjustment range, interval and result output variables of the simulation experiment, setting the number of simulation systems to be executed, and then selecting a matching simulation system execution terminal to execute the simulation system execution program.
[0017] In a specific example, the simulation system execution program includes: cross-platform executable code, dependent model files and dependent data files, wherein:
[0018] The cross-platform executable code provides an operation management service interface, an operation data service interface, a migration environment configuration file, and an execution command configuration file.
[0019] In a specific example, the operation management service interface includes: an operation status acquisition interface of the simulation system execution program, an operation initialization interface, an operation start interface, an operation pause interface, an operation resume interface, an operation end interface and an interface for starting a new round of simulation;
[0020] The operation data service interface includes: a simulation experiment parameter initialization interface, a simulation experiment operation process data / event input and output interface, a simulation experiment operation process intermediate state data acquisition interface and an operation result data acquisition interface;
[0021] The migration environment configuration file includes: operating system and its version, simulation middleware and its version, and library files and their versions that the executable code depends on;
[0022] The execution command configuration file includes: simulation system execution program working path, startup sequence and startup command.
[0023] In a specific example, step S103 includes:
[0024] The migration agent uses a daemon process to implement autonomous execution and event processing, and establishes a network connection with the graphical user interface of the desktop terminal;
[0025] The migration agent maintains the execution terminal environment information and sends it to the graphical user interface of the desktop terminal for matching;
[0026] The migration agent receives the simulation system execution program submitted by the graphical user interface of the desktop terminal, and deploys the simulation system execution program according to the specified working path.
[0027] In a specific example, step S105 includes:
[0028] The execution agent uses a daemon process to achieve autonomous execution and event processing, and establishes a network connection with the graphical user interface of the desktop terminal;
[0029] The execution agent reads the execution command configuration file content, parses the startup command and starts the simulation system execution program according to the startup sequence under the working path where the simulation system execution program is deployed.
[0030] In a specific example, step S107 includes:
[0031] The graphical user interface of the desktop terminal remotely accesses the operation management service interface of the simulation system execution program on the execution terminal, obtains the operation status of the simulation system execution program, and controls its operation initialization, start, pause, resume, end and a new round of simulation;
[0032] The graphical user interface of the desktop terminal remotely accesses the running data service interface of the simulation system execution program on the execution terminal, sends the parameters of the simulation experiment for parameter initialization, obtains the intermediate state data and running result data of the simulation experiment running process, and exchanges data and events with other simulation system execution programs as needed;
[0033] The graphical user interface of the desktop terminal can monitor the running status of the simulation system execution program through remote monitoring of the virtual desktop of the execution terminal;
[0034] The graphical user interface of the desktop terminal summarizes the running results of all simulation system execution programs submitted for execution, and performs simulation evaluation through two-dimensional and three-dimensional charts and graphics.
[0035] The beneficial effects of the present invention are as follows:
[0036] This method improves the existing modeling and simulation software system architecture, which is mainly based on a stand-alone version and independently deployed in a cluster version. By establishing an open modeling and simulation system architecture that natively supports on-demand migration and execution of simulation systems, it achieves on-demand interoperability of simulation activities on different simulation infrastructures, eliminating the need for manual simulation system modification, packaging, and deployment. It supports efficient collaboration of simulations of different enterprises on the global Internet in applications such as model-based system engineering; seamless migration of simulations at different locations for ubiquitous terminals in applications such as digital twins; and free switching of simulations of different scales for online large-scale parallel experiments in applications such as parallel learning of artificial intelligence. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 A flow chart of a method for constructing a modeling and simulation system architecture for on-demand migration execution of simulation according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0039] To make the technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
[0040] An embodiment of the present invention provides a method for constructing a modeling simulation system architecture for on-demand migration execution, such as Figure 1 As shown, the following steps are included:
[0041] S101: Establishing a graphical user interface on a desktop terminal, modeling and generating a simulation system execution program on the graphical user interface;
[0042] S103: Various simulation system execution terminals establish migration agents to receive and deploy simulation system execution programs submitted by desktop terminals;
[0043] S105: Various simulation system execution terminals establish execution agents, prepare the simulation running environment and control the simulation autonomous execution;
[0044] S107: Establish status feedback between the desktop terminal and various simulation system execution terminals, and perform simulation monitoring and evaluation on the desktop terminal.
[0045] In a specific embodiment, step S101 includes:
[0046] Decouple the modeling, operation, and evaluation of the simulation system, perform visual modeling and scenario editing on the graphical user interface of the desktop terminal, and build a simulation system execution program separated from the graphical user interface based on the formed model and data;
[0047] An experiment management module is established on a graphical user interface. Simulation system experiment requirements are entered into the module, including parameter adjustment ranges, intervals, and output variables for simulation experiments such as Monte Carlo simulations. The number of simulation system instances to be executed is then set. A matching simulation system instance execution terminal is then selected to execute the simulation system execution program. For example, if five experiments are required, five simulation system instances are selected and the simulation system execution program is executed on their execution terminals.
[0048] In a specific embodiment, the constructed simulation system execution program includes: cross-platform executable code, dependent model files and dependent data files, wherein:
[0049] The cross-platform executable code provides an operation management service interface, an operation data service interface, a migration environment configuration file, and an execution command configuration file.
[0050] In a specific embodiment, the operation management service interface includes: an operation status acquisition interface of the simulation system execution program, an operation initialization interface, an operation start interface, an operation pause interface, an operation resume interface, an operation end interface and an interface for starting a new round of simulation;
[0051] The operation data service interface includes: a simulation experiment parameter initialization interface, a simulation experiment operation process data / event input and output interface, a simulation experiment operation process intermediate state data acquisition interface and an operation result data acquisition interface;
[0052] The migration environment configuration file includes: operating system and its version, simulation middleware and its version, and library files and their versions that the executable code depends on;
[0053] The execution command configuration file includes: simulation system execution program working path, startup sequence and startup command.
[0054] In a specific embodiment, step S103 includes:
[0055] The migration agent uses a daemon process to implement autonomous execution and event processing, and establishes a network connection with the graphical user interface of the desktop terminal;
[0056] The migration agent maintains execution terminal environment information such as installed simulation middleware and sends it to the graphical user interface of the desktop terminal for matching;
[0057] The migration agent receives the simulation system execution program submitted by the graphical user interface of the desktop terminal, and deploys the simulation system execution program according to the specified working path.
[0058] In a specific embodiment, step S105 includes:
[0059] The execution agent uses a daemon process to achieve autonomous execution and event processing, and establishes a network connection with the graphical user interface of the desktop terminal;
[0060] The execution agent reads the execution command configuration file content, parses the startup command and starts the simulation system execution program according to the startup sequence under the working path where the simulation system execution program is deployed.
[0061] In a specific embodiment, step S107 includes:
[0062] The graphical user interface of the desktop terminal remotely accesses the operation management service interface of the simulation system execution program on the execution terminal, obtains the operation status of the simulation system execution program, and controls its operation initialization, start, pause, resume, end and a new round of simulation;
[0063] The graphical user interface of the desktop terminal remotely accesses the running data service interface of the simulation system execution program on the execution terminal, sends the parameters of the simulation experiment for parameter initialization, obtains the intermediate state data and running result data of the simulation experiment running process, and exchanges data and events with other simulation system execution programs as needed;
[0064] The graphical user interface of the desktop terminal can monitor the virtual desktop of the execution terminal remotely to understand the running status of the simulation system execution program;
[0065] The graphical user interface of the desktop terminal summarizes the running results of all simulation system execution programs submitted for execution, and performs simulation evaluation through two-dimensional and three-dimensional charts and graphics.
[0066] The architecture described in the present invention is implemented on different simulation infrastructures, and can interoperate simulation activities on demand, eliminating the need for manual simulation system modification, packaging and deployment; it supports local design of simulation experiments, control of remote simulation execution, and local monitoring and evaluation of simulations.
[0067] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not limitations on the implementation methods of the present invention. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present invention are still within the scope of protection of the present invention.
Claims
1. A method for constructing a modeling and simulation system architecture for on-demand migration execution, characterized in that: The following steps are involved: S101: Establishing a graphical user interface on a desktop terminal, modeling and generating a simulation system execution program on the graphical user interface; S103: Various simulation system execution terminals establish migration agents to receive and deploy simulation system execution programs submitted by desktop terminals; S105: Various simulation system execution terminals establish execution agents, prepare the simulation running environment and control the simulation autonomous execution; S107: Establish status feedback between the desktop terminal and various simulation system execution terminals, and perform simulation monitoring and evaluation on the desktop terminal.
2. The construction method according to claim 1, characterized in that The step S101 includes: Perform visual modeling and scenario editing on the graphical user interface of the desktop terminal, and build a simulation system execution program separated from the graphical user interface based on the formed model and data; An experiment management module is established on the graphical user interface, and the simulation system experiment requirements are input into the experiment management module, including specifying the parameter adjustment range, interval and result output variables of the simulation experiment, setting the number of simulation systems to be executed, and then selecting a matching simulation system execution terminal to execute the simulation system execution program.
3. The construction method according to claim 2, characterized in that The simulation system execution program includes: cross-platform executable code, dependent model files and dependent data files, wherein: The cross-platform executable code provides an operation management service interface, an operation data service interface, a migration environment configuration file, and an execution command configuration file.
4. The construction method according to claim 3, characterized in that The operation management service interface includes: an operation status acquisition interface of the simulation system execution program, an operation initialization interface, an operation start interface, an operation pause interface, an operation resume interface, an operation end interface and an interface for starting a new round of simulation; The operation data service interface includes: a simulation experiment parameter initialization interface, a simulation experiment operation process data / event input and output interface, a simulation experiment operation process intermediate state data acquisition interface and an operation result data acquisition interface; The migration environment configuration file includes: operating system and its version, simulation middleware and its version, and library files and their versions that the executable code depends on; The execution command configuration file includes: simulation system execution program working path, startup sequence and startup command.
5. The construction method according to claim 4, characterized in that The step S103 includes: The migration agent uses a daemon process to implement autonomous execution and event processing, and establishes a network connection with the graphical user interface of the desktop terminal; The migration agent maintains the execution terminal environment information and sends it to the graphical user interface of the desktop terminal for matching; The migration agent receives the simulation system execution program submitted by the graphical user interface of the desktop terminal, and deploys the simulation system execution program according to the specified working path.
6. The construction method according to claim 5, characterized in that: The step S105 includes: The execution agent uses a daemon process to achieve autonomous execution and event processing, and establishes a network connection with the graphical user interface of the desktop terminal; The execution agent reads the execution command configuration file content, parses the startup command and starts the simulation system execution program according to the startup sequence under the working path where the simulation system execution program is deployed.
7. The construction method according to claim 1, characterized in that The step S107 includes: The graphical user interface of the desktop terminal remotely accesses the operation management service interface of the simulation system execution program on the execution terminal, obtains the operation status of the simulation system execution program, and controls its operation initialization, start, pause, resume, end and a new round of simulation; The graphical user interface of the desktop terminal remotely accesses the running data service interface of the simulation system execution program on the execution terminal, sends the parameters of the simulation experiment for parameter initialization, obtains the intermediate state data and running result data of the simulation experiment running process, and exchanges data and events with other simulation system execution programs as needed; The graphical user interface of the desktop terminal can monitor the virtual desktop of the execution terminal remotely to understand the running status of the simulation system execution program; The graphical user interface of the desktop terminal summarizes the running results of all simulation system execution programs submitted for execution, and performs simulation evaluation through two-dimensional and three-dimensional charts and graphics.
Citation Information
Patent Citations
Distributed real-time interactive simulation system based on modelica modeling language
CN102622262A
Middleware computing method and system suitable for power system cloud computing
CN113204866A