question

Pert P avatar image
0 Likes"
Pert P asked Pert P commented

How to go to node and visit others in one tour?

Hello, I have a question about my model. all about process want to manage by process flow.

I want to give operation go to node on list that determined on global table "Location to go" for example: At start Each operators will get on list per person and the go to node on that list (Node to go shows in row of them list) when the operator who complete they list, so start a new list. (Depot is NN7)

Thank You for your help

DEMO2.fsm


FlexSim 22.1.2
network nodesproces flow
demo2.fsm (54.0 KiB)
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
0 Likes"
Felix Möhlmann answered Pert P commented

First off, an easy way to generate one token for each operator is to add them to a group, then use the content of that group to determine how many tokens are created in the source. The 'tokenIndex' (which enumerates the tokens belonging to one arrival row) can then be used to assign a reference to the operator.

1655104688821.png

To distribute the table rows between the tokens, you could use a shared variable, such as a global variable or a label defined on the process flow (the attached model uses the process flow label). Each time an operator is assign a new row, this value gets incremented, so the next token will be assigned the following row.

1655104784862.png

To get the destinations for the travel activities, you can use 'Model.find()' and add the number from the table onto 'NN' to get the name of the network node to travel to. The number first has to be changed into a string (text) by using 'string.fromNum()'.

1655104866448.png

Doing this in a sub flow is an easy way to iterate through the table columns.

1655104942325.png

demo2_fm.fsm


1655104688821.png (25.0 KiB)
1655104784862.png (14.6 KiB)
1655104866448.png (20.5 KiB)
1655104942325.png (21.5 KiB)
demo2-fm.fsm (53.7 KiB)
· 16
5 |100000

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

Pert P avatar image Pert P commented ·
Thank you so so much. It's working. I miss one question if operator go to nodes already I want to let operator pick one box and carry to the next node until get it all node on list then release at NN7. then start a new list
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Pert P commented ·

Connect the network nodes to the respective queues. You can then tell the operators to travel to the queue, rather than the network node. So when setting the 'destination' label, change "NN" to "Queue" (this assumes that the queue numbering coincides with that of the nodes).

Then you can simply add a load activity after the travel, telling the operator to load the first box inside the queue.

1655109951199.png

After travelling back to Queue7, use another subflow to unload all items that the operator is currently carrying.

1655110031312.png

In the attached model I also added a 'Zone' around the load activity, allowing only one token per queue to enter. Otherwise, if multiple operators load from the same queue at the same time they will try to load the same item (the first one in the queue at the time the task starts). This leads to them 'stealing' the item from each other.

A different way to circumvent this would be to have the queues push the items onto a list (partitioned by the queue) and have the operator pull items from that list, so each pulls a unique item.

demo2_fm_1.fsm

0 Likes 0 ·
1655109951199.png (23.4 KiB)
1655110031312.png (38.8 KiB)
demo2-fm-1.fsm (56.0 KiB)
Pert P avatar image Pert P Felix Möhlmann commented ·

I try to do follow you suggestion but I get something wrong, What's happen?

1655139456033.png

0 Likes 0 ·
1655139456033.png (1.0 MiB)
Show more comments
Show more comments
Pert P avatar image Pert P commented ·

demo2-fm-1-2.fsm


In case of this, I created number and I want some row there are 2 value some row there are 3 value. This is cause of 0 happening when run the model. process flow doesn't working. How to fix it ?


1655306142461.png




0 Likes 0 ·
1655306142461.png (1.6 MiB)
demo2-fm-1-2.fsm (56.1 KiB)
Felix Möhlmann avatar image Felix Möhlmann Pert P commented ·

Since there isn't a Queue0 in your model, you have to check if the value in the column is larger than 0. If not, the subflow can get skipped.

1655312206552.png

1655312230640.png

Make sure that the outgoing connections from the decide activity are ranked according to the setting, so the token is send to 'Get Next Queue' if the condition is true.

0 Likes 0 ·
1655312206552.png (21.4 KiB)
1655312230640.png (15.3 KiB)
Pert P avatar image Pert P Felix Möhlmann commented ·

Thank You

1st File demo2-fm-1-2.fsm

2nd File demo2-fm-1-2 copy.fsm

I've one question If I have 2 models and I want to combine model into one File for using the data on global table together. 2 Models There are different path, process flow. but There are the sam reading global Table when run simulation use the same data on global table and run the process flow on own layout when finish I want to see the result from 2 Models individual How to do like that ?

(I don't want to use the way to export CSV/EXCEL file and load to each model individually)


0 Likes 0 ·