Simulation model configuration method and device, equipment and medium
Through various conceptual methods and priority rules, the existing simulation tools are solved inadequate flexibility in adjusting initial value in dynamic scenarios, and efficient and accurate initialization of the simulation model is achieved.
Patent Information
- Application Number
- CN202510504030.4
- 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
Existing simulation tools are difficult to flexibly adjust the initial value in dynamic scenarios, resulting in data conflicts and inaccurate simulation results. Users need to manually manage the source and rules of the initial value to increase modeling complexity.
Determine the initial value of the simulation model through various definitive methods (customization, data table, data dictionary, preset), and combine priority rules and dynamic adjustment mechanisms to achieve flexible initialization of complex simulation models.
It improves the initialization efficiency and accuracy of simulation scenarios, avoids data conflicts, ensures logical consistency of initial values, and supports accurate thinking of complex dynamic scenarios.
Smart Images

Figure CN120337579A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of simulation technology. Specifically, it relates to a method, device, equipment and medium for configuring a simulation model. Background Art
[0002] Current simulation tools (such as Simulink, AnyLogic, Arena Simulation) usually configure the initial values of scenarios through static data tables or model default values. Simulink supports the configuration of model default parameters, but lacks flexibility and is difficult to quickly adjust the initial data in complex scenarios. AnyLogic and Arena Simulation import initial values through external data tables, but lack strict control over the priority of data sources, which easily leads to data conflicts and affects the accuracy of simulation results. These methods lack support for dynamically changing simulation requirements and have low flexibility and automation.
[0003] Traditional methods cannot support users to flexibly select the sources of scenario initial values according to their needs, such as model scenario default values, user input values or external data. Existing technologies are usually based on static configuration and are difficult to dynamically adjust initial values according to time or conditions. When multiple scenario data sources provide initial values simultaneously, it is difficult for the system to clarify the priority rules, which may lead to logical inconsistencies or conflicts. Therefore, users need to manually manage the sources and rules of scenario initial values, increasing the complexity of modeling and simulation design. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a method, device, equipment and medium for configuring a simulation model, which solves the above problems existing in the prior art, can determine the scenario initial values of scenario members through various configured scenario modes, and supports the flexible initialization of complex simulation models.
[0005] In a first aspect, the present invention provides a method for configuring a simulation model, the method comprising:
[0006] Obtain a target simulation model; wherein, the target simulation model is constructed by using object-oriented modeling technology based on a modeling method involving objects, relationships, and processes for systems engineering; the target simulation model includes: a plurality of object instances; any object instance corresponds to an instance value; the instance value is used to characterize the attribute data of the corresponding object instance;
[0007] In response to a scenario view selection operation triggered by a user, match the target object instances corresponding to the scenario view selected by the user from different configured scenario views and different target object instance comparison tables; wherein, the target object instance is an object instance bound to input parameters in the scenario view of the target simulation model;
[0008] For any target object instance, in response to the scenario selection operation triggered by the user, determine the initial scenario value of the target object instance in the scenario mode selected by the user; wherein, the scenario mode is used to assume the initial scenario value of the target object instance; the initial scenario value is used to represent the attribute data of the target object instance when the target simulation model starts running;
[0009] Update the instance value of each target object instance to the initial scenario value to obtain the response configuration of the target simulation model under the scenario view selection operation and the scenario mode selection operation, so that the target simulation model performs simulation under the scenario view with the response configuration.
[0010] In an alternative embodiment, the scenario modes include: custom scenario, data table scenario, data dictionary scenario, and preset scenario; different scenario modes have different priorities;
[0011] The custom scenario is to assume the initial scenario value of each target object instance in a user-defined manner;
[0012] The data table scenario is to assume the initial scenario value of each target object instance by importing a data table containing the initial scenario values of all target object instances;
[0013] The data dictionary scenario is to assume the initial scenario value of each target object instance by selecting the corresponding initial scenario value for each target object instance from the configured data dictionaries of different target object instances;
[0014] The preset scenario is to use the preset initial values pre-configured for each target object instance as the initial scenario values of the corresponding target object instances.
[0015] In an alternative embodiment, in response to the scenario mode selection operation triggered by the user, determining the initial scenario value of the target object instance in the scenario mode selected by the user includes:
[0016] For any target object instance, in response to the user's operation of selecting a scenario mode from the custom scenario, data table scenario, preset scenario, and data dictionary scenario, use the scenario mode selected by the user as the target scenario mode;
[0017] In response to the user's operation of setting the initial scenario value in the target scenario mode, determine the initial scenario value set by the user in the target scenario mode as the initial scenario value of the target object instance in the target scenario mode.
[0018] In an alternative embodiment, each object instance corresponds to a data structure; object instances with different data structures correspond to a data structure preset value;
[0019] The priorities of the aforementioned custom scenario, data table scenario, and data dictionary scenario are higher than the priority of the preset scenario; the priority of the preset scenario is higher than the priority of the preset value of the data structure.
[0020] In an alternative embodiment, the method further includes:
[0021] If any target object instance corresponds to a scenario initial value under different scenario modes, then use the scenario initial value corresponding to the scenario mode with the highest priority as the target scenario initial value;
[0022] Update the instance value of the target object instance to the target scenario initial value to obtain the response configuration of the target simulation model under the scenario view selection operation and the target scenario mode selection operation.
[0023] In an alternative embodiment, each data structure corresponds to a constraint;
[0024] After obtaining the target scenario initial value of the target object instance, the method further includes:
[0025] If the target scenario initial value does not meet the constraint corresponding to the data structure of the target object instance, then generate a re-scenario prompt.
[0026] In an alternative embodiment, the method further includes:
[0027] Based on the response configuration of the target simulation model under the scenario view selection operation, different scenario mode selection operations, and the corresponding setting of scenario initial values, generate a response plan corresponding to the scenario view, so that the target simulation model performs simulation using the scenario initial value corresponding to the response plan under the scenario view;
[0028] Based on the response configuration of the target simulation model under different scenario view selection operations, different scenario mode selection operations, and the corresponding setting of scenario initial values, generate response plans corresponding to different scenario views, so that the target simulation model performs simulations under different scenario views using the response plans.
[0029] In a second aspect, the present invention provides an initialization device for a simulation model, the device includes:
[0030] An acquisition unit, configured to acquire a target simulation model; wherein, the target simulation model is constructed using object-oriented modeling technology based on a modeling method involving objects, relationships, and processes for systems engineering; the target simulation model includes: a plurality of object instances; each object instance corresponds to an instance value; the instance value is used to characterize the attribute data of the corresponding object instance;
[0031] A matching unit, configured to, in response to a scenario view selection operation triggered by a user, match, from a configured comparison table of different scenario views and different target object instances, a target object instance corresponding to the scenario view selected by the user; wherein the target object instance is an object instance of the target simulation model bound to input parameters under the scenario view.
[0032] A determination unit, configured to, for any target object instance, in response to a scenario assumption mode selection operation triggered by the user, determine an initial scenario assumption value of the target object instance in the scenario assumption mode selected by the user; wherein the scenario assumption mode is used to assume the initial scenario assumption value of the target object instance; and the initial scenario assumption value is used to represent the attribute data of the target object instance when the target simulation model starts running.
[0033] A configuration unit, configured to update the instance value of each target object instance to the initial scenario assumption value, to obtain a response configuration of the target simulation model under the scenario view selection operation and the scenario assumption mode selection operation, so that the target simulation model performs simulation under the scenario view with the response configuration.
[0034] In a third aspect, the present invention provides an electronic device, including 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;
[0035] The memory is configured to store a computer program;
[0036] The processor is configured to, when executing the program stored on the memory, implement the method according to any one of the foregoing embodiments.
[0037] In a fourth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method according to any one of the foregoing embodiments is implemented.
[0038] This application significantly improves the initialization efficiency and accuracy of the simulation scenario: the user can flexibly select the source of the initial scenario assumption value according to needs to meet the configuration requirements of different simulation scenarios; through clear priority rules, data conflicts are avoided to ensure the logical consistency of the initial scenario assumption value; combined with the initial scenario assumption value binding rule, accurate scenario assumption support for complex dynamic scenarios is realized.
[0039] This application supports diversified scenario assumption modes and switching mechanisms, a solution to the initial value conflict based on priority, a dynamic binding rule, and a real-time consistency check function.
[0040] This application sets the initial values of scenario members through the diversification of data sources and the dynamic adjustment mechanism, and realizes the flexible initialization of complex simulation models through a unified rule parsing framework. Description of the Drawings
[0041] 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, without creative efforts, other relevant drawings can also be obtained based on these drawings.
[0042] Figure 1 Flowchart of a method for configuring a simulation model provided by an embodiment of this application;
[0043] Figure 2 Structural schematic diagram of a device for configuring a simulation model provided by an embodiment of this application;
[0044] Figure 3 Structural schematic diagram of an electronic device provided by an embodiment of this application. Detailed Embodiments
[0045] The following will clearly and completely describe the technical solutions in the embodiments of this application in conjunction with 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.
[0046] The configuration method of the simulation 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 that provides 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.
[0047] The following describes the preferred embodiments of the present application with reference to the accompanying drawings. 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.
[0048] Figure 1 It is a schematic flowchart of a configuration method of a simulation model provided by an embodiment of the present application. As Figure 1 shown, the method may include:
[0049] Step S110: Obtain a target simulation model; in response to a scenario view selection operation triggered by a user, match the target object instance corresponding to the scenario view selected by the user from different configured scenario views and different target object instance comparison tables.
[0050] In the embodiments of the present application, the target simulation model is constructed by using object-oriented modeling technology based on a modeling method involving objects, relationships, and processes for systems engineering.
[0051] In the embodiments of the present application, the target simulation model includes: object instances, relationships, processes, types, and instances; among them, object instances are entities or instances in systems engineering; relationships are the bonds connecting two or more object instances and processes, used to describe the dependencies and interaction relationships between things; processes are units with specific inputs, outputs, and operation logics, used for a certain function or behavior; types are templates of object instances, used to define the common attributes and methods of a group of object instances; instances are an instantiated expression, and instances are the specific implementations of types, including members, parameters, and temporary members, etc.; members are components of types; parameters are the input or output data passed to processes, used to affect the behavior or calculation results of processes during execution; temporary members are temporary variables generated during the execution of processes.
[0052] In the embodiments of the present application, in the scenario view, the target simulation model binds the parameters of the process through object instances; the incoming parameters are affected by setting the instance values of the corresponding object instances during scenario planning; only object instances of basic types (such as member parameters, etc.) have instance values, so only the target object instances of basic types need to be set.
[0053] In the embodiments of the present application, for a target simulation model, the user can select one or more scenario views, so as to perform simulation deduction in the same scenario view or different scenario views.
[0054] In the embodiments of the present application, the target simulation model contains multiple object instances; the target object instance is the object instance bound (or associated) with the input parameters in this scenario view of the target simulation model, that is, in the present application, it is not necessary to set the initial values for all object instances, but only for some object instances; more precisely, the target object instance is the object instance responsible for parameter input in this scenario view of the target simulation model, that is, the object instance located at the starting point of the parameter transfer process; the target object instances in different scenario views can be the same or different; the target object instance corresponds to a preset initial value in different scenario views.
[0055] In the embodiments of the present application, the user's operations are completed on the graphical user interface of the target simulation model.
[0056] In the embodiments of the present application, any object instance corresponds to an instance value and a data structure; the instance value is used to represent the attribute data of the corresponding object instance.
[0057] Step S120: For any target object instance, in response to the scenario planning method selection operation triggered by the user, determine the scenario planning initial value of the target object instance in the scenario planning method selected by the user.
[0058] In the embodiments of the present application, the scenario setting method is used to set the initial values of the target object instances; the initial values are used to represent the initial attribute data of the target object instances when the target simulation model starts running.
[0059] In the embodiments of the present application, there are multiple scenario setting methods. Before setting the initial values, the user needs to select a scenario setting method first. The scenario setting methods include: custom scenario setting, data table scenario setting, data dictionary scenario setting, and preset scenario setting; different scenario setting methods have different priorities.
[0060] In the embodiments of the present application, custom scenario setting is to set the initial values of each target object instance in a user-defined manner; the user manually defines the initial values to support quick response to personalized requirements.
[0061] In the embodiments of the present application, data table scenario setting is to set the initial values of each target object instance by importing a data table containing the initial values of all target object instances; the initial values are provided by an external data table to achieve rapid configuration and automated processing of large-scale data. Specifically, each target object instance corresponds to an object instance ID. The corresponding target object instance in the data table is matched according to the object instance ID, and the corresponding initial values in the data table are defined according to the field names of the initial values, so as to set the initial values of each target object instance.
[0062] In the embodiments of the present application, data dictionary scenario setting is to set the initial values of each target object instance by selecting the corresponding initial values for each target object instance from the data dictionaries of different configured target object instances; appropriate values are selected from the system-predefined data dictionaries to ensure data consistency and standardization. Specifically, the specific value of any target object instance or a range can be defined in the data dictionary. If it is a range, the initial values are set within the corresponding range.
[0063] In the embodiments of the present application, preset scenario setting is to use the preset initial values pre-configured for each target object instance as the initial values of the corresponding target object instances; the preset initial values configured for the object instances do not need to be input additionally, which is applicable to simulation scenarios that do not require special adjustment.
[0064] In the embodiments of the present application, the scenario view can use the members (object instances) of the types in the model engineering, or new members can be created as needed in the scenario view (the scenario itself is a special type). Therefore, the members that need to be set may come from the types modeled previously or belong to the current "scenario class".
[0065] In a simulation model, multiple scenarios can be designed as needed. When formulating scenarios, it is based on the scenario view. Therefore, the same members modeled previously can be used in multiple scenario views as needed. In the embodiments of the present application, any object instance corresponds to a data structure, and a preset value of a data structure corresponds to an object instance of a different data structure; the preset value of the data structure corresponds to a priority.
[0066] In the embodiments of the present application, the priorities of custom scenario formulation, data table scenario formulation, and data dictionary scenario formulation are higher than the priority of preset scenario formulation; the priority of preset scenario formulation is higher than the priority of the preset value of the data structure; only one of the three scenario formulation methods of custom scenario formulation, data table scenario formulation, and data dictionary scenario formulation can be selected. Therefore, the priorities of these three scenario formulation methods have no difference and are all the highest priorities; however, the preset scenario formulation is based on the value of the target object instance in the target simulation model; when a scenario initial value needs to be selected, if there are corresponding scenario initial values for custom scenario formulation, data table scenario formulation, and data dictionary scenario formulation, they are preferentially selected; if not, the preset initial value corresponding to the preset scenario formulation is selected, and the value of the preset scenario formulation always exists; if there is no value of the preset scenario formulation, the preset value of the data structure is selected.
[0067] In the embodiments of the present application, the value of the preset scenario formulation always exists. Only when the scenario formulation method of the preset scenario formulation is selected, the value of the preset scenario formulation will be used as the scenario initial value; when other scenario formulation methods except the preset scenario formulation are selected, the values corresponding to other scenario formulation methods will overwrite the value of the preset scenario formulation.
[0068] In the embodiments of the present application, that is, the custom scenario value (or the value of the data table scenario formulation or the value of the data dictionary scenario formulation) > the value set in the model (i.e., the preset initial value corresponding to the preset scenario formulation) > the data type default value (i.e., the preset value of the data structure); the value set in the model and the data type default value (i.e., the preset value of the data structure) are both a kind of "preset scenario value".
[0069] In the embodiments of the present application, when there is no scenario initial value for custom scenario formulation, it will sequentially fallback to the data source of the next lower priority to ensure data integrity.
[0070] In the embodiments of the present application, the type of the object instance is a basic type, a custom type, or other types; among them, the basic types include: floating point number, integer, string, boolean, time, date, and date and time; the scenario formulation methods for different types of objects can be the same or different; for example, it can be set that an object instance of a basic type can select any one of the four scenario formulation methods; while an object instance of a custom type can only select data table scenario formulation; it can also be set that an object instance of a basic type can select any one of the 4 scenario formulation methods, while custom types and other types cannot perform scenario formulation.
[0071] In an embodiment of the present application, the preset values of the data structures corresponding to different types of object instances are shown in Table 1:
[0072] Table 1 Preset values of data structures
[0073] Data Structure Data Structure Default Value Remarks Floating Point Number 0.0 Integer 0 String Empty String "" Not null Boolean false Time 00:00:00 Date 1970-01-01 Date and Time 1970-01-01 00:00:00 Enumeration Randomly Select One from Several Enumerations
[0074] In an embodiment of the present application, after the target simulation model has been constructed, the role of the scene view itself is to concatenate the running logics of these types of processes and bind parameter binding instances, and subsequent deductions are also based on the scene view. The scene view itself is also a special type. For this scene design, a member "number of plates" is added to bind the input parameters of the process.
[0075] In the process of parsing the target simulation model, first, it is parsed that this type is an integer, so the number of plates is initially 0. Then, it is confirmed whether there is a default value in the model. If so, it is overwritten. Then, the scenario configuration and production are confirmed. If so, it is overwritten again; it can also be expanded as needed to make scenarios for sub-instances.
[0076] In an embodiment of the present application, in response to the scenario selection operation triggered by the user, determine the initial scenario value of the target object instance in the scenario mode selected by the user, including:
[0077] For any target object instance, in response to the user's operation of selecting a scenario mode from custom scenario, data table scenario, preset scenario, and data dictionary scenario, take the scenario mode selected by the user as the target scenario mode;
[0078] In response to the user's operation of setting the initial scenario value in the target scenario mode, take the initial scenario value set by the user in the target scenario mode as the initial scenario value of the target object instance in the target scenario mode.
[0079] In an embodiment of the present application, when the target scenario mode is the preset scenario, the corresponding initial value of the preset scenario cannot be set by the user, but directly obtain the corresponding preset initial value and output it as the initial scenario value.
[0080] In an embodiment of the present application, if in a response configuration, any target object instance corresponds to an initial scenario value in different target scenario modes, then take the initial scenario value corresponding to the target scenario mode with the highest priority as the target initial scenario value; update the instance value of the target object instance to the target initial scenario value to obtain the response configuration of the target simulation model under the scene view selection operation and the target scenario mode selection operation.
[0081] Step S130: Update the instance values of each target object instance to the assumed initial values to obtain the response configuration of the target simulation model under the scenario view selection operation and the assumed mode selection operation, so that the target simulation model performs simulation under the scenario view with the response configuration.
[0082] In the embodiments of the present application, under one response configuration, one object instance can only select one assumed mode; however, one scenario view can have multiple response configurations, and the assumed modes of the same object instance under different response configurations can be the same or different; the assumed initial values of the same object instance under the same assumed mode or different assumed modes under each assumed configuration can be the same or different.
[0083] In the embodiments of the present application, the data structure of the object instance corresponds to a constraint. In the embodiments of the present application, after obtaining the target assumed initial value of the target object instance, the method further includes: if the target assumed initial value does not meet the constraint corresponding to the data structure of the target object instance, generate a re-assumed prompt; that is, during the assumption process, if the assumed value of the data is not within the value range (i.e., the constraint corresponding to the data structure), verification will be performed.
[0084] In the embodiments of the present application, based on the response configuration of the target simulation model under the scenario view selection operation, different assumed mode selection operations, and the corresponding setting of the assumed initial value operations, generate the response plan corresponding to the scenario view, so that the target simulation model performs simulation under the scenario view with the assumed initial value corresponding to the response plan; based on the response configuration of the target simulation model under different scenario view selection operations, different assumed mode selection operations, and the corresponding setting of the assumed initial value operations, generate the response plans corresponding to different scenario views, so that the target simulation model performs simulation under different scenario views with the response plans.
[0085] In the embodiments of the present application, according to the assumed initial values of each target object instance under the assumed mode selected by the user, obtain a response configuration of the updated target simulation model; based on the different assumed initial values of each target object instance under different assumed modes selected by the user, obtain multiple response configurations of the updated target simulation model; based on the multiple response configurations, obtain all the response configurations corresponding to this scenario view; based on all the response configurations corresponding to different scenario views, obtain all the response configurations of this target simulation model, and the target simulation model performs simulation deduction under all the response configurations.
[0086] The present application directly switches the assumed configuration method through the interface without reconstructing the model, improving the efficiency of assumption and simulation; at the same time, it real-time checks the matching relationship between the assumed initial value and the data structure, prompts the user to adjust the configuration, and avoids model errors caused by type conflicts.
[0087] In the embodiments of the present application, the object instance can also be a set or a map; when the object instance is a list, an array, or a set, only the initial value needs to be assumed; if the object instance is a map, the key and the initial value need to be assumed separately.
[0088] In the embodiments of the present application, for non-sets: the initial quantity is 1; the initial quantity of a set (in the target simulation model: Source Member -> Property Panel -> Set Parameter -> Length Field).
[0089] In the embodiments of the present application, when the object instance is a list or an array, the initial values can be repeated, so the user can allocate data and determine how many repeated values there are.
[0090] In the embodiments of the present application, when the object instance is a set, the initial values cannot be repeated, so according to the length, the corresponding number of members is tiled; as shown in Table 2:
[0091] Table 2
[0092] Name Initial Quantity Member Name 1 / 2 Member Name 1 / 2
[0093] In the embodiments of the present application, when the object instance is a map, since the initial values corresponding to the key types cannot be repeated, so according to the length, the corresponding number of members is tiled; as shown in Table 3:
[0094] Table 3
[0095] Name Initial Quantity Member Name 1 / 2 Key - Key Type Name Value - Value Type Name Member Name 1 / 2 Key - Key Type Name Value - Value Type Name
[0096] In the embodiments of the present application, the length has multiple different types (data structures), and the corresponding symbols for different types of lengths are also different; and the assumed initial values and display values corresponding to different symbols are different, and the verification ranges are also different; including: set to a positive integer in the target simulation model, the assumed display value set cannot be modified; set to? in the target simulation model, the assumed default display is 1, which can be modified, and the value range is 0 or 1; set to * in the target simulation model, the assumed default display is 1, which can be modified, and the verification range is a non-negative integer; set to + in the target simulation model, the assumed default display is 1, which can be modified, and the verification range is a positive integer.
[0097] Corresponding to the above method, the embodiments of the present application also provide an initialization device for a simulation model, as Figure 2 shown, the initialization device for the simulation model includes:
[0098] An acquisition unit 210 is configured to acquire a target simulation model. The target simulation model is constructed by using object-oriented modeling techniques based on a modeling method involving objects, relationships, and processes for systems engineering. The target simulation model includes a plurality of object instances. Any object instance corresponds to an instance value, and the instance value is used to represent the attribute data of the corresponding object instance.
[0099] A matching unit 220 is configured to, in response to a scene view selection operation triggered by a user, match a target object instance corresponding to the scene view selected by the user from a configured comparison table of different scene views and different target object instances. The target object instance is an object instance in the target simulation model that is bound to input parameters under the scene view.
[0100] A determination unit 230 is configured to, for any target object instance, in response to a scenario assumption method selection operation triggered by the user, determine an initial scenario assumption value of the target object instance under the scenario assumption method selected by the user. The scenario assumption method is used to assume the initial scenario assumption value of the target object instance, and the initial scenario assumption value is used to represent the attribute data of the target object instance when the target simulation model starts running.
[0101] A configuration unit 240 is configured to update the instance value of each target object instance to the initial scenario assumption value to obtain a response configuration of the target simulation model under the scene view selection operation and the scenario assumption method selection operation, so that the target simulation model performs simulation under the scene view with the response configuration.
[0102] The functions of the functional units of the simulation model initialization device 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 simulation model initialization device provided in the embodiments of the present application will not be repeated here.
[0103] The 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. The processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340.
[0104] The memory 330 is used to store a computer program.
[0105] When the processor 310 executes the program stored in the memory 330, the following steps are implemented:
[0106] Obtain a target simulation model; wherein, the target simulation model is constructed by using object-oriented modeling technology based on a modeling method involving objects, relationships, and processes for systems engineering; the target simulation model includes: a plurality of object instances; any object instance corresponds to an instance value; the instance value is used to represent the attribute data of the corresponding object instance;
[0107] In response to a scenario view selection operation triggered by a user, match the target object instance corresponding to the scenario view selected by the user from different configured scenario views and different target object instance comparison tables; wherein, the target object instance is the object instance bound to the input parameters in the scenario view of the target simulation model;
[0108] For any target object instance, in response to a scenario assumption mode selection operation triggered by the user, determine the initial scenario assumption value of the target object instance in the scenario assumption mode selected by the user; wherein, the scenario assumption mode is used to assume the initial scenario assumption value of the target object instance; the initial scenario assumption value is used to represent the attribute data of the target object instance when the target simulation model starts to run;
[0109] Update the instance value of each target object instance to the initial scenario assumption value to obtain the response configuration of the target simulation model under the scenario view selection operation and the scenario assumption mode selection operation, so that the target simulation model performs simulation under the scenario view with the response configuration.
[0110] The communication bus mentioned above can 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 convenience 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.
[0111] The communication interface is used for communication between the above-mentioned electronic device and other devices.
[0112] The memory can include a Random Access Memory (RAM), and can also include a Non-Volatile Memory (NVM), such as at least one disk memory. Optionally, the memory can also be at least one storage device located far from the aforementioned processor.
[0113] The above-mentioned 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.
[0114] Since the implementation manners and beneficial effects of the various devices of the electronic device in the above embodiments can be realized by referring to the Figure 1 steps in the 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 repeated here.
[0115] 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 configuration method of the simulation model described in any one of the above embodiments.
[0116] 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 configuration method of the simulation model described in any one of the above embodiments.
[0117] Those skilled in the art should understand that the embodiments in the embodiments of the present application can be provided as methods, systems, or computer program products. 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.
[0118] 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 devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.
[0119] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing devices to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.
[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing devices, such that a series of operation steps are executed on the computer or other programmable devices to generate a computer-implemented process, so that the instructions executed on the computer or other programmable devices provide steps for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.
[0121] 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 to include the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0122] 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 of the present application also intend to include these changes and variations.
Claims
1. A configuration method for a simulation model, characterized in that, The method includes: Obtaining a target simulation model; wherein, the target simulation model is constructed by using object - oriented modeling technology based on a modeling method involving objects, relationships, and processes for systems engineering; the target simulation model includes: multiple object instances; any object instance corresponds to an instance value; the instance value is used to characterize the attribute data of the corresponding object instance; In response to a scenario view selection operation triggered by the user, matching, from different configured scenario views and different target object instance comparison tables, the target object instance corresponding to the scenario view selected by the user; wherein, the target object instance is the object instance in the scenario view where the input parameters are bound in the target simulation model; For any target object instance, in response to a scenario - setting method selection operation triggered by the user, determining the scenario - setting initial value of the target object instance in the scenario - setting method selected by the user; wherein, the scenario - setting method is used to set the scenario - setting initial value of the target object instance; the scenario - setting initial value is used to characterize the attribute data of the target object instance when the target simulation model starts running; Updating the instance value of each target object instance to the scenario - setting initial value, obtaining the response configuration of the target simulation model under the scenario view selection operation and the scenario - setting method selection operation, so that the target simulation model performs simulation under the scenario view with the response configuration.
2. The method according to claim 1, characterized in that, The scenario - setting methods include: custom scenario - setting, data - table scenario - setting, data - dictionary scenario - setting, and preset scenario - setting; the priorities of different scenario - setting methods are different; The custom scenario - setting is to set the scenario - setting initial value of each target object instance in a user - defined way; The data - table scenario - setting is to set the scenario - setting initial value of each target object instance by importing a data table containing the scenario - setting initial values of all target object instances; The data - dictionary scenario - setting is to set the scenario - setting initial value of each target object instance by selecting the corresponding scenario - setting initial value for each target object instance from the data dictionaries of different configured target object instances; The preset scenario - setting is to use the preset initial values pre - configured for each target object instance as the scenario - setting initial values of the corresponding target object instances.
3. The method according to claim 2, wherein In response to a scenario - setting method selection operation triggered by the user, determining the scenario - setting initial value of the target object instance in the scenario - setting method selected by the user includes: For any target object instance, in response to the user's operation of selecting a scenario - setting method from custom scenario - setting, data - table scenario - setting, preset scenario - setting, and data - dictionary scenario - setting, taking the selected scenario - setting method as the target scenario - setting method; In response to the user's operation of setting the scenario - setting initial value in the target scenario - setting method, determining the scenario - setting initial value set by the user in the target scenario - setting method as the scenario - setting initial value of the target object instance in the target scenario - setting method.
4. The method according to claim 2, wherein Each object instance corresponds to a data structure; object instances with different data structures correspond to a data - structure preset value; The priorities of the custom scenario - setting, data - table scenario - setting, and data - dictionary scenario - setting are higher than the priority of the preset scenario - setting; the priority of the preset scenario - setting is higher than the priority of the data - structure preset value.
5. The method according to claim 4, wherein The method further includes: If any target object instance corresponds to a scenario initial value under different scenario assumption modes, then use the scenario initial value corresponding to the scenario assumption mode with the highest priority as the target scenario initial value; Update the instance value of the target object instance to the target scenario initial value to obtain the response configuration of the target simulation model under the scenario view selection operation and the target scenario assumption mode selection operation.
6. The method according to claim 5, characterized in that, Any data structure corresponds to a constraint; After obtaining the target scenario initial value of the target object instance, the method further includes: If the target scenario initial value does not satisfy the constraint corresponding to the data structure of the target object instance, then generate a re-scenario prompt.
7. The method according to claim 1, wherein The method further includes: Based on the response configuration of the target simulation model under the scenario view selection operation, different scenario assumption mode selection operations, and the corresponding set scenario initial value operations, generate a response plan corresponding to the scenario view, so that the target simulation model performs simulation with the scenario initial value corresponding to the response plan under the scenario view; Based on the response configuration of the target simulation model under different scenario view selection operations, different scenario assumption mode selection operations, and the corresponding set scenario initial value operations, generate response plans corresponding to different scenario views, so that the target simulation model performs simulation under different scenario views with the response plans.
8. An initialization device for a simulation model, characterized in that, The device includes: An acquisition unit, configured to acquire a target simulation model; wherein, the target simulation model is constructed by using an object-oriented modeling technique based on a modeling method involving objects, relationships, and processes for systems engineering; the target simulation model includes: a plurality of object instances; any object instance corresponds to an instance value; the instance value is used to characterize the attribute data of the corresponding object instance; A matching unit, configured to, in response to a scenario view selection operation triggered by a user, match the target object instance corresponding to the scenario view selected by the user from a configured table of different scenario views and different target object instances; wherein, the target object instance is an object instance bound to input parameters by the target simulation model under the scenario view; A determination unit, configured to, for any target object instance, in response to a scenario assumption mode selection operation triggered by the user, determine the scenario initial value of the target object instance in the scenario assumption mode selected by the user; wherein, the scenario assumption mode is used to assume the scenario initial value of the target object instance; the scenario initial value is used to characterize the attribute data of the target object instance when the target simulation model starts running; A configuration unit, configured to update the instance value of each target object instance to the scenario initial value to obtain the response configuration of the target simulation model under the scenario view selection operation and the scenario assumption mode selection operation, so that the target simulation model performs simulation under the scenario view with the response configuration.
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 complete communication with each other through the communication bus; The memory is used for storing a computer program; A processor, when executing a program stored in a memory, implements the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1-7 is implemented.
Citation Information
Cited By
Object completion method and device, equipment, storage medium and program product
CN120632324A
Object completion method, apparatus, device, storage medium and program product
CN120632324B