question

doug palmer avatar image
0 Likes"
doug palmer asked Phil BoBo edited

Source inter arrivaltime by time of day ramps up by 1000x the amount set

arrival-time-by-time-of-day.fsmI wanted to have a source deliver 1 piece per hour starting at 8am until 6pm then stop. using inter arrival time by time of day I plug in 1 for each hour then zero after 6pm. When I run the model it spits out 1035 in 2 hours and then stops. see attached.

I used 1 piece per hour to make it simple I have actually have different amounts for each hour. I still had the problem occur with the varing amounts.

FlexSim 19.0.2
by time of dayarrival timearrivaltime
5 |100000

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

Phil BoBo avatar image
1 Like"
Phil BoBo answered Phil BoBo edited

The "By Time of Day" option in the Inter-Arrivaltime trigger returns the inter-arrival times of flowitems generated during those hours, not the quantity of flowitems during those hours.

In your configuration, from 8:00 AM to 6:00 PM, items will arrive every 1 second. From 6 PM to 8 AM, items will arrive every 0 seconds (one will be created immediately after one leaves).

You are trying to use a quantity of items per time period, not the interarrival time of items per time period. Use the Date Time Source as Tanner suggested, or change your Source from arrival style "Inter-Arrival Time" to "Arrival Schedule."

5 |100000

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

tannerp avatar image
0 Likes"
tannerp answered tannerp edited

Hi @doug palmer,

For whatever reason, the "By Time of Day" doesn't do what it intuitively seems like it would. Maybe @phil.bobo or @jordan.johnson could shed light on this.

Based on what you're describing, I think you'll have better luck using a Date-Time Source in Process Flow. You can set up the table in a similar way to what you had (I used the Generate table feature at the top left) and then add in the quantities you need. Then I just substituted a queue for the source and used an activity to create objects with Process Flow. To double check the logic, there's a piece called "Print Hour of Day" that you don't need, but it shows in the output console that the boxes come every hour as designated in the Date-Time Source.

Hope this helps!

by-time-of-day.fsm


5 |100000

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