question

Manuel LRH avatar image
0 Likes"
Manuel LRH asked José Antonio MD answered

Flowitems positioning within queue

Hello all!


I am trying to simulate the truck flow within a site. To do so, I am using AGV networks and queues for the waiting areas or parkings. I want a waiting area with trucks parked in parallel an close together. However, whenever the trucks enter the queue they are positioned in two different ways depending on the position in the network with respect to the position they were created in:

1635154546714.png

The trucks on the left are close together, but not in parallel. The trucks on the right are in parallel, but not close together or in the queue. I have tried the different options for "Item Placement" in the queue options, and this is the closest I get to the solution. I think I know why this happens, the space occupied by the object does not rotate with the flowitem, but I don't know how this problem could be solved.

I will post a small model to exemplify my issue.

Thank you very much in advance,

Manuel

Parking_Doubt.fsm

FlexSim 21.0.3
agv networkqueuing strategy
1635154546714.png (137.9 KiB)
parking-doubt.fsm (33.1 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.

José Antonio MD avatar image
0 Likes"
José Antonio MD answered

Hello @Manuel LRH,

You can do what you want directly if you use a Floor Storage instead of a queue.

I hope I have been helpful.

parking-doubt_1.fsm


parking-doubt-1.fsm (46.3 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.

Manuel LRH avatar image
0 Likes"
Manuel LRH answered Manuel LRH edited

I have coded my way around the problem, not sure if there is a simplet solution.

Basically, I created a table with the position of the parking spots (four in the examples) and a column that determines if the spot is occupied or if it is not.

Whenever a truck parks, a "Change visual" is executed and it iterates the table mentioned above looking for available spots. Whenever it finds one, it situates the truck in that spot, it changes the occupied column and it stores the spot where the truck has parked in a token label.

As soon as the truck leaves the parking, another custom code is executed where the occupied column changes using the spot label on the token of the truck.

It is important to remember to put a OnReset trigger on the global table to reset the "occupied" column. I will leave the model bellow, just in case anyone wants to check it out. Sorry for the programming, not my strong point haha :).

If anyone knows a more elegant solution, feel free. Anyway, this solution es pretty solid since I came throu another solution before that didn't take into account the leaving trucks, so sometimes a truck could park in an occupied space.

Thank you very much,

Manuel

Parking_Doubt.fsm


parking-doubt.fsm (36.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.

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.