question

XiomaraG avatar image
0 Likes"
XiomaraG asked Jason Lightfoot commented

Loading items by type from a queue to a truck

Hi, everyone!

I'm currently working on a simulation where a different truck assigned to a customer arrives at our warehouse every hour. During that hour, the truck is supposed to pick up specific items from a queue for that particular customer. The queue is already programmed so the items that are here corresponds to the customer assigned to that hour.

For instance, between 8 and 9, the queue exclusively prepares products of type 9 and there's a truck type 9 that picks them up. Initially, I thought the truck arrivals to align with this process in the following manner:

1701308775857.png

The triggered event is the entry to the queue where all the items of that type are ready to be collected. For the Decide I thought setting this condition:

1701307788144.png

Basically if it comes to the queue a product that doesn't match with the customer assigned to the truck, the latter just leaves. The problem is that the first bus leaves but when the next one arrives (product "Cliente" 10), it doesn't pick up the products that are ready:
1701307905953.png

That's why when I'm going to check the statistics, at 3600 s there's no product sent.

1701307573212.png

I think there's a problem with the conditional or its position in the process flow. I also tried with lists as you can see:
1701308455957.png

However there are some errors:
1701308489842.png
So my question is:
1. ¿could you help me develop a simple way to do this? The important thing is that when the next truck arrives it picks all the products corresponding to its customer and waits for an hour until the other truck comes.
I've been working really hard but there are lots of new concepts that are a bit difficult to understand for me.

Thanks in advance for all your help!!

FlexSim 22.2.0
liststruckpickup
1701307573212.png (17.7 KiB)
1701307788144.png (24.6 KiB)
1701307905953.png (267.8 KiB)
1701308455957.png (29.2 KiB)
1701308489842.png (26.0 KiB)
1701308775857.png (55.5 KiB)
· 2
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

I'd use lists but it looks like your pull from list SQL expression is referring to truck2 - and not the puller. Try making the truck the puller and refer to the puller.Cliente in the WHERE clause of the query.

· 2
5 |100000

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