question

Kari Payton avatar image
0 Likes"
Kari Payton asked Adrian Haws edited

Tokens not moving in sync in subflow.

I have a subflow that releases 10 tokens to acquire 10 operators, delay operators, then release. The issue is that some of the tokens start to get delayed. I would like all of the tokens to move through the process together. Some get done early and move on to the next process and the ones that are "stuck" are delaying the process longer than it should take.

FlexSim 16.1.0
process flowsubflowprocess flow to 3dacquire multiple resourcesmove tokens together
tokensstuck.png (48.1 KiB)
· 3
5 |100000

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

Adrian Haws avatar image Adrian Haws commented ·

Hi @Kari Payton,

Could you attach your model for us to look at? Thanks.

0 Likes 0 ·
Kari Payton avatar image Kari Payton commented ·

@Sam Stubbs the problem still remains that the operators are running additional time. What I am trying to do is acquire 8 operators and have then go to the processor, run the processing time, and then release the operators to do other tasks. If I loop them they still have separate times they are processing even though it is the same time. Am I making sense?

0 Likes 0 ·
Kari Payton avatar image Kari Payton Kari Payton commented ·

NVM I accidentally put the assign CT in the wrong part of the process so the label was not being read properly. This should work. @Sam Stubbs Thanks.

1 Like 1 ·

1 Answer

·
Sam Stubbs avatar image
1 Like"
Sam Stubbs answered Sam Stubbs edited

Without looking at your model I can't give you specifics, but I can maybe give you some general things that could be happening. One thing to remember is that Process Flow is not directly connected to the 3D model view. The 'tokens' of process flow are simply a marker that steps through and executes the logic of the process flow. Also the tokens each will flow through the process on their own. If you need to limit how and when the tokens can move. (For example you said that you wanted them to "move together") You can use batching activities, or zones or pushing/pulling from lists, or "wait for event" activities to determine how and when the tokens move.

In your description, when the tokens are hitting the delay activity, each token is going through the process individually. (So if you have a distribution on the time of the delay, each token is getting a different variability of that distribution, hence they are leaving the activity at different times) Again I'm not sure about your model, but you could also try having a single token that requests multiple resources rather than multiple tokens individually requesting resources.

· 4
5 |100000

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

Kari Payton avatar image Kari Payton commented ·

@Sam Stubbs

could you please show me how can I have a single token to request multiple resources? The only reason I had multiple tokens was so I could request 10 resources for a specific process that linked to the 3D visual. Whenever I have tried using one token and acquiring multiple operators, during the travel flow, only one operator moves in the 3D space.

0 Likes 0 ·
Sam Stubbs avatar image Sam Stubbs ♦ Kari Payton commented ·

The quick answer is that you can have the Resource reference a group of objects, then in the Acquire Resource activity, you can select the quantity acquired to the number you want to use. This then creates an array of object references. You will then need to create a loop of some kind that loops through giving tasks to each member of that array. (Make sure that the "Wait Until Complete" box is unchecked for each task, otherwise they will execute the tasks one at a time.) Also prior to the loop, you can set the distribution wait time that you want to use on a label, and then reference that label when the objects hit the delay task in the loop. Then they'll all wait at the same time.

I've included a model example demonstrating this approach. However, having not seen your model, its hard to say if this is the approach you'd want to take.

multipleresources.fsm

0 Likes 0 ·
Kari Payton avatar image Kari Payton Sam Stubbs ♦ commented ·

@Sam Stubbs Thanks for the example. I will also attach a model to demonstrate what I was trying to do. The first subflow is a stat distribution and like you said each one goes through a separate distribution so it's skewing the times. 1617-multipleresources.fsm

0 Likes 0 ·
Show more comments

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.