How can I set attribute age in simevents

1 回表示 (過去 30 日間)
IFIGENEIA POLOGIORGI
IFIGENEIA POLOGIORGI 2016 年 4 月 11 日
回答済み: Abdolkarim Mohammadi 2021 年 3 月 18 日
I have a model in simevents where, I want to include the entity attribute: age. Age must be signal port and must be created as a value vector where the age values will be [10-19, 20-29, 30-39,...and so on until 100]. The value vector will then be combined with a probability vector, in order to create an event based random number. My question is how can I set a value vector that will permit value intervals as the above. Thank you in advance!

回答 (1 件)

Abdolkarim Mohammadi
Abdolkarim Mohammadi 2021 年 3 月 18 日
For each entity, you should first select an interval based on probabilities using a discrete probability function, and then, generate a number within the limits of that interval using one of the continuous probability functions.

カテゴリ

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