An operating system for scheduling and running digital twin models

By adjusting the memory scheduling strategy and adjusting the number of memory mapped files in the operating system of the digital twin model, the problem of degradation of simulation stability caused by excessive operating system operation process is solved, and the operation stability and simulation of the digital twin model are improved Accuracy.

CN118585344BActive Publication Date: 2024-11-26JINGHANG WEITAI AUTOMATIC TEST EQUIP BEIJING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411068017.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-26
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

In the prior art, due to excessive operating system operation, the digital twin model operation blockages, resulting in a decrease in the stability of the simulation.

Method used

An operating system for scheduling and operation of digital twin models is designed, including data acquisition module, interaction module, scheduling module, model update module and simulation control module. By adjusting the process control strategy of the memory scheduling unit and according to the operation The error duration ratio and memory fragmentation bytes adjust the number of types of memory mapped files and update density thresholds to improve simulation stability.

Benefits of technology

By adjusting memory scheduling strategies and reducing memory fragmentation, the operating stability and simulation accuracy of the digital twin model are improved, and the stability and efficiency of the operating system are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585344B_ABST
    Figure CN118585344B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of electrical data processing technology, and in particular to an operating system for scheduling and running a digital twin model, comprising: a data acquisition module for collecting status information of a number of digital twin basic models; an interaction module for integrating the overall digital twin models into a whole through a number of digital twin interaction models; a scheduling module, comprising a model scheduling unit and a memory scheduling unit; a model update module for updating the overall digital twin model; and a simulation control module for adjusting the first process control strategy of the memory scheduling unit according to the operating error duration ratio of the overall digital twin model or adjusting the number of types of memory mapping files according to the byte amount of memory fragments or adjusting the update density threshold of the overall digital twin model according to the linear fit between the scheduling times of cloud data and the growth amount of memory fragments. The present invention achieves improved simulation stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electrical data processing, and in particular to an operating system for scheduling and running a digital twin model. Background Art

[0002] The Model Operating System (ModelOS) is a secondary operating system (Meta Operating System) running on the operating system, providing a unified operation and management platform for the digital twin model. The Model OS provides a unified operation and synchronization management mechanism for the sub-digital twin models of each scale in the digital twin model and the multi-dimensional models of the information domain, energy domain, and material domain, and fully maps the change process of the information flow, energy flow, and material flow of the corresponding physical entity in digital space and time. The Model OS provides three-dimensional geometric space management and unified time management for the digital twin model, and implements the information-physical system abstraction layer to provide a virtual-real data interaction mechanism for the real-time digital twin mapping between the digital twin model and the corresponding physical entity.

[0003] China Patent Publication No.: CN113837550A discloses a rescheduling method, system and device based on digital twins, wherein the method includes obtaining and comparing the sampling model at time T-1 and the deductive model at time T-1 to obtain a first deviation value; the deductive model at time T-1 is obtained based on the sampling model at time T; the digital twin model is corrected according to the first deviation value; the rescheduling threshold is corrected based on the corrected digital twin model; the rescheduling threshold is pre-stored; the sampling model at time T+1 and the deductive model at time T+1 are obtained to obtain a second deviation value; if the second deviation value does not meet the corrected rescheduling threshold, rescheduling is performed according to the preset rules. The embodiment of the present invention applies the digital twin model to the rescheduling judgment of the dynamic scheduling of the production line, so that it can better reflect the characteristics of the man-machine-material-method loop and achieve more accurate scheduling. It can be seen that the rescheduling method, system and device based on digital twins have the problem that the operation of the digital twin model is blocked due to too many running processes of the operating system, resulting in errors, which in turn leads to a decrease in the stability of the simulation. Summary of the invention

[0004] To this end, the present invention provides an operating system for scheduling the operation of a digital twin model, so as to overcome the problem in the prior art that due to too many running processes of the operating system being blocked, errors in the operation of the digital twin model occur, which in turn leads to a decrease in the stability of the simulation.

[0005] To achieve the above object, the present invention provides an operating system for scheduling and running a digital twin model, comprising:

[0006] A data acquisition module is used to collect status information of several digital twin basic models;

[0007] An interaction module, which is connected to the data acquisition module and is used to integrate several digital twin basic models into an overall digital twin model;

[0008] A scheduling module, which is connected to the data acquisition module and the interaction module respectively, and includes a model scheduling unit for scheduling the plurality of digital twin basic models and a memory scheduling unit for allocating the total running memory;

[0009] A model updating module, connected to the interaction module, for updating the overall digital twin model;

[0010] A simulation control module, which is respectively connected to the data acquisition module, the interaction module, the scheduling module and the model update module, and is used to determine the simulation stability according to the operation error duration ratio of the overall digital twin model, and, when it is determined that the simulation stability does not meet the requirements, adjust the first process control strategy of the memory scheduling unit or determine the stability of the memory scheduling according to the byte amount of the memory fragmentation,

[0011] And, when it is determined that the stability of memory scheduling does not meet the requirements, the number of types of memory mapping files is adjusted or the update density threshold of the overall digital twin model is adjusted according to the linear fit between the number of scheduling times of cloud data and the growth amount of memory fragmentation.

[0012] Furthermore, the interaction module includes:

[0013] An information interaction unit is used to establish an interaction channel for information input and output parameters between the basic models of the digital twins according to the logical architecture of the overall digital twin model;

[0014] The energy interaction unit is used to establish the interaction channel of energy input and output parameters between the basic models of the digital twins according to the logical architecture of the overall digital twin model;

[0015] The material interaction unit is used to establish an interaction channel for material input and output parameters between the basic models of each digital twin according to the logical architecture of the overall digital twin model.

[0016] Furthermore, the operating system also includes a simulation engine connected to the interaction module and the scheduling module respectively for creating a simulation process.

[0017] Furthermore, the control module calculates the operating error duration ratio of the overall digital twin model according to the duration of the error in the overall digital twin model per unit time and the total duration per unit time.

[0018] The control module determines that the simulation stability does not meet the requirement under the preset first duration ratio condition, and adjusts the first process control strategy currently running in the memory scheduling unit to the second process control strategy;

[0019] Among them, the preset first duration ratio condition is that the operating error duration ratio of the overall digital twin model is greater than the preset second duration ratio.

[0020] Furthermore, the calculation formula for the operating error duration ratio of the overall digital twin model is:

[0021]

[0022] Among them, M is the proportion of the running error time of the overall digital twin model, A1 is the duration of the error of the overall digital twin model per unit time, and A2 is the total duration per unit time.

[0023] Further, the first process control strategy is to terminate the blocked process that meets the preset number condition; the second process control strategy is to terminate the blocked process that meets the preset memory condition, and terminate the blocked process that does not meet the preset memory condition and meets the preset number condition;

[0024] Among them, the preset memory condition is that the total memory occupied by the blocked process is greater than the preset memory; the preset number condition is that the number of blocked processes that do not meet the preset memory condition is greater than or equal to the preset blocking number.

[0025] Furthermore, the control module preliminarily determines that the scheduling stability of the memory does not meet the requirement under the preset second duration ratio condition, and obtains the byte amount of the memory fragmentation.

[0026] The control module secondarily determines that the scheduling stability of the memory does not meet the requirement under the preset first byte amount condition, and increases the number of types of memory mapping files;

[0027] Among them, the preset second duration ratio condition is that the operating error duration ratio of the overall digital twin model is greater than the preset first duration ratio and is less than or equal to the preset second duration ratio; the preset first byte amount condition is that the byte amount of the memory fragmentation is greater than the preset second byte amount.

[0028] Furthermore, the number of types of the increased memory-mapped file is determined by a difference between the byte amount of the memory fragment and the preset second byte amount.

[0029] Further, the control module preliminarily determines that the accuracy of the model update does not meet the requirements under the preset second byte amount condition, and obtains the linear fit between the scheduling number of cloud data and the growth amount of fragments according to the number of scheduling of cloud data and the growth amount of fragments,

[0030] The control module secondarily determines that the accuracy of the model update does not meet the requirements under the preset linear fit condition, and reduces the update density threshold of the overall digital twin model;

[0031] Among them, the preset second byte amount condition is that the byte amount of the memory fragment is greater than the preset first byte amount and less than or equal to the preset second byte amount; the preset linear fit condition is that the linear fit between the scheduling number of the cloud data and the growth amount of the fragment is greater than the preset linear fit.

[0032] Furthermore, the reduced update density threshold of the overall digital twin model is determined by the difference between the linear fit of the scheduling times of the cloud data and the growth amount of the fragments and the preset linear fit.

[0033] Compared with the prior art, the beneficial effect of the present invention lies in that the operating system of the present invention adjusts the first process control strategy of the memory scheduling unit according to the proportion of the running error time of the overall digital twin model by setting a data acquisition module, an interaction module, a scheduling module, a model update module and a simulation control module. When the operating system runs multiple processes at the same time, the number of process blocking increases, and the blocking occupies too much memory, resulting in errors in the operation of the overall digital twin model. The first process control strategy of the memory scheduling unit is adjusted to reduce the impact of the blocking on the operation of the overall digital twin model, thereby improving the stability of the simulation; the number of types of memory mapping files is increased according to the byte amount of memory fragmentation, and frequent memory allocation and release cause memory fragmentation, resulting in a decrease in the stability of the system operation, and the memory scheduling stability is in an unstable state. The number of types of memory mapping files is increased to reduce the generation of memory fragmentation, thereby improving the stability of memory scheduling, and further achieving the improvement of simulation stability.

[0034] Furthermore, the operating system described in the present invention adjusts the first process control strategy of the memory scheduling unit according to the running error time ratio of the overall digital twin model by setting a preset first time ratio and a preset second time ratio. When the operating system runs multiple processes at the same time, the number of process blocking cases increases, and the blocking occupies too much memory, resulting in errors in the running of the overall digital twin model. The first process control strategy of the memory scheduling unit is adjusted to reduce the impact of blocking on the running of the overall digital twin model, thereby improving the stability of the simulation, thereby further achieving improved simulation stability.

[0035] Furthermore, the operating system described in the present invention increases the number of memory mapping file types according to the byte amount of memory fragmentation by setting a preset first byte amount and a preset second byte amount. Frequent memory allocation and release cause memory fragmentation, which leads to a decrease in the stability of system operation and an unstable state of memory scheduling stability. The number of memory mapping file types is increased to reduce the generation of memory fragmentation, thereby improving the stability of memory scheduling and further improving the stability of simulation.

[0036] Furthermore, the operating system of the present invention reduces the update density threshold of the overall digital twin model according to the linear fit of the scheduling times of cloud data and the growth amount of fragments by setting a preset linear fit. If the number of areas updated at a single time is too large, the possibility of virus invasion increases, which interferes with the operation of the model and the accuracy of the model update is inaccurate. The update density threshold of the overall digital twin model is reduced to reduce the degree of interference in the operation of the model, thereby improving the accuracy of the model update and further improving the stability of the simulation. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is an overall structural block diagram of an operating system for scheduling and running a digital twin model according to an embodiment of the present invention;

[0038] Figure 2 A specific structural block diagram of a scheduling module of an operating system for scheduling and running a digital twin model according to an embodiment of the present invention;

[0039] Figure 3 A specific structural block diagram of the overall digital twin model of the operating system used for scheduling and running the digital twin model according to an embodiment of the present invention;

[0040] Figure 4 This is a specific structural block diagram of the interactive module of the operating system used for scheduling and running the digital twin model in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0042] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0043] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0044] It should be pointed out that the data in this embodiment are obtained by the operating system for scheduling and running the digital twin model of the present invention based on historical test data and data statistics in the corresponding test process, test experiments and comprehensive analysis based on experimental results before this use; the operating system for scheduling and running the digital twin model of the present invention is cumulatively counted, detected and calculated within 90 days for the operation error duration ratio of the overall digital twin model, the byte amount of memory fragments, and the linear fit of the scheduling times of cloud data and the growth amount of memory fragments of 1124 cases before the current preparation, and comprehensively determines the values ​​of various preset parameter standards for the operating system for scheduling and running the digital twin model. It can be understood by those skilled in the art that the operating system for scheduling and running the digital twin model of the present invention can select the value with the highest proportion as the preset standard parameter according to the data distribution for determining the single parameter of the above parameters, as long as the operating system of the present invention can clearly define the different specific situations in the single determination process through the scheduling value.

[0045] See also Figure 1 , Figure 2 , Figure 3 as well as Figure 4 As shown, they are respectively an overall structural block diagram of an operating system for scheduling and running a digital twin model, a specific structural block diagram of a scheduling module, a specific structural block diagram of an overall digital twin model, and a specific structural block diagram of an interaction module. The present invention provides an operating system for scheduling and running a digital twin model, comprising:

[0046] A data acquisition module is used to collect status information of several digital twin basic models;

[0047] An interaction module, which is connected to the data acquisition module and is used to integrate several digital twin basic models into an overall digital twin model;

[0048] A scheduling module, which is connected to the data acquisition module and the interaction module respectively, and includes a model scheduling unit for scheduling the plurality of digital twin basic models and a memory scheduling unit for allocating the total running memory;

[0049] A model updating module, connected to the interaction module, for updating the overall digital twin model;

[0050] A simulation control module, which is respectively connected to the data acquisition module, the interaction module, the scheduling module and the model update module, and is used to determine the simulation stability according to the operation error duration ratio of the overall digital twin model, and, when it is determined that the simulation stability does not meet the requirements, adjust the first process control strategy of the memory scheduling unit or determine the stability of the memory scheduling according to the byte amount of the memory fragmentation,

[0051] And, when it is determined that the stability of memory scheduling does not meet the requirements, the number of types of memory mapping files is adjusted or the update density threshold of the overall digital twin model is adjusted according to the linear fit between the number of scheduling times of cloud data and the growth amount of memory fragmentation.

[0052] Specifically, a preferred embodiment of the scheduling module is a model scheduler.

[0053] Specifically, the model scheduler provides a standard simulation engine control interface to control the execution of the simulation engine, including simulation start, pause, and stop.

[0054] Specifically, the model scheduler can also exchange data with each simulation engine through a model-oriented distributed soft bus.

[0055] Specifically, the implementation of memory allocation of the memory scheduling unit mainly depends on model space management.

[0056] Specifically, the data acquisition module has the function of loading and reading the DTX file of the overall digital twin model, and interpreting the logical architecture information, physical structure information, functional model information, performance model information and material model information of the digital twin.

[0057] Specifically, the model operating system also includes:

[0058] A rendering module, which is connected to the data acquisition module and the simulation control module respectively, and is used to convert the state information into a three-dimensional rendering graphic;

[0059] The operating system abstraction layer is connected to the interaction module to hide the details of the underlying hardware and provide a unified interface and environment for the operation of the model.

[0060] Specifically, the operating system of the present invention can also support a GIS system.

[0061] Specifically, the GIS system can display massive amounts of three-dimensional model data.

[0062] Specifically, the operating system of the present invention also supports three-dimensional UI management.

[0063] Specifically, the three-dimensional model data includes image data, terrain elevation data and vector data.

[0064] Specifically, the 3D model format supports the 3DTiles format, and the vector data supports the GeoJSON and TopoJSON formats.

[0065] Specifically, the realization of the interactive functions of the interactive module mainly depends on the interaction mechanism between models.

[0066] Specifically, the interaction mechanism between models includes the information flow mapping mechanism between models, the energy flow mapping mechanism between models, and the material flow mapping mechanism between models.

[0067] Specifically, the mechanism refers to the structural relationship and operation mode between the modules of the operating system.

[0068] Specifically, the operating system of the present invention can also provide a virtual-real data interaction mechanism for the real-time digital twin mapping of the overall digital twin model and the corresponding physical entity through the information-physical system abstraction layer.

[0069] Specifically, the total running memory is allocated in such a way that when the operation of the overall digital twin model generates additional memory, the memory scheduling unit calls the total memory of the operating system to realize the normal operation of the overall digital twin model.

[0070] Specifically, the operating system of the present invention also has a collision detection mechanism.

[0071] Specifically, collision detection includes rigid body collision detection and ray collision detection.

[0072] Specifically, the rendering module also has a 64-bit color high-precision dynamic rendering pipeline, and supports real-time ray tracing and multi-level detail LOD (Level of Details) display functions.

[0073] Specifically, the operating system of the present invention also supports the loading, interpretation and display of simulation scenario assumption files, for example, directly restoring a previously saved simulation scenario by loading and reading a simulation scenario assumption file.

[0074] Specifically, the operating system of the present invention also supports guidance and control of simulation scenario assumptions.

[0075] Specifically, the control of simulation scenarios includes control of control objects, control of control processes, and control of events.

[0076] Specifically, the operating system of the present invention also supports integration of a third-party simulation engine.

[0077] Specifically, third-party simulation engines include STK track simulation engine, NS3 network simulation engine and MagicDraw SysML simulation engine.

[0078] Specifically, third-party simulation engines are driven by the model scheduler of the model operating system.

[0079] Specifically, each simulation engine interacts with the model operating system through the simulation engine proxy model.

[0080] Specifically, the simulation engine proxy model provides standard interfaces for the operating system, including a simulation control interface, a clock drive interface, and a data exchange interface.

[0081] Specifically, the scheduling module also includes:

[0082] The model time management unit is used to drive the simulation step size of the simulation engine based on the clock ticks of the system clock.

[0083] Specifically, the operating system also includes a simulation engine connected to the interaction module and the scheduling module respectively for creating a simulation process.

[0084] Specifically, the model operating system can be applicable to Window, Linux and RTOS.

[0085] Specifically, the operating system of the present invention establishes a mapping between the overall digital twin model and the real physical world through the information-physical space abstraction layer and realizes real-time interaction and synchronization between the overall digital twin model and the real physical world.

[0086] Specifically, the status information of the overall digital twin model includes the logical architecture information, physical structure information, functional model information, performance model information and material model information of the overall digital twin model.

[0087] Specifically, physical structure information includes configuration information of the server, node or other computing resources on which the operating system runs.

[0088] Specifically, the logical architecture information includes the overall design of the operating system, the interaction between modules, and the task scheduling process.

[0089] Specifically, the functional model information includes task scheduling, resource management, and the security of system operations.

[0090] Specifically, the performance model information includes response time, throughput, and operating system reliability.

[0091] Specifically, the material model information is the material resources required for the operating system, including electricity, network connection, and computer room.

[0092] Specifically, throughput refers to the tasks or data processed by the operating system per unit time.

[0093] Specifically, process blocking refers to a state in which a process encounters an emergency during execution and cannot continue to execute. It needs to wait until the emergency is handled or the system performs corresponding operations before it can continue to execute.

[0094] Specifically, emergencies include network freezes, process switching, and insufficient memory.

[0095] Specifically, the operating errors of the overall digital twin model include that the movement speed of the device model of the overall digital twin model is not equal to the preset movement speed, the startup freeze time of the overall digital twin model exceeds 0.2 seconds, and the control delay time of the overall digital twin model exceeds 0.1 seconds.

[0096] Specifically, memory fragmentation includes external fragmentation and internal fragmentation.

[0097] Those skilled in the art will appreciate that external fragmentation refers to small, scattered free spaces in the memory that are not used, and internal fragmentation refers to unused portions of allocated memory blocks.

[0098] Specifically, the types of memory-mapped files include fixed parameters of physical entities that are scheduled for storage and the update process of the overall digital twin model.

[0099] Specifically, memory-mapped files are a file I / O technology that maps file contents directly into the address space of a process.

[0100] Specifically, the fixed parameters of the physical entity include the size, height, and material of the physical entity.

[0101] Specifically, the distance between the update points of the model is the distance between processes or files.

[0102] Specifically, the update density threshold of the overall digital twin model is the minimum average distance between the update points of the digital twin model. The smaller the average distance between the update points of the model, the smaller the update range of the overall digital twin model.

[0103] Specifically, the average distance between the update points of the model is calculated as:

[0104]

[0105] Specifically, V is the average distance between the update points of the model, N t is the distance between the tth update points of the model, and L is the number of update points of the model.

[0106] Specifically, the distance between the update points of the model refers to the edit distance, and the update points of the model refer to the formula of the model mapping function of the overall digital twin model or the data in the mapping.

[0107] Specifically, the linear fit between the number of scheduling times of cloud data and the growth amount of memory fragmentation means the linear fit between the two parameters, specifically, a linear regression function image formed after linear regression analysis of the number of scheduling times of cloud data and the growth amount of memory fragmentation in a coordinate system consisting of the number of scheduling times of model update related data stored in the cloud database as the horizontal coordinate and the growth amount of memory fragmentation of the operating system as the vertical coordinate. The average value of the distance between a number of coordinate points consisting of the number of scheduling times of cloud data as the horizontal coordinate and the growth amount of memory fragmentation as the vertical coordinate and the straight line of the linear regression function image is a smaller average value, indicating a higher linear fit.

[0108] Specifically, the model update-related data includes the current operating status information of the operating system, the environment simulated by the overall digital twin model, and the historical operating data of the operating system.

[0109] Specifically, the interaction module includes:

[0110] An information interaction unit is used to establish an interaction channel for information input and output parameters between the basic models of the digital twins according to the logical architecture of the overall digital twin model;

[0111] The energy interaction unit is used to establish the interaction channel of energy input and output parameters between the basic models of the digital twins according to the logical architecture of the overall digital twin model;

[0112] The material interaction unit is used to establish an interaction channel for material input and output parameters between the basic models of each digital twin according to the logical architecture of the overall digital twin model.

[0113] Specifically, the method for the information interaction unit to establish the interaction channel of information input and output parameters between the basic models of each digital twin, the energy interaction unit to establish the interaction channel of energy input and output parameters, and the material interaction unit to establish the interaction channel of material input and output parameters is achieved by respectively setting the information domain model in the information interaction unit, the energy domain model in the energy interaction unit, and the material domain model in the material interaction unit.

[0114] Specifically, the information domain model includes the logical model and the algorithmic model;

[0115] Energy domain models include electrical energy model, thermal model, mechanical model and light energy model;

[0116] The material domain model includes geometric model, material model and finite element model.

[0117] Specifically, the finite element model is a mathematical model based on finite element analysis, which approximates the physical behavior of a complex system by dividing a continuous medium into a finite number of elements and defining nodes and attributes on these elements. It is a conventional technical means well known to those skilled in the art, so the specific construction process and specific structure of the finite element model will not be repeated here.

[0118] In implementation, the operating system of the present invention adjusts the first process control strategy of the memory scheduling unit according to the proportion of the running error time of the overall digital twin model by setting a data acquisition module, an interaction module, a scheduling module, a model update module and a simulation control module. When the operating system runs multiple processes at the same time, the number of process blocking increases, and the blocking occupies too much memory, resulting in errors in the operation of the overall digital twin model. The first process control strategy of the memory scheduling unit is adjusted to reduce the impact of the blocking on the operation of the overall digital twin model, thereby improving the stability of the simulation; the number of types of memory mapping files is increased according to the byte amount of memory fragmentation, and frequent memory allocation and release cause memory fragmentation, resulting in a decrease in the stability of the system operation and an unstable state of memory scheduling. The number of types of memory mapping files is increased to reduce the generation of memory fragmentation, thereby improving the stability of memory scheduling, and further achieving an improvement in the stability of the simulation.

[0119] Specifically, the control module calculates the operating error duration ratio of the overall digital twin model according to the duration of the error in the overall digital twin model per unit time and the total duration per unit time.

[0120] The control module determines that the simulation stability does not meet the requirement under the preset first duration ratio condition, and adjusts the first process control strategy currently running in the memory scheduling unit to the second process control strategy;

[0121] Among them, the preset first duration ratio condition is that the operating error duration ratio of the overall digital twin model is greater than the preset second duration ratio.

[0122] Specifically, the calculation formula for the operating error duration ratio of the overall digital twin model is:

[0123]

[0124] Among them, M is the proportion of the running error time of the overall digital twin model, A1 is the duration of the error of the overall digital twin model per unit time, and A2 is the total duration per unit time.

[0125] Specifically, the first process control strategy is to terminate the blocked process that meets the preset number condition; the second process control strategy is to terminate the blocked process that meets the preset memory condition, and terminate the blocked process that does not meet the preset memory condition and meets the preset number condition;

[0126] Among them, the preset memory condition is that the total memory occupied by the blocked process is greater than the preset memory; the preset number condition is that the number of blocked processes that do not meet the preset memory condition is greater than or equal to the preset blocking number.

[0127] Optionally, a preferred embodiment of the preset second duration proportion M2 is M2=0.5.

[0128] In implementation, the operating system of the present invention adjusts the first process control strategy of the memory scheduling unit according to the running error time ratio of the overall digital twin model by setting a preset first time ratio and a preset second time ratio. When the operating system runs multiple processes at the same time, the number of process blocking cases increases, and the blocking occupies too much memory, resulting in errors in the running of the overall digital twin model. The first process control strategy of the memory scheduling unit is adjusted to reduce the impact of blocking on the running of the overall digital twin model, thereby improving the stability of the simulation, thereby further achieving improved simulation stability.

[0129] Specifically, the control module preliminarily determines that the scheduling stability of the memory does not meet the requirements under the preset second duration ratio condition, and obtains the byte amount of the memory fragments.

[0130] The control module secondarily determines that the scheduling stability of the memory does not meet the requirement under the preset first byte amount condition, and increases the number of types of memory mapping files;

[0131] Among them, the preset second duration ratio condition is that the operating error duration ratio of the overall digital twin model is greater than the preset first duration ratio and is less than or equal to the preset second duration ratio; the preset first byte amount condition is that the byte amount of the memory fragmentation is greater than the preset second byte amount.

[0132] Specifically, the increased number T' of types of memory-mapped files is determined by the difference ΔG between the byte amount Q of the memory fragment and the preset second byte amount Q2.

[0133] Specifically, the specific process of determining the number of types of the increased memory-mapped file is as follows:

[0134] If ΔG≤ΔG0, the control module adjusts the number of types of memory mapping files using a preset first quantity adjustment coefficient;

[0135] If ΔG>ΔG0, the control module uses a preset second quantity adjustment coefficient to adjust the quantity of the types of the memory mapping file.

[0136] Optionally, a preferred embodiment of the preset first duration proportion M1 is M1=0.3, and a preferred embodiment of the preset second byte amount G2 is G2=200MB.

[0137] Specifically, △G=G-G2, a preset proportion difference △G0 is provided in the control module, and a preferred embodiment of △G0 is △G0=50MB.

[0138] Specifically, the preset first quantity adjustment coefficient is recorded as β1, the preset second quantity adjustment coefficient is recorded as β2, wherein 1<β1<β2, β1=1.1, β2=1.2, the number of types of memory mapped files is recorded as T, the increased number of types of memory mapped files is recorded as T', and T'=T×βp is set, wherein βp is the preset pth quantity adjustment coefficient, and p is set to 1,2.

[0139] In implementation, the operating system of the present invention increases the number of types of memory mapping files according to the byte amount of memory fragmentation by setting a preset first byte amount and a preset second byte amount. Frequent memory allocation and release cause memory fragmentation, which leads to a decrease in the stability of system operation and an unstable state of memory scheduling stability. The number of types of memory mapping files is increased to reduce the generation of memory fragmentation, thereby improving the stability of memory scheduling and further improving the stability of simulation.

[0140] Specifically, the control module preliminarily determines that the accuracy of the model update does not meet the requirements under the preset second byte amount condition, and obtains the linear fit between the number of scheduling times of cloud data and the growth amount of fragments to calculate the linear fit between the number of scheduling times of cloud data and the growth amount of fragments.

[0141] The control module secondarily determines that the accuracy of the model update does not meet the requirements under the preset linear fit condition, and reduces the update density threshold of the overall digital twin model;

[0142] Among them, the preset second byte amount condition is that the byte amount of the memory fragment is greater than the preset first byte amount and less than or equal to the preset second byte amount; the preset linear fit condition is that the linear fit between the scheduling number of the cloud data and the growth amount of the fragment is greater than the preset linear fit.

[0143] Specifically, the reduced update density threshold K' of the overall digital twin model is determined by the difference ΔR between the linear fit R of the scheduling times of the cloud data and the growth amount of the fragments and the preset linear fit R0.

[0144] Specifically, the specific process of determining the update density threshold of the overall digital twin model is:

[0145] If △R≤△R0, the control module uses a preset first threshold adjustment coefficient to adjust the update density threshold of the overall digital twin model;

[0146] If ΔR>ΔR0, the control module uses a preset second threshold adjustment coefficient to adjust the update density threshold of the overall digital twin model.

[0147] Optionally, a preferred embodiment of the preset first byte amount G1 is G1=150MB, and a preferred embodiment of the preset linear fit degree R0 is R0=80.

[0148] Specifically, △R=R-R0, a preset linear fit difference △R0 is provided in the control module, and a preferred embodiment of △R0 is △R0=10.

[0149] Specifically, the preset first threshold adjustment coefficient is denoted as γ1, and the preset second threshold adjustment coefficient is denoted as γ2, wherein 0<γ1<γ2<1, γ1=0.8, γ2=0.9, the update density threshold of the overall digital twin model is denoted as K, and the reduced update density threshold of the overall digital twin model is denoted as K', and K'=K×γu is set, wherein γu is the preset u-th threshold adjustment coefficient, and u=1,2 is set.

[0150] In implementation, the operating system of the present invention reduces the update density threshold of the overall digital twin model by setting a preset linear fit according to the linear fit of the scheduling times of cloud data and the growth amount of fragments. If the number of areas updated at a single time is too large, the possibility of virus invasion increases, which interferes with the operation of the model and the accuracy of the model update is inaccurate. The update density threshold of the overall digital twin model is reduced to reduce the degree of interference in the operation of the model, thereby improving the accuracy of the model update and further improving the stability of the simulation.

[0151] Embodiment 1:

[0152] In the present embodiment 1, when G>G2, the control module adjusts the number T of memory mapping file types according to the difference △G between the byte amount Q of the memory fragment and the preset second byte amount Q2. Set the preset proportion difference △G0, △G=G-G2, the preset first quantity adjustment coefficient is recorded as β1, the preset second quantity adjustment coefficient is recorded as β2, wherein 1<β1<β2, the number of memory mapping file types is recorded as T, and the increased number of memory mapping file types is recorded as T', G1=150MB, G2=200MB, β1=1.1, β2=1.2, △G0=50MB, T=10, G=300MB in the present embodiment 1,

[0153] In the first embodiment, ΔG=300MB-200MB=100MB is obtained, the control module determines that ΔG>ΔG0 and uses the preset first quantity adjustment coefficient β1 to adjust the number of types of memory-mapped files to T', and calculates that T'=10×1.1=11.

[0154] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. An operating system for scheduling and running digital twin models, It is characterized in that include: A data acquisition module is used to collect status information of several digital twin basic models; An interaction module, which is connected to the data acquisition module and is used to integrate several digital twin basic models into an overall digital twin model; A scheduling module, which is connected to the data acquisition module and the interaction module respectively, and includes a model scheduling unit for scheduling the plurality of digital twin basic models and a memory scheduling unit for allocating the total running memory; A model updating module, connected to the interaction module, for updating the overall digital twin model; A simulation control module, which is respectively connected to the data acquisition module, the interaction module, the scheduling module and the model update module, and is used to determine the simulation stability according to the operation error duration ratio of the overall digital twin model, and, when it is determined that the simulation stability does not meet the requirements, adjust the first process control strategy of the memory scheduling unit or determine the stability of the memory scheduling according to the byte amount of the memory fragmentation, And, when it is determined that the stability of memory scheduling does not meet the requirements, the number of types of memory mapping files is adjusted or the update density threshold of the overall digital twin model is adjusted according to the linear fit between the number of scheduling times of cloud data and the growth amount of memory fragmentation; The interaction module includes: An information interaction unit is used to establish an interaction channel for information input and output parameters between the basic models of the digital twins according to the logical architecture of the overall digital twin model; The energy interaction unit is used to establish the interaction channel of energy input and output parameters between the basic models of the digital twins according to the logical architecture of the overall digital twin model; The material interaction unit is used to establish an interaction channel for material input and output parameters between the basic models of each digital twin according to the logical architecture of the overall digital twin model.

2. The operating system for scheduling and running a digital twin model according to claim 1, It is characterized in that The operating system also includes a simulation engine connected to the interaction module and the scheduling module respectively for creating a simulation process.

3. The operating system for scheduling and running a digital twin model according to claim 2, It is characterized in that The control module calculates the operating error duration ratio of the overall digital twin model according to the duration of the error in the overall digital twin model per unit time and the total duration per unit time. The control module determines that the simulation stability does not meet the requirement under the preset first duration ratio condition, and adjusts the first process control strategy currently running in the memory scheduling unit to the second process control strategy; Among them, the preset first duration ratio condition is that the operating error duration ratio of the overall digital twin model is greater than the preset second duration ratio.

4. The operating system for scheduling and running a digital twin model according to claim 3, It is characterized in that The calculation formula for the operating error duration ratio of the overall digital twin model is: , Among them, M is the proportion of the running error time of the overall digital twin model, A1 is the duration of the error of the overall digital twin model per unit time, and A2 is the total duration per unit time.

5. The operating system for scheduling and running a digital twin model according to claim 4, It is characterized in that The first process control strategy is to terminate the blocked process that meets the preset number condition; the second process control strategy is to terminate the blocked process that meets the preset memory condition, and terminate the blocked process that does not meet the preset memory condition and meets the preset number condition; Among them, the preset memory condition is that the total memory occupied by the blocked process is greater than the preset memory; the preset number condition is that the number of blocked processes that do not meet the preset memory condition is greater than or equal to the preset blocking number.

6. The operating system for scheduling and running a digital twin model according to claim 5, It is characterized in that The control module preliminarily determines that the scheduling stability of the memory does not meet the requirements under the preset second time ratio condition, and obtains the byte amount of the memory fragments. The control module secondarily determines that the scheduling stability of the memory does not meet the requirement under the preset first byte amount condition, and increases the number of types of memory mapping files; Among them, the preset second duration ratio condition is that the operating error duration ratio of the overall digital twin model is greater than the preset first duration ratio and is less than or equal to the preset second duration ratio; the preset first byte amount condition is that the byte amount of the memory fragmentation is greater than the preset second byte amount.

7. The operating system for scheduling and running a digital twin model according to claim 6, It is characterized in that The number of types of the increased memory mapping file is determined by the difference between the byte amount of the memory fragment and the preset second byte amount.

8. The operating system for scheduling and running a digital twin model according to claim 7, It is characterized in that The control module preliminarily determines that the accuracy of the model update does not meet the requirements under the preset second byte amount condition, and obtains the linear fit between the scheduling number of cloud data and the growth amount of fragments according to the number of scheduling of cloud data and the growth amount of fragments, The control module secondarily determines that the accuracy of the model update does not meet the requirements under the preset linear fit condition, and reduces the update density threshold of the overall digital twin model; Among them, the preset second byte amount condition is that the byte amount of the memory fragment is greater than the preset first byte amount and less than or equal to the preset second byte amount; the preset linear fit condition is that the linear fit between the scheduling number of the cloud data and the growth amount of the fragment is greater than the preset linear fit.

9. The operating system for scheduling and running a digital twin model according to claim 8, It is characterized in that The reduced update density threshold of the overall digital twin model is determined by the difference between the linear fit of the scheduling times of the cloud data and the growth amount of the fragments and the preset linear fit.