question

sara S2 avatar image
0 Likes"
sara S2 asked sara S2 commented

Why tokens are not created at the corresponding times (Schedule source) !

Hello,

In the process flow "Replenish meds for administration in ICU/WA" (Fig1) I have the following planning "ConPlanning" (Fig1). Till the time 4632 minutes tokens are created correctly but from the time 5434 minutes tokens are not created at the corresponding times. For example, the token is created at 5534 minutes instead of 5434 minutes (difference of 100 minutes) ! I found this very strange. I really can't understand the reason of this trouble; may be I clicked on something with no attention while I filled those times. Please if anyone have an idea about this trouble or have already encountered the same situation, help me to understand this.

Regards.

fig1.png

FlexSim 19.0.0
schedule source
fig1.png (38.2 KiB)
· 8
5 |100000

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

Braydn T avatar image Braydn T commented ·

@sara S2

Could you upload your model so we can take a closer look?

Thank you!

0 Likes 0 ·
sara S2 avatar image sara S2 Braydn T commented ·

@Braydn T, unfortunately I can't, it is a confidential work. I really wish I could! I posted the question hoping that someone who encountered the same trouble could help me.

@@Braydn T, thank you for trying to help.

0 Likes 0 ·
Braydn T avatar image Braydn T sara S2 commented ·

We can set this question to private, so no one else can see it, but without seeing the behavior it will be hard to troubleshoot.

0 Likes 0 ·
Show more comments
Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

If you copy that activity into a new model does it create the tokens at the right time?

0 Likes 0 ·
sara S2 avatar image sara S2 Matthew Gillespie ♦♦ commented ·

@Matthew Gillespie, I know this is much harder and I am sorry for this. I am grateful for your help.

Okay, I am going to copy this process flow and the attached global tables and I will tell you the result.

0 Likes 0 ·
sara S2 avatar image sara S2 Matthew Gillespie ♦♦ commented ·

@Matthew Gillespie,

I copied the activity into the attached model, the problem is still existing.

activity-trouble.fsm

0 Likes 0 ·

1 Answer

·
Brandon Peterson avatar image
1 Like"
Brandon Peterson answered sara S2 commented

@sara S2

The reason that you are seeing tokens created at the wrong times in your model is because the times are not sequential. In the attached picture (from your last model) you can see that row 589 is at time 4527 which is before row 588 at time 4626. The scheduled source is looking at the difference in time between rows. This means that 589 is created at 4626 (because the difference was < 0) and row 590 is created at 4627 because the difference between 589 and 590 was 1.

It looks like the times were entered wrong and the fix would be to correct the times. If the times are correct then rows 589 and 590 need to be moved so that the arrival times are all in sequence.

Hope this helps,

Brandon


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

sara S2 avatar image sara S2 commented ·

@Brandon Peterson, thank you very much for your help.

1 Like 1 ·

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.