question

en avatar image
0 Likes"
en asked Julie Weller commented

How to set the process time of batch

How to set the process time of red type & green type respectively.

and take turns

o => red >green >red >green >red >green

x => red >red >red >green >green >green


I made a sample model, can you help me modify it to suit my needs.

batch-processing.png

batch_processing.fsm


FlexSim 23.1.1
processorbatching
· 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.

Julie Weller avatar image Julie Weller commented ·

Hi @en, was Felix Möhlmann'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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

To execute code in a table cell you have to access the node of cell and call .evaluate() on it. This then allows you to pass the random number stream object in as a parameter.

Since the row number that should be used is equal to the item's type + 2 you can use this expression to get the correct time depending on the type label on the item.

1686731838772.png

To specify an order in which the processor must work on the items, you can use the Pull option. It lets you set conditions that an item must fulfill in order to be eligible to be pulled (Pull Requirement). This can be a matching type.

1686732261068.png

In the simplest implementation, you could have an array label on the processor that determines which type must be pulled, item by item ( [1, 1, 1, ..., 2, 2, 2,...] ). You can then compare the item's type to the first entry of this array in the Pull Requirement. Lastly, you then update the array by moving the first entry to the end when an item enters the processor. This will have the processor cycle through the array indefinitely.

1686732271653.png


1686732261068.png (7.6 KiB)
1686732271653.png (11.0 KiB)
5 |100000

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