Weather states in Simevents model

Hi
EDIT: I just read about the restrictions to the event-based random number, and I guess I can't use it the way I have tried to(??) But nevertheless; Does anyone have any suggestions to how I can implement the wanted behaviour?
I am trying make a model that takes weather considerations into account, and later have an affect on different service times.
I have four different start-states for the weather
Probability: [22.7% 27.1% 28.2% 22.0%] for State [1 2 3 4]
I tried to use the event-based random number with arbitrary discrete distribution together with a "set attribute" block , but I couldn't get any distributed results.
Does anyone have any solutions/suggestions to how this could be solved or is best implemented in a Simevents model?
Thanks!

 採用された回答

Wei Li
Wei Li 2015 年 12 月 18 日

0 投票

Hi Andrea,
The way you model that (as described) should work. You might want to check your model and make sure these blocks have been configured according to this design.
I tested the SimEvents construct in your picture and see entities distributed randomly as designed. The following are how I configured the Set Attribute block, and the Output Switch block.

1 件のコメント

Andrea
Andrea 2015 年 12 月 28 日
Thank you !
This works great, I think I must have messed up the Output Switch parameters.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDiscrete-Event Simulation についてさらに検索

質問済み:

2015 年 12 月 18 日

コメント済み:

2015 年 12 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by