SimEvents. How can I simulate a queue timeout?

16 ビュー (過去 30 日間)
Wilco Kelderman
Wilco Kelderman 2020 年 12 月 14 日
回答済み: Wilco Kelderman 2020 年 12 月 15 日
Hi,
I'm a SimEvents rookie trying to learn the ropes to model discrete systems. I'm following the tutorial to model the restaurant's server system and I'm stuck on part 7.
The model uses a Schedule Timeout block which is now obsolete in R2020b (version I'm using). So my question is, how can I simulate entities dropping from a queue in R2020b?
Thanks in advance.
  2 件のコメント
RenatoL
RenatoL 2020 年 12 月 15 日
Someone has asked a question about this and there is an answer for it (here), but there's not any confirmation if it worked or not.
Wilco Kelderman
Wilco Kelderman 2020 年 12 月 15 日
Thanks for your input, it somehow helps, as it points to an idea I already had.
I was wondering if this could be achieved programatically by iterating thru the entities in my SimEvents FIFO queue and incrementing the WaitingTime attribute each unit of time, then all I would need to do is to extract from the queue those entities where WaitingTime = Patience (I hope that makes sense).

サインインしてコメントする。

採用された回答

Wilco Kelderman
Wilco Kelderman 2020 年 12 月 15 日
After SimEvents onRamp my next port of call for training was the video series "Model a Discrete Event System", unfortunately the series date back from 2013, using an older version of MATLAB. The timeout block used in the video 7 is not available anymore, and according to the migration of legacy libraries page:
If your legacy model contains timeout blocks, do not migrate the model. You can still access legacy blocks to continue developing older models by using the blocks in the Legacy Block Library.
However, as per the reply above, there is one suggestion on how to achieve this programmatically. I'm marking my question as answered as there is no obvious way to implement timeouts with the default Entity blocks. Using the MATLAB Discrete-Event System instead seems the way to go.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete-Event Simulation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by