question

Carlos M11 avatar image
0 Likes"
Carlos M11 asked Carlos M11 commented

question about flow times

Hello, pretty basic question, i am quite new so i am still not familiarized with the functions, i currently only know how to utilize the fixed resources at a basic level.

I am trying to simulate a fast food restaurant queue, basically all i want is the "process time" to be different after Nth item, as if the cooks had items on stock, i fount the function on process time named "Different Time for Nth Item" and it works somewhat for my intentions, however, the cooks find themselves cooking constantly.

Is there a way to make the "Different Time for Nth Item" function reset after X time (lets say, after every hour), or do i got to find a different approach? any guidance or links to relevant information would be appreciated.

FlexSim 18.2.3
flexisim
· 2
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 tannerp commented ·

Just to clarify, do you want to have every X item have a longer process time? For example, item 5, 10, 15, 20... etc.?

Or do you want to keep track of the number of items and then, after a set number (i.e. 10 items), change the process time for all other items afterward? For example, process time for items 1-10 is 0, but items 11 onward have a process time of 20 until the count is reset?

0 Likes 0 ·
Carlos M11 avatar image Carlos M11 tannerp commented ·

@Tanner Poulton

in short yes, its your second idea.


If you want me to be very specific, in the model i am going to utilize it will have the following aspects:

restaurant opens at 8:00

restaurant magically has 7 items ready to go, any customer that orders one of those 7 iterms will only have 1minute wait time, any customer that orders an item after them, it will be 5minutes

at 9:00, magically restaurant will gain another 10 items "ready to go" (if there was any residue after the last hour cycle, that doesnt matter, it will always cap at any other defined number that i was planning to extract from a simple excel table, if this step is too complicated it can always cap at 7),

ill check the model you did thanks a lot!

0 Likes 0 ·

1 Answer

·
tannerp avatar image
0 Likes"
tannerp answered Carlos M11 commented

Please review the attached model and see if it behaves like you're expecting. I've changed the triggers in the Processor to update a count called "foodStock" stored as a label on the Processor. When the count goes below 0, the Process Time changes from 0 to 10.

Then, at time 300, the source in Process Flow creates a token which then resets the value of "foodStock" to 10 and thereby resets the Process Time on the Processor to 0.

Hopefully this helps. Please review the triggers in the Processor as well as the Process Time code and use those as a starting point for building your own code.

Model: fast-food-sim.fsm


· 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.

Carlos M11 avatar image Carlos M11 commented ·

ahh i think this will be enough, i will only have to extend the if with several cases if i want different wait times on different times, ill mess around with it

thanks~

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.