フィルターのクリア

How do you keep the intergeneration time with a large ServiceTime in Simevents

2 ビュー (過去 30 日間)
George Jacob
George Jacob 2019 年 3 月 12 日
I'm using the following code to generate time-based entities some of which are multiple entities at a particular instance. The following is my MATLAB code for Intergeneration interval:
persistent SEQ1;
persistent idx1;
if isempty(SEQ1)
SEQ1 = [0 15 15 15 inf];
idx1 = 1;
end
dt = SEQ1(idx1);
idx1 = idx1 + 1;
If I run this through a server with a ServiceTime that is around 10, I find that the model creates entities at T = 0, 0, 15, 30, 45]. However when my ServiceTime is large (like 300), the entities are generated at T= 0, 0, 15, 300, 600. I'm not sure why this is? Do you know if there is a way to have a large ServiceTime for the server block and still generate entities at the originally specified MATLAB code?
Thanks

回答 (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