question

Mohamed Eldakroury avatar image
0 Likes"
Mohamed Eldakroury asked Mohamed Eldakroury commented

Schedule source by Global table

I have a a schedule source in the process flow and I have a demand table. Every week, my source will create tokens that have 3 different Models. I want the source to use quantities from a global table. The tricky part is that my demand table is in months, but I want the source to create tokens every 7 days.

1710424565556.png

I want the source to use the first column for the first 4 weeks, the second column for the next 4 weeks and so on. I am having troubles referring to the correct column and row in the global table, and even if that worked, not sure how to make it use the first column for the first four weeks, then switch to the next column.

I'm assuming I need a tracked variable that increments every four weeks, then use that as my column reference?


ScheduleSource.fsm

FlexSim 23.2.0
global tableproces flowschedule
1710424565556.png (4.5 KiB)
schedulesource.fsm (48.3 KiB)
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 Mohamed Eldakroury commented

It find it is often times easier/clearer to use multiple steps instead of trying to fit everything into one activity or flow.

I would create one token per row in the table. These tokens then create the required number of tokens per type every week.

To get the correct column you could access the current month in the model through the DateTime class (then account for the offset because your table starts with march).

1710488119788.png

schedulesource-fm.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.

Mohamed Eldakroury avatar image Mohamed Eldakroury commented ·
Thank you!

That works and it makes sense,

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.