question

Joe L6 avatar image
0 Likes"
Joe L6 asked Joe L6 commented

Operator dayoff setting

Hi team,

I have a problem about operator dayoff setting. In the situation I have 3 operators. And I use GlobalTable and TimeTable function to decide the operators will go to work or not.

PS: I refer to the answer below.

https://answers.flexsim.com/questions/126129/how-to-set-number-of-operator-for-each-shift-by-gl.html

Now I face a problem that in Day1, the model works well. But after Day1 the operator1 will always work, and I can't control all 3 operators to work or not.

I use the FlexSim 2018 Update 1 version and the answer above use FlexSim 2016 Update 1 version. I already change the departure part. But maybe I didn't do it right. I think the red frame part is the part I do it wrong.

code.png

Can the team please help me to find out where the problem is? Thank you!

Also I upload my model below.

Operator_Dayoff_Setting.fsm

FlexSim 18.1.2
timetablesglobaltabledayoff
code.png (2.3 MiB)
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
1 Like"
Felix Möhlmann answered Joe L6 commented

You are using a different date format than the user in the linked post. So your are correct in that you have to adjust which part of the date string you extract to get the day.

Because you are using a new version, you can also just use the DateTime class to read the current day of the month directly.

1669020230319.png


1669020230319.png (11.4 KiB)
· 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.

Joe L6 avatar image Joe L6 commented ·
Thank you @Felix Möhlmann! I use your way and it fixed my problem. If I have another problem I'll ask again. 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.