conditional entity generation in simevents

2 views (last 30 days)
summyia qamar
summyia qamar on 28 Feb 2018
Commented: summyia qamar on 9 Mar 2018
Is it possible to generate entity from entity generator with a condition that when the queue attached with the entity generator has entity less than its capacity, a new entity is generated. I tried this thing given in figure below
In my figure, there are 4 entities being generated from entity2 block at the start of simulation and after that whenever an entity exit from queue, a new entity is generated from the other entity generation block.But I am looking for the alternate solution in which i dont have to generate 4 entities at the start of simulation.can anybody guide me if its possible or not.
summyia qamar
summyia qamar on 9 Mar 2018
yes I got the solution. The blocking of Entity. Thanks

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!