How do you keep the intergeneration time with a large ServiceTime in Simevents
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!