question

stefano L avatar image
0 Likes"
stefano L asked stefano L commented

How to choose the item based on nearest distance to task executer

Hi everybody,

I need to choose the item with the maximum capacity, based on type of boxes stored in the warehouse, and the fastest one to take.

Actually the custom code in the Process Flow "Max box byType" decides every time the item to be taken from the warehouse with the maximum capacity according to type, but in the event of a tie, I would like to select the fastest one to reach in the warehouse.

So, for example, if in the StoringBay there is an item of type 2 and in the warehouse there are 2 or more items that have the same capacity, which is the maximum among all the items of type 2 in the warehouse, I have to select the item that is the nearest to reach in relation to the position of the ASRS.

For instance, in the picture below, the ASRS has to take the item at the bottom right, which is the closest, not the one at the top left.

max.fsm

Is there a way to do it?

Thank you very much.

FlexSim 19.0.0
rackwarehousepull strategy
ware.jpg (87.9 KiB)
max.fsm (34.6 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

Alessio Merlo avatar image
1 Like"
Alessio Merlo answered stefano L commented

Hi @stefano L,

to satisfy your request, you can do two simple steps:

1. to define distance field in the list depending on ASRS;

2. to remove your code from process and use query option in the "Pull From List" activity;

Then without writing any code you can choose which box satisfies your query depending on the field in the list.

I attached the model with the implementation.max-updated.fsm.

I hope to reply correctly to your question.

Have a good day!


distance-field.png (91.8 KiB)
pull-from-list.png (60.8 KiB)
max-updated.fsm (34.9 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.

stefano L avatar image stefano L commented ·

@Alessio Merlo Thank you very much for your answer! This is exactly what I needed to get the result.

0 Likes 0 ·