question

Damodaran Moturu G avatar image
0 Likes"
Damodaran Moturu G asked Damodaran Moturu G commented

Force release flow items from processor

Hi,

In my model, I have processor with capacity 20 and process time has a distribution. The need here is to force release randomly selected 5 flowitems (that are still in process) from the processor for every 30 mins and send them to different port.

Thanks.

FlexSim 18.0.0
processorflowitemrelease item
5 |100000

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

1 Answer

Axel Kohonen avatar image
1 Like"
Axel Kohonen answered Damodaran Moturu G commented

Hi @Damodaran Moturu G

See the attached model for a possible solution using the releaseitem function. To choose the items to release randomly you would check if there are more than 5 items and then for example use duniform(1, amount of items left in processor) to pick the next item.

Hope this helps!

demorelease.fsm


demorelease.fsm (18.0 KiB)
· 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.

Damodaran Moturu G avatar image Damodaran Moturu G commented ·

Lovely!!! Thanks a lot for the help :)

0 Likes 0 ·