question

mUg24 avatar image
0 Likes"
mUg24 asked Jeanette F commented

Query error: pulling from list (order by distance)

Hello!
I am trying to make a basic model where orders are created, each one with two labels Cantidad that specifies the number of boxes to pick and Cliente, that specifies which client is requesting product.

Since the boxes are placed in racks in a random fashion, and many boxes must be picked to complete an order, I supposed that making a query where pulled items were ordered by distance would help to have less traveled distance to complete an order. I think the error is that the distance is considered from the item to the puller, and the puller is the token, hence the distance can't exist as a number.

example.jpg

If my assumption is correct, how can I make the query look for closer items?

Thank you!


Picking.fsm

FlexSim 22.2.2
process flowqueries pick from list
example.jpg (163.5 KiB)
picking.fsm (66.1 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @mUg24, was Felix Möhlmann'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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Your assessment is correct.

You can either use the Queue as the puller, but then you'd need to write the "Cliente" label to it before the pull. Which would mean you couldn't have multiple different back orders at the same time.

Or you edit the code for the "distance" expression to use the Queue to calculate the distance.

1670061337720.png


1670061337720.png (22.5 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.