question

kuo avatar image
0 Likes"
kuo asked Jason Lightfoot commented

Can i set a source's inter-arrival time by time of the day?

As the title, i want to set a source's inter-arrival time by time of the day. For example, I want my source inter-arrival time is exponential(0, 10, getstream(current)) second before noon, and exponential(0, 15, getstream(current)) after noon. Where can i setup my source like this?

FlexSim 23.2.1
sourceinter-arrival timearrivaltime
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @kuo, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jason Lightfoot edited

capture1.png

Instead of current you have to use ownerobject(c) when filling in the table.


capture1.png (10.6 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

That pick option has issues across the hour boundaries - particularly with sparse events.

Take this example where the expected inter-arrival rate for the first hour is 30 mins and then every 10 seconds in the second hour (contrived to show its limitation).

The arrival for the first hour actually arrives in the second hour and the 10 second interval items don't start arriving until then (9:48). What 'should'* be happening is the first arrival is discarded at the end of the first hour and the 10 second arrivals start from 9am.

Source_timeofday_issue.fsm


*what most people might expect without scrutinizing the behvior and what most people would probably implement if they were asked to provide a 'water-tight' solution.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.