Schedule source by Global table

Schedule source by Global table

alaaeldakrory
Not applicable
136 Views
2 Replies
Message 1 of 3

Schedule source by Global table

alaaeldakrory
Not applicable

[ FlexSim 23.2.0 ]

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

0 Likes
Accepted solutions (1)
137 Views
2 Replies
Replies (2)
Message 2 of 3

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

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

0 Likes
Message 3 of 3

alaaeldakrory
Not applicable
Thank you!

That works and it makes sense,

0 Likes