question

MPeyman avatar image
0 Likes"
MPeyman asked Andrew O commented

Multi drones, multi warehouses, multi customers

Hi All, I created a model that consisted of groups of warehouses (W), groups of customers (C), and groups of UAVs, for which I used a crane to play the role of Drones.

Without making any lists, I wanted each drone. Randomly chose the nearest W and satisfy the customer that their content reached below certain number, then from there goes to another warehouses and do the same. But I got Error and stock on it. Any help is appreciated. DRONESMODEL.fsm

FlexSim 23.0.0
taskexecutormultiple cranesmultiprocess
dronesmodel.fsm (7.8 MiB)
· 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.

Andrew O avatar image Andrew O commented ·

Hi @MPeyman, was Joerg Vogel'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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

An Array is datatype structure that returns only first element if it is inserted as a reference to load or unload items. You have to use a code structure to load each element separately. This can be a subflow or a loop structure.

Alternatively you can evaluate an array to return a value from end or start and simultaneously delete the element of the array. Methods are pop or shift.

5 |100000

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