Linked Node

Linked Node

MPeyman
Not applicable
3,057 Views
15 Replies
Message 1 of 16

Linked Node

MPeyman
Not applicable

[ FlexSim 23.0.8 ]

Hi Dear All,

I have created a Model, where two vehicle (AGV) travel in a networks of node, and base on global table visit some node that related to the Queue, pick up items and put in the destination.

Here I have difficulty for this three points:

1- I want to consider if one vehicle took responsibility of one row of global table then the other should do the next row until finishing the table together.

2- I want to consider that some nodes are link to each other for example the nodes of Queue 2 and 3 are linked together also nodes of Queue 7 and 8 are linked. so if vehicle1 take row 1 and goes to one of the Queue2 or 3 then if vehicle2 visited the queue1 and wants to visit queue 2 or 3, since vehicle 1 is still in the linked node should wait in one node like NN13 until vehicle1 get out of this link nodes, the same for the queue7 and 8. so the travel time of vehicle 2 might increased due to the delay. (I dont wanna use the UseMaxWaitTimer option )

3- how can I get the output of traveltime matrix or the travel time for each row of the global list after finishing each row. (in excel format)

peyman-flex-model.fsm

0 Likes
Accepted solutions (1)
3,058 Views
15 Replies
Replies (15)
Message 2 of 16

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

Here's the model adapted to answer the first part of your question where instead of incrementing a counter I have the tokens pull the row from a list (I've pushed the row node but you could also just push the row number to the list)

peyman-flex-model_jl.fsm

At the moment you're constraining the loading activity so that only one AGV can load from a queue at a time but it sounds like your travel should also be constrained by a zone partitioned by an array of [FromNN, ToNN].

0 Likes
Message 3 of 16

MPeyman
Not applicable
Dear Jason, thank you for your answer for the first part. I see that both AGV load one of the row from table correctly and unload them to the destination correctly. how can I have the travel time fromNN toNN? or the total travel time of each row?
0 Likes
Message 4 of 16

jason_lightfoot_adsk
Autodesk
Autodesk
You can try just recording the staytime in the RunSubflow activity to a stats collector.
0 Likes
Message 5 of 16

MPeyman
Not applicable

Dear Jason I tried to get the table like this but I couldnt:


result.pngAlso, I tried to change my input so instead of each operator visit all queue sometimes the list has 4 nodes and some time 5 nodes or lees or more queue to visit so I put Zero but I got error. how can I have this table as an input without error: expected-input.png


peyman-flex-model1.fsm

0 Likes
Message 6 of 16

jason_lightfoot_adsk
Autodesk
Autodesk

You can add a branch in your subflow that skips to the finish if token.desti doesn't exist.

1704459810754.png

If you split the process to use an Object Process Flow for the operators then that's easily referenced as 'instance' in the stats collector - which means you can get this table.

1704460736161.png

Since this isn't so simple I'm attached the modified model.

peyman-flex-model1_jl.fsm

0 Likes
Message 7 of 16

MPeyman
Not applicable
dear @Jason Lightfoot , thanks for your answer this works well. how about the statistic collector do you have suggestion for that?
0 Likes
Message 8 of 16

jason_lightfoot_adsk
Autodesk
Autodesk

A new collector? I've updated yours to give the table you wanted/showed above.

0 Likes
Message 9 of 16

MPeyman
Not applicable
@Jason Lightfoot , ah this part of answer did not appear previously Thank you.
0 Likes
Message 10 of 16

MPeyman
Not applicable

Hi dear @Jason Lightfoot, regarding the time that we discussed before, I noticed that when the operators picked up items from last queue the time added to the table and it doesn't consider the travel time from the last queue to destination. I would like to ask how is it possible to include the travel time from starting point and also destination points?

0 Likes
Message 11 of 16

jason_lightfoot_adsk
Autodesk
Autodesk

Are you saying you want the time for this whole block?

1705319141662.png

The easiest way might be to have those as a subflow and use a new RunSubflow for the stats. Alternatively you could look at recording the entry time to Travel to Queues and the exit time from Unload all using two events per row in the stats collector.



0 Likes
Message 12 of 16

MPeyman
Not applicable
@Jason Lightfoot , yes exactly. so if I understand it right, you mean that I can add two column more for each row as a entry time and exit time?
0 Likes
Message 13 of 16

jason_lightfoot_adsk
Autodesk
Autodesk
Yes, if you don't want to add a new RunSubFlow and substitute that for the Travel To Queues activity in the Stats Collector.
0 Likes
Message 14 of 16

MPeyman
Not applicable

@Jason Lightfoot here in my model I add onEntry and onExit, but I have error.

peyman-flex-model_original.fsm

0 Likes
Message 15 of 16

jason_lightfoot_adsk
Autodesk
Autodesk

Keep the activity entry and exit as the events - you don't need different events for each operator since that's the instance. Make the row entry key the token, and finish the row only on the exit event of the Unload All activity.

peyman-flex-model-original_jl.fsm

0 Likes
Message 16 of 16

Jeanette_Fullmer
Community Manager
Community Manager

Hi @MPeyman, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes