question

MPeyman avatar image
0 Likes"
MPeyman asked MPeyman commented

Unloading items

Hello everyone,

I have created a model in which a task executer randomly selects one of the W to load and then randomly travels to various C destinations to unload. However, the unloading process randomly distributes the items to each C, which is not ideal. I aim to improve this by having the task executer unload a batch size that defined 5 for each C. If there are any remaining items, the executer will randomly choose another C to unload. If there are no more items left to unload, the task executer will randomly select one of the W items to refill it.model.png

FlexSim 23.0.0
batch sizeunload items
model.png (153.7 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @MPeyman,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
MPeyman avatar image MPeyman Jeanette F ♦♦ commented ·

Sure, here is my model.Try.fsm

0 Likes 0 ·
try.fsm (7.9 MiB)

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered MPeyman commented

Hello @MPeyman

I changed your subflow for the unloading so it made a token for each item. Those items are then batched together in groups of 5. Then the destination is assigned for each batch of 5. Those items then run through another subflow so each item is unloaded.

1677279862123.png

try_1.fsm


1677279862123.png (32.0 KiB)
try-1.fsm (7.9 MiB)
· 11
5 |100000

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

MPeyman avatar image MPeyman commented ·

Dear @Jeanette F Thanks for your consideration But in that model the task executer get stuck in unloading part and dont come back to choose another W and do the process in a loop even when I conected the release part to the wait for the event.model.png

0 Likes 0 ·
model.png (153.7 KiB)
Jeanette F avatar image Jeanette F ♦♦ MPeyman commented ·

I moved the create Task Sequence to before that run subflow and it works now. The only thing is that the first 10 items in the item label are blank on my run. I assumed this had to do with a server connection that it said it couldn't reach so hopefully those fill in correctly when you run it.

1677293220706.png

try_2.fsm

0 Likes 0 ·
1677293220706.png (33.7 KiB)
try-2.fsm (7.9 MiB)
MPeyman avatar image MPeyman Jeanette F ♦♦ commented ·

Hi @Jeanette F In this model UAVs goes randomly to the W picked up items and then goes to C2, and C4, But they just release one item there and then both of them goes to C1 and stay there forever. So, In processflow, I changed the "Unload each item" and turn off the "Run tokens one at a time", then they unload 5 items in C2 and C4 but again they goes to C1 and stay there forever.

I guess its automaticly create a token for each UAVs because we have load 10 items which means 2 batches since each batches contains 5 item. But I see that its alot more than that, and after finishing loading 10 item for each UAVs, then in unloading part each of them get 22 token. which I think is not right, or maybe I don't underestand it. try-2.fsm

Also, instead of setting the batch quantity to 5, is it possible to set it equal to the batch size of each "C"? then it can be change depend on each "C" batch size.

Thanks in advance.

0 Likes 0 ·
try-2.fsm (7.9 MiB)
Show more comments