CN103761099A - Implementation method for separating model and experiment framework - Google Patents
Implementation method for separating model and experiment framework Download PDFInfo
- Publication number
- CN103761099A CN103761099A CN201410035333.8A CN201410035333A CN103761099A CN 103761099 A CN103761099 A CN 103761099A CN 201410035333 A CN201410035333 A CN 201410035333A CN 103761099 A CN103761099 A CN 103761099A
- Authority
- CN
- China
- Prior art keywords
- model
- framework
- experiment
- initialization
- experimental
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to an implementation method for separating a model and an experiment framework. The implementation method comprises the following steps that firstly, a system used for implementing separation of the model and the experiment framework is established; secondly, a model implementation template module generates model implementation codes; thirdly, an experiment framework description module generates experiment framework description files; fourthly, a connecting module completes match between model implementation and the experiment framework; fifthly, an experiment initialization module completes initialization of model execution. According to the implementation method for separating the model and the experiment framework, the system can run more conveniently and fast.
Description
Technical field
The present invention relates to a kind of implementation method of model, particularly a kind of implementation method of Model and experiment framework apart.
Background technology
Emulation is the activity based on model, and the implementation method of model has larger impact for the availability of analogue system.Model is separated with experimental framework is a kind of advanced person's system modeling method, in the method, the dynamic and static characteristics of model determination system, experimental framework is determined the experiment condition that makes model running and produce output.To given system model, can have a plurality of experimental frameworks, thereby realization is not in the situation that revising model, only revises experimental framework and completes different emulation experiments, thereby greatly promotes the use dirigibility of analogue system.But current existing implementation method operation is loaded down with trivial details, and speed is slower, is therefore badly in need of a kind of new implementation method.
Summary of the invention
The object of the invention is to provide a kind of implementation method of Model and experiment framework apart, to solve during analogue system realizes, due to model and experiment parameter coupling closely, affect the problem of analogue system use dirigibility.
Object of the present invention is achieved through the following technical solutions:
An implementation method for Model and experiment framework apart, is characterized in that, this implementation method comprises the steps:
1) build for the implementation model system separated with experimental framework;
2) model realization formwork module generation model code;
3) experimental framework describing module generates experimental framework description document;
4) link block completes the coupling of model realization and experimental framework;
5) experiment initialization module completes the initialization that model is carried out.
The invention has the advantages that:
The implementation method of Model and experiment framework apart of the present invention makes system operation more convenient.
Accompanying drawing explanation
Fig. 1: a kind of implementation method process flow diagram of Model and experiment framework apart.
Embodiment
The implementation method process flow diagram that is illustrated in figure 1 a kind of Model and experiment framework apart, this implementation method comprises the steps.
The first step builds the system that realizes the method
For the implementation model system separated with experimental framework, comprising: model realization formwork module, experimental framework describing module, link block, experiment initialization module.
The function of model realization formwork module is: standard interface implementation model example is provided, provides the experiment parameter relevant to model scheduled for executing that interface is set;
The function of experimental framework describing module is: the experiment parameter constraint that supplies a model and carry out, comprises simulation run control information, Model instantiation information, model running initial state information, Experiment Data Records and process information etc.;
The function of link block is: by model identification, complete the coupling of model realization module and appointment experimental framework;
The function of experiment initialization module is: complete Model instantiation, initialization, complete experiment parameter setting.
Second step model realization formwork module generation model code
Model realization formwork module restricted model code, to provide as lower interface:
Instantiation interface: according to parameter generation model examples such as types of models, times;
Input port: complete the definition of the input external interface of model;
Output port: complete the definition of model output interface;
Initialization port: complete the definition of model initialization parameter, provide with binary stream form, by model self-explanatory;
Control interface: complete the setting of controlling parameter in model implementation, control that parameter comprises startup, suspends, continues, stops, Experiment Data Records etc.
The 3rd step experimental framework describing module generates experimental framework description document
Experimental framework describing module generates experimental framework description document, and the experimental framework of generation comprises following information:
Simulation run control information, as simulation time, number of run etc.;
The instantiation information of model, comprises example creation-time, example creation-time interval (fixed value or stochastic distribution), (quantity once generating) etc. in batches;
Initialization information, the information of the initialization port bookbinding of Definition Model;
Port observation and Data-Statistics information, the port value that will gather in definition simulation process, and value is added up to computation of mean values, variance, confidence interval etc.
Experimental framework description document adopts and meets XML language description.
The 4th step link block completes the coupling of model realization and experimental framework
Link block travels through the model realization set of analogue system, to each model realization, and the implementation framework information that is identified at match query in experimental framework set by it, basic procedure is:
In model realization set, start traversal, obtain a model realization
According to model identification, in experimental framework set, inquire about, whether there is the experimental framework definition of coupling, if do not had, return to previous step
According to the experimental framework inquiring, determine the instantiation form of model, if in batches, build Mass production data structure, if individual, build and generate chained list
Whether according to the experimental framework inquiring, checking has the initialization information of bookbinding, if had, batch data structure or individual generate chained list in assignment
According to the experimental framework inquiring, whether check ports having observation and statistical information, if had, the set handling parameter in model realization code
The 5th step experiment initialization module completes the initialization that model is carried out
The treatment scheme of experiment initialization module:
Output interface definition according to model realization code, builds output database;
Traversal model realization set and experimental framework set, whether inspection model code provides specified interface, and whether the setting of checking experiment framework parameter is reasonable;
Simulation run is set and controls parameter, comprise working time, number of run, process record sign etc.;
According to experimental framework definition, complete the scheduling chained list initialization of Model instantiation.
Should be appreciated that the above detailed description of technical scheme of the present invention being carried out by preferred embodiment is illustrative and not restrictive.Those of ordinary skill in the art modifies reading the technical scheme that can record each embodiment on the basis of instructions of the present invention, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (6)
1. an implementation method for Model and experiment framework apart, is characterized in that, this implementation method comprises the steps:
1) build for the implementation model system separated with experimental framework;
2) model realization formwork module generation model code;
3) experimental framework describing module generates experimental framework description document;
4) link block completes the coupling of model realization and experimental framework;
5) experiment initialization module completes the initialization that model is carried out.
2. the implementation method of a kind of Model and experiment framework apart according to claim 1, is characterized in that, describedly for the implementation model system separated with experimental framework, comprises:
Model realization formwork module: for standard interface implementation model example is provided, provide the experiment parameter relevant to model scheduled for executing that interface is set;
Experimental framework describing module: the experiment parameter constraint of carrying out for supplying a model, comprises simulation run control information, Model instantiation information, model running initial state information, Experiment Data Records and process information etc.;
Link block: for by model identification, complete the coupling of model realization module and appointment experimental framework;
Experiment initialization module: for completing Model instantiation, initialization, complete experiment parameter setting.
3. the implementation method of a kind of Model and experiment framework apart according to claim 1, is characterized in that, during described model realization formwork module restricted model code, provides as lower interface:
Instantiation interface: according to parameter generation model examples such as types of models, times;
Input port: complete the definition of the input external interface of model;
Output port: complete the definition of model output interface;
Initialization port: complete the definition of model initialization parameter, provide with binary stream form, by model self-explanatory;
Control interface: complete the setting of controlling parameter in model implementation, control that parameter comprises startup, suspends, continues, stops, Experiment Data Records.
4. the implementation method of a kind of Model and experiment framework apart according to claim 1, is characterized in that, when described experimental framework describing module generates experimental framework description document, the experimental framework of generation comprises following information:
Comprise the simulation run control information of simulation time, number of run;
Comprise example creation-time, example creation-time interval, instantiation information in batches;
The initialization information of the initialization port bookbinding of Definition Model;
The port value that will gather in definition simulation process, and value is added up to port observation and the Data-Statistics information of computation of mean values, variance, confidence interval.
5. the implementation method of a kind of Model and experiment framework apart according to claim 1, it is characterized in that, when described link block completes the coupling of model realization and experimental framework, link block travels through the model realization set of analogue system, to each model realization, the implementation framework information that is identified at match query in experimental framework set by it, concrete steps are:
401) in model realization set, start traversal, obtain a model realization;
402) according to model identification, in experimental framework set, inquire about, whether there is the experimental framework definition of coupling, if do not had, return to previous step;
403) according to the experimental framework inquiring, determine the instantiation form of model, if in batches, build Mass production data structure, if individual, build and generate chained list;
404) according to the experimental framework that inquires, check whether there is the initialization information of bookbinding, if had, batch data structure or individual generate chained list in assignment;
405) according to the experimental framework that inquires, whether check ports having observation and statistical information, if had, the set handling parameter in model realization code.
6. the implementation method of a kind of Model and experiment framework apart according to claim 1, is characterized in that, the initialized concrete steps that described experiment initialization module completes model execution are:
501) according to the output interface definition of model realization code, build output database;
502) traversal model realization set and experimental framework set, whether inspection model code provides specified interface, and whether the setting of checking experiment framework parameter is reasonable;
503) simulation run is set and controls parameter, comprise working time, number of run, process record sign etc.;
504) according to experimental framework definition, complete the scheduling chained list initialization of Model instantiation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410035333.8A CN103761099B (en) | 2014-01-24 | 2014-01-24 | The implementation method that a kind of model and experimental framework are separate |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410035333.8A CN103761099B (en) | 2014-01-24 | 2014-01-24 | The implementation method that a kind of model and experimental framework are separate |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103761099A true CN103761099A (en) | 2014-04-30 |
CN103761099B CN103761099B (en) | 2017-06-06 |
Family
ID=50528343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410035333.8A Active CN103761099B (en) | 2014-01-24 | 2014-01-24 | The implementation method that a kind of model and experimental framework are separate |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103761099B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104572252A (en) * | 2015-02-09 | 2015-04-29 | 北京润科通用技术有限公司 | Batch simulation method and batch simulation device |
CN112561331A (en) * | 2020-12-16 | 2021-03-26 | 北京仿真中心 | Visual experimental analysis evaluation index construction method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8312137B1 (en) * | 2010-01-04 | 2012-11-13 | Google Inc. | Live experiment framework |
CN103106556A (en) * | 2012-12-27 | 2013-05-15 | 北京仿真中心 | Model automatic combination method and model automatic combination system based on artificial intelligent planning |
-
2014
- 2014-01-24 CN CN201410035333.8A patent/CN103761099B/en active Active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104572252A (en) * | 2015-02-09 | 2015-04-29 | 北京润科通用技术有限公司 | Batch simulation method and batch simulation device |
CN104572252B (en) * | 2015-02-09 | 2017-08-11 | 北京润科通用技术有限公司 | Criticize emulation mode and device |
CN112561331A (en) * | 2020-12-16 | 2021-03-26 | 北京仿真中心 | Visual experimental analysis evaluation index construction method |
Also Published As
Publication number | Publication date |
---|---|
CN103761099B (en) | 2017-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10606562B2 (en) | Method and system for generating PLC code with a connectivity model | |
CN105956021B (en) | A kind of automation task suitable for distributed machines study parallel method and its system | |
CN108121216B (en) | Automated workshop virtual debugging method based on digital factory | |
CN104778124A (en) | Automatic testing method for software application | |
Mathias et al. | Automatic model generation for virtual commissioning based on plant engineering data | |
CN109447276B (en) | Machine learning system, equipment and application method | |
CN106446019B (en) | A kind of software function treating method and apparatus | |
WO2021057252A1 (en) | Service processing flow configuration method and apparatus, and service request processing method and apparatus | |
CN114840322B (en) | Task scheduling method and device, electronic equipment and storage | |
CN111027164A (en) | Automatic simulation analysis method and device based on STAR-CCM + | |
CN109865292A (en) | A kind of game resource construction method and device based on game engine | |
CN103902757A (en) | System and method for rapid creation and interaction of three-dimensional model | |
CN103761099A (en) | Implementation method for separating model and experiment framework | |
CN113760462B (en) | Construction method and device for verification environment of dispatching automation system | |
CN109033452B (en) | Intelligent construction loading method and system for data warehouse | |
Umlauft et al. | SwarmFabSim: A Simulation Framework for Bottom-up Optimization in Flexible Job-Shop Scheduling using NetLogo. | |
CN103258014A (en) | Method for working out production plan through network diagram | |
CN112685892A (en) | Airborne simulation model based on plug-in technology | |
US20120203587A1 (en) | Integrated engineering and workflow system for engineering and executing workflows of mechatronic objects | |
CN105022896A (en) | Method and device for APDL modelling based on dynamic numbering | |
CN111522635B (en) | Computing task processing method, computing task processing device, server and storage medium | |
CN115293466B (en) | Cloud manufacturing method and system for manufacturing nodes through virtual intelligent configuration based on cloud | |
CN102203728A (en) | System and method of dynamically building a behavior model on a hardware system | |
CN112925517B (en) | Service function realization method, device and system | |
CN108170035A (en) | A kind of flight control system of modelling |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |