How to add/combine two entity paths together to make it a singular one?
12 views (last 30 days)
Show older comments
For reference, I am creating a model for an assembly line, discreet event simulation so im using SimEvents blocks.
here is where im having trouble.

in 10seconds, both entity generators CREATE two entities. Meaning Sum of both is 4.
I would like these 4 entities to be one path however when i check graph for combined count scope it only shows two, pic below.

I believe i am misunderstanding the entity creator block, if anyone knows how to combine these two entity paths it would help a ton.
0 Comments
Answers (1)
Prateekshya
on 25 Aug 2023
Based on my understanding, it appears that there is a discrepancy between the expected and observed behavior in your simulation model. You were expecting to see four distinct paths in the scope, but you are currently only observing two. It seems that the "composite entity creator" block, which is intended to combine entities from different paths, is not performing the desired action.
Upon further investigation, it appears that the entities arriving faster are waiting for the slower ones, resulting in only the slower values being displayed. To gain more insight into this behavior, you may find the following link helpful: https://in.mathworks.com/help/simevents/ug/match-entities-based-on-attributes-in-simevents.html
To address your specific requirement, I recommend considering the use of a "message merge" block instead of the "composite entity creator" block. This alternative block has the capability to merge the results from both queues, allowing all entities to be included in the graph. I hope this helps!
0 Comments
See Also
Categories
Find more on Discrete-Event Simulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!