question

Jorge Lizárraga avatar image
1 Like"
Jorge Lizárraga asked Adrian Haws commented

How to process a batch of items at consecutive processors

Hi there,

I am trying to simulate a testing process where each product enter to each testing machine. Products arrive as a family of 2, 4 or 8 products to the testing area; each product should enter to a machine, but the family must stay together, so the products should enter to consecutive machines (Ex. if two products from the same family enter to the testing area, machines 1 and 2 should be used; is not possible to use machines 1 and 3).

How can I make that the products acquire consecutive machines depending of the family name and the quantity of products?

FlexSim 16.2.0
batchprocessorsarraysend to portfixed resource list
5 |100000

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

Adrian Haws avatar image
0 Likes"
Adrian Haws answered Adrian Haws commented

Jorge,

I apologize that we haven't gotten back to you on this one. I came up with another model that addresses the issue you mentioned, of allowing the processors to each process different types of families.

What I did was create a global fixed resource list of the processors, then had an array of objects in process flow pull an array of processors from the list. We then move each member of the "item" array to a corresponding member of the "processors" array (each on labels) with a loop. Once all of those processors are done processing, they are pushed back onto the list. The only hidden code I put in here is in the "Change Visual" activity.

Hope this helps.


familyobjects.fsm (24.4 KiB)
· 3
5 |100000

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

Adrian Haws avatar image
0 Likes"
Adrian Haws answered Adrian Haws commented

Jorge,

I made a sample model with a scheduled source activity creating different numbers of objects at a time, based on a global table. The objects are then batched as a group, so that they arrive at the processors at the same time. They then acquire a different group of processors, based on the number of objects in the group.

Let me know if this answers your question or if your model has more specifications.


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