question

Maryam H2 avatar image
0 Likes"
Maryam H2 asked Maryam H2 commented

Time Table

Hi there,

How can we create a two-week timetable and set up a custom repeat function for biweekly scheduling?

Also, is it feasible to introduce randomness to the duration of the lunch break? How could this be implemented?

FlexSim 23.1.3
time tablecustom repeatduratio
5 |100000

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

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Maryam H2 commented

Choose Custom Repeat as the mode and enter the time after which the time table should restart. There is no graphical interface available when you choose the custom mode though. You can either fill in the table manually or you first use the Date Based mode, mark the down times for a two week period then switch the mode. The times will stay in the table.

1692772776278.png

1692772790053.png

To add a random factor to the duration, you would set up a down behaviour in which resuming the object is also scheduled in the down function.

Take for example the option Travel To Location, Delay Until Down Time Complete. It dispatches a task sequence to a task executer that keeps it busy until the end of the down time. The resume function is not actually needed in that case. Meaning that you can alter the duration in the down function code. The resume function will still trigger after the original duration, but since it doesn't anything this isn't an issue.

1692773003311.png For a fixed resource you could schedule a delayed message in the down function and set the message trigger of the object to resume it.


1692772776278.png (19.5 KiB)
1692772790053.png (19.7 KiB)
1692773003311.png (9.3 KiB)
· 3
5 |100000

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

Maryam H2 avatar image Maryam H2 commented ·

Thanks @Felix Möhlmann for the response.

I understood how to set biweekly repeat. But for the down behavior, how can I change the code to make the downtime duration random? For example, if an operator has a lunch break and I want the break duration to vary randomly between 30 minutes to 1 hour, what changes do I need to make in the custom code within the Down Function?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Maryam H2 commented ·

Line 22 - swap duration for your own value or adjust it with a distribution sampled before that line:

1692807861153.png

1 Like 1 ·
1692807861153.png (82.0 KiB)
Maryam H2 avatar image Maryam H2 Jason Lightfoot ♦♦ commented ·
@Jason Lightfoot Got it, thanks!
0 Likes 0 ·