CN109815617A - A kind of simulation model driving method - Google Patents
A kind of simulation model driving method Download PDFInfo
- Publication number
- CN109815617A CN109815617A CN201910117971.7A CN201910117971A CN109815617A CN 109815617 A CN109815617 A CN 109815617A CN 201910117971 A CN201910117971 A CN 201910117971A CN 109815617 A CN109815617 A CN 109815617A
- Authority
- CN
- China
- Prior art keywords
- simulation model
- model
- level
- simulation
- driving
- 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.)
- Pending
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 64
- 238000000034 method Methods 0.000 title claims abstract description 34
- 239000011159 matrix material Substances 0.000 claims description 4
- 230000002452 interceptive effect Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000005284 excitation Effects 0.000 description 2
- 238000005314 correlation function Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of simulation model driving methods, comprising the following steps: determines the hierarchical relationship between simulation model according to line type and calculates the level of each simulation model based on simplex method, the simulation model is IOCE multistage-combination model;Issue broadcast drive command one by one from highest level to bottom grade;Judge whether level and the simulation model level of current broadcast drive command are identical, then drive this layer of simulation model if they are the same, otherwise, do not drive this layer of simulation model.Present invention determine that the sequential relationship between simulation models at different levels, is converted to the hierarchical relationship of model, realizes record and the scheduling of driver' s timing by the relationship between each level of multistage simulation model.
Description
Technical field
The present invention relates to model-driven timing sequence process fields, specifically disclose a kind of simulation model driving method.
Background technique
In Architecture simulation, simulation model type multiplicity, can atomize model and built-up pattern from level, from function
On can be divided into physical model, behavior model, logic judgment model etc., mathematics library tool is firstly the need of supporting inhomogeneity pattern
The assembling of type.Secondly as the driving logical relation between model is complicated, when Model Mounting design is unreasonable, it may appear that by
It interdepends in drive condition and generates " deadlock " phenomenon, cause emulation that can not promote.
Traditional simulation model is all that driving sequence is carried out by way of event table in emulation, is carried out by event table
The method of sequence is realized relatively difficult for complicated simulation model, and adjusts a certain item in event table and will lead to event table
Sequence all is re-started, has seriously affected simulation efficiency.
Summary of the invention
The object of the invention is providing a kind of simulation model driving method, to solve existing in the prior art to pass through event table
Carry out the technological deficiency that emulation sequence causes simulation efficiency low.
To achieve the above object, the present invention provides a kind of simulation model driving methods, comprising the following steps:
The hierarchical relationship between simulation model is determined according to line type and each emulation mould is calculated based on simplex method
The level of type, simulation model are IOCE multistage-combination model;
Issue broadcast drive command one by one from highest level to bottom grade;
Judge whether level and the simulation model level of current broadcast drive command are identical, this layer is then driven to emulate if they are the same
Otherwise model does not drive this layer of simulation model.
Preferably, line type includes wired in parallel and serial line, and the sequential relationship between identical layer time passes through serial
The mode of line is driven, and the sequential relationship between different levels is driven by way of wired in parallel.
Preferably, the driving priority of serial line is greater than the driving priority of wired in parallel.
Preferably, simplex method is dual simplex method.
Preferably, calculate the level of each simulation model the following steps are included:
The time sequence matrix of simulation model is established by simplex algorithm according to the line relationship between simulation model.
The time sequence matrix of simulation model is converted to the hierarchical relationship of simulation model using timing linear inequality method.
Preferably, when timing linear inequality is without solution, indicate existing in the presence of driving conflict inside IOCE multistage-combination model
As modifying interactive relation to the simulation model that driving conflict occurs.
The invention has the following advantages:
1, present invention determine that relationship between multistage each level of simulation model, by the sequential relationship between simulation models at different levels
The hierarchical relationship for being converted to model realizes record and the scheduling of driver' s timing.
2, the sequential relationship between different levels of the present invention uses parallel driving method, the sequential relationship in same level
Using serial driving method, it is serial with it is parallel mix Timing driver by way of promote the process of emulation, solve complex die
Arrangement under type driver' s timing.
Below with reference to accompanying drawings, the present invention is described in further detail.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention
It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of simulation model driving method flow chart of the preferred embodiment of the present invention;
Fig. 2 is the IOCE Model Framework structural schematic diagram of the preferred embodiment of the present invention;
Fig. 3 is the multistage IOCE Model Framework structural schematic diagram of the preferred embodiment of the present invention;
Fig. 4 is the incidence relation schematic diagram between preferred embodiment of the present invention different levels model.
Specific embodiment
The embodiment of the present invention is described in detail below in conjunction with attached drawing, but the present invention can be defined by the claims
Implement with the multitude of different ways of covering.
Embodiment 1:
The present invention provides a kind of simulation model driving methods, referring to Fig. 1, comprising the following steps:
The hierarchical relationship between simulation model is determined according to line type and each emulation mould is calculated based on simplex method
The level of type, simulation model are IOCE multistage-combination model.
The simulation model driving method of the present embodiment is by taking IOCE multistage-combination model as an example, and referring to fig. 2, IOCE model includes
It inputs (Input), output (Output), calculate (Calculate) and event (Event).It is i.e. defeated in certain outside or inside
Under the conditions of entering, is triggered and generated event response, calculated according to response and export result by certain message.IOCE model
Be otherwise known as atom model, may be expressed as:
Model(I,O,C,E)
Wherein, I is the condition of model, and C is the function of model, and E is the external drive for triggering C, and O is the result of model.It presses
According to data exchange relationship between model, can define:
I --- input interface, if it is inside input, then model ontology is voluntarily obtained, if provided by external model, mould
Type needs to obtain by ordering;
O --- output interface needs to issue output if external model uses the interface output data;
C --- calculate interface, processing external event excitation;
E --- external event excitation notifies, response computation for response external.
Referring to Fig. 3, multistage-combination model is called by the built-up pattern of the generation of several atom models assembling correlation function.Often
Input of the output of one atom model as another atom model.Therefore, the also not phase of the level between different atom models
Together.Line type includes wired in parallel and serial line, and the sequential relationship of the simulation model between identical layer time by connecting parallel
The mode of line is driven, and the simulation model sequential relationship between different levels is driven by way of serial line.Respectively
Input/output relation between a atom model embodies interactive relation by way of line.Hierarchical relationship is that atom model exists
Level in built-up pattern, in simple combination model shown in Fig. 3, atom model A is highest level model, and atom model C is
Bottom grade model.The line type of atom model A and atom model C is wired in series.
Referring to fig. 4, road simulation model is 3 grades, the i.e. simulation model of highest level in Fig. 2, and automobile A and automobile B are emulated
Model is 2 grades, and it is all driven in series that road, which drives the mode of automobile A and automobile B, but the driving side between automobile A and automobile B
Formula is parallel drive, that is, is not interfere with each other.Automobile C simulation model is 1 grade, and it is driven in series that automobile A, which drives the mode of automobile C,.
Issue broadcast drive command one by one from highest level to bottom grade.
Each level atom model needs drive one by one according to hierarchic sequence, otherwise it is possible that logic error, to lead
It causes driving cancellation to rely on and " deadlock " phenomenon occurs.Deadlock refers to two or more processes in the process of implementation, due to competing
Strive resource or as communicate with one another and caused by a kind of obstruction the phenomenon that, if they all will be unable under propulsion without external force
It goes.Claim system to be in deadlock state or system produces deadlock at this time, these forever the process waited mutually be known as deadlock into
Journey.It, can be in appearance " deadlock " phenomenon, in time by the way of publication broadcast drive command one by one in huge analogue system
Discovery there is the problem of " deadlock ", to make record and the scheduling of simulation model driver' s timing faster, solution is occurred
The problem of.
Judge whether level and the simulation model level of current broadcast drive command are identical, this layer is then driven to emulate if they are the same
Otherwise model does not drive this layer of simulation model.
After receiving broadcast drive command every time, applicability matching can be all carried out, guarantees the level of broadcast drive command driving
For this level.Prevent " deadlock " phenomenon as caused by timing confusion.
Embodiment 2:
Referring to fig. 4, by taking road traffic as an example, top layer model is road, and middle layer model is automobile A and automobile B, underlying model
For automobile C, the road of top layer sends drive command to automobile A and automobile B simultaneously first, if road ahead is crossroad but taboo
Only turn left, automobile A and automobile B receive the drive command and do not interact from each other simultaneously.It is original to prepare the automobile A of left-hand rotation
Change behavior after receiving the order, continues to execute;Originally just the automobile B of execution is then continued to execute.When automobile A and vapour
2 grades of levels locating for vehicle B all after the completion of driving, drive automobile C by serial manner by automobile A, inform ten in front of automobile C
Word crossing no left turn, the information that automobile C can not then turn left according to front change after behavior.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (6)
1. a kind of simulation model driving method, which comprises the following steps:
The hierarchical relationship between simulation model is determined according to line type and each simulation model is calculated based on simplex method
Level, the simulation model are IOCE multistage-combination model;
Issue broadcast drive command one by one from highest level to bottom grade;
Judge whether level and the simulation model hierarchy of current broadcast drive command are identical, this layer is then driven to emulate if they are the same
Otherwise model does not drive this layer of simulation model.
2. a kind of simulation model driving method according to claim 1, which is characterized in that the line type includes parallel
Line and serial line, the sequential relationship between the simulation model of same level is to be driven by way of wired in parallel,
Sequential relationship between different levels simulation model is driven by way of serial line.
3. a kind of simulation model driving method according to claim 2, which is characterized in that the driving of the serial line is excellent
First grade is greater than the driving priority of the wired in parallel.
4. a kind of simulation model driving method according to claim 1, which is characterized in that the simplex method is antithesis list
Pure shape method.
5. a kind of simulation model driving method according to claim 1, which is characterized in that calculate the layer of each simulation model
Grade the following steps are included:
The time sequence matrix of simulation model is established by simplex algorithm according to the line relationship between simulation model;
The time sequence matrix of simulation model is converted to the hierarchical relationship of simulation model using timing linear inequality method.
6. a kind of simulation model driving method according to claim 1, which is characterized in that when timing linear inequality is without solution
When, it indicates there is driving conflict phenomenon inside the IOCE multistage-combination model, the simulation model that driving conflict occurs is modified
Interactive relation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910117971.7A CN109815617A (en) | 2019-02-15 | 2019-02-15 | A kind of simulation model driving method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910117971.7A CN109815617A (en) | 2019-02-15 | 2019-02-15 | A kind of simulation model driving method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109815617A true CN109815617A (en) | 2019-05-28 |
Family
ID=66606703
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910117971.7A Pending CN109815617A (en) | 2019-02-15 | 2019-02-15 | A kind of simulation model driving method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109815617A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112463130A (en) * | 2021-02-02 | 2021-03-09 | 湖南高至科技有限公司 | Flexible configurable simulation system |
CN115422865A (en) * | 2022-10-28 | 2022-12-02 | 飞腾信息技术有限公司 | Simulation method and device, computing equipment and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120053989A1 (en) * | 2010-08-26 | 2012-03-01 | Victor Harold Richard | Systems and methods for propagating changes in a demand planning hierarchy |
CN102662725A (en) * | 2012-03-15 | 2012-09-12 | 中国科学院软件研究所 | Event-driven high concurrent process virtual machine realization method |
US20130085660A1 (en) * | 2011-09-30 | 2013-04-04 | The Mitre Corporation | Air Traffic Analysis Using a Linear Inequalities Solver |
CN103279622A (en) * | 2013-06-07 | 2013-09-04 | 北京理工大学 | Method for dispatching distributed simulation models in aircraft simulation system |
CN103970580A (en) * | 2014-05-05 | 2014-08-06 | 华中科技大学 | Data flow compilation optimization method oriented to multi-core cluster |
CN106503320A (en) * | 2016-10-17 | 2017-03-15 | 北京理工大学 | A kind of order model dispatching method of distributing emulation system |
-
2019
- 2019-02-15 CN CN201910117971.7A patent/CN109815617A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120053989A1 (en) * | 2010-08-26 | 2012-03-01 | Victor Harold Richard | Systems and methods for propagating changes in a demand planning hierarchy |
US20130085660A1 (en) * | 2011-09-30 | 2013-04-04 | The Mitre Corporation | Air Traffic Analysis Using a Linear Inequalities Solver |
CN102662725A (en) * | 2012-03-15 | 2012-09-12 | 中国科学院软件研究所 | Event-driven high concurrent process virtual machine realization method |
CN103279622A (en) * | 2013-06-07 | 2013-09-04 | 北京理工大学 | Method for dispatching distributed simulation models in aircraft simulation system |
CN103970580A (en) * | 2014-05-05 | 2014-08-06 | 华中科技大学 | Data flow compilation optimization method oriented to multi-core cluster |
CN106503320A (en) * | 2016-10-17 | 2017-03-15 | 北京理工大学 | A kind of order model dispatching method of distributing emulation system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112463130A (en) * | 2021-02-02 | 2021-03-09 | 湖南高至科技有限公司 | Flexible configurable simulation system |
CN112463130B (en) * | 2021-02-02 | 2021-04-20 | 湖南高至科技有限公司 | Flexible configurable simulation system |
CN115422865A (en) * | 2022-10-28 | 2022-12-02 | 飞腾信息技术有限公司 | Simulation method and device, computing equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Midkiff et al. | Development of engineering thermodynamics concept inventory instruments | |
JP2791243B2 (en) | Hierarchical synchronization system and large scale integrated circuit using the same | |
US7475370B2 (en) | System for verification using reachability overapproximation | |
Chatterjee et al. | Automatic generation of inductive invariants from high-level microarchitectural models of communication fabrics | |
CN106846818B (en) | road network dynamic traffic flow prediction method based on Simulink simulation | |
CN109815617A (en) | A kind of simulation model driving method | |
US11645178B2 (en) | Fail-safe semi-autonomous or autonomous vehicle processor array redundancy which permits an agent to perform a function based on comparing valid output from sets of redundant processors | |
JP2001202397A (en) | Architecture design supporting system for system-on-chip and architecture generating method | |
EP0704076A1 (en) | A method for modeling bidirectional or multiplicatively driven signal paths in a system to achieve a general purpose statically scheduled simulator | |
Wei et al. | An improved road network partition algorithm for parallel microscopic traffic simulation | |
CN109478141A (en) | Control the service speed of the grade of asynchronous pipeline | |
Abel et al. | MeMin: SAT-based exact minimization of incompletely specified Mealy machines | |
CN108805277A (en) | Depth belief network based on more FPGA accelerates platform and its design method | |
EP2676210B1 (en) | Mixed-language simulation | |
CN114239144A (en) | Modelica-based whole vehicle model construction method and device | |
Li et al. | Smart deadlock prevention policy for flexible manufacturing systems using Petri nets | |
Senthilkumar et al. | Designing multicore ECU architecture in vehicle networks using AUTOSAR | |
Eiter et al. | Asp-based signal plan adjustments for traffic flow optimization | |
CN109088746A (en) | A kind of cloud resource method of combination and device | |
Szarata et al. | Simulating the impact of autonomous vehicles (AVs) on intersections traffic conditions using TRANSYT and PTV Vissim | |
Palm et al. | A novel approach on virtual systems prototyping based on a validated, hierarchical, modular library | |
Vaillant et al. | Energy management strategy to be used in design space exploration for electric powertrain optimization | |
JP5401275B2 (en) | Integrated simulator | |
CN117155422B (en) | CAN signal receiving and transmitting method and system | |
US20050102645A1 (en) | Method of generating a schematic driven layout for a hierarchical integrated circuit design |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190528 |
|
RJ01 | Rejection of invention patent application after publication |