question

Niket M avatar image
0 Likes"
Niket M asked Niket M commented

Creating a pick list by appending two arrays

Hi fellow users,

I am working on a warehouse model. For picking, an operator gets a pre-loaded cart with orders and then they begin the pick path. I am trying to create the same logic by using process flows, I've used some ideas from the "warehouse model", however, I am not able to figure out how to assign the pick locations for each line to the same array so that I can start the pick sequence.

In this model, I tried batching the tokens for the orders but when I append the arrays from the tokens, it makes a new array with nested values which is not what I want.

Any help will be appreciated, thank you.

pick_list_question.fsm

FlexSim 22.2.2
warehouse
5 |100000

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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Niket M commented

I would push both arrays to a list and then pull all the values ordering by bay, aisle etc so that you have the correct sequence.

Appending array a1 to a2 can be this:

  1. while(a1.length)
  2. a2.push(a1.pop());

which will reverse a1 while appending, or simply:

  1. a2.append(a1);


· 9
5 |100000

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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Niket M commented

You can try method concat of Flexscript API.

Edit: Example shows concatenation of an explicit literal array. This works with a reference by array variable, too.

· 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.