question

Rober G avatar image
0 Likes"
Rober G asked Rober G commented

Stuck At Wait For Event

CurrentStateModel.fsm

Good day, I hope you are doing well!


I have been struggling with a persistent problem (I am unfortunately very much a beginner)

The wait for event is linked to the truck arrivals, therefore the tokens await material arrival to satisfy the recipe requirements.

Some tokens get stuck at the wait for event because, at their time of creation, there was insufficient inventory. Is there a way I can re-test them so they become "true"? If this is the problem? They have an entry time at the end of the model run which is even more confusing...


1691762313954.png


@Natalie White had suggested replacing the wait for event with a decide, but this however did not work for me. I had set it up to send the false tokens to connection 2: to the "assign label" and true to connection 1. Is the "decide" still the way to go, but I implemented it wrong?


Please see my attached model.

Any advice would be greatly appreciated!

FlexSim 23.0.10
process flowwait for eventzone
· 2
5 |100000

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

Regan Blackett avatar image Regan Blackett ♦ commented ·
The tokens aren't really getting stuck in the way you probably are thinking. If you put a Delay activity with a time of zero after your Wait for Event, then set a stop time of 14700 (first token from the Bunker Arrival, just for example) and Fast Forward the model to that point.


Now hit step twice and notice that the tokens at the Wait for Event have moved on and will go back to your Enter Zone activity and do your process again. They all eventually end up back at the Wait for Event because they fail the Decide test for "Satisfiable". I'd take another look at how that condition is checked.
1 Like 1 ·
Rober G avatar image Rober G Regan Blackett ♦ commented ·
Thank you I will try and figure it out :) to me the decide looks okay but as you say it's not the case.
0 Likes 0 ·

1 Answer

Jeanette F avatar image
2 Likes"
Jeanette F answered Rober G commented

Hello @Rober G

Its actually not remaining stuck. The token does move but it ends up back at the wait for Trucks activity. If you add in a breathe activity and step through the model you will see this.

1691768595314.png

In this photo you will see the token at the Breathe activity. This token was on the Wait for Trucks activity, so this just shows that it does move from the wait for event activity.


1691768595314.png (54.6 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.

Rober G avatar image Rober G commented ·
Thank you, I will try and figure it out :)
0 Likes 0 ·