question

sawanya khomsan avatar image
0 Likes"
sawanya khomsan asked Jason Lightfoot edited

batch size

Input model 1_2222AB.fsm1692254228333.pngI would like transport 3 to place the goods in Area Q according to the randomly determined quantity. Once that's done, transport 4 can pick them up and place them in the main truck.

Setting a specific quantity for each batch, but the batch size varies between cycles. How should I address this?

FlexSim 22.2.0
3dwarehouse
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Where is Transporter4?

How many can the transporter 3 carry at once? Is that what you're referring to as a batch, or is that a release process elsewhere?

Can you point us to where you've tried to implement this?

0 Likes 0 ·
sawanya khomsan avatar image sawanya khomsan Jason Lightfoot ♦♦ commented ·

I apologize, I would like to clarify the scenario. Are you saying that you want Transporter 2 to take the goods and place them in Area Q according to a randomly determined quantity? Afterward, Transporter 3 can collect those goods, based on the quantity randomly set for that cycle, and load them onto the truck. Transporter 3 picks up one item at a time, meaning one item per batch. Is that what you mean by "batch"? In this case, you're setting a specific quantity for each batch, but the batch size changes with each cycle. How should you handle this situation?

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Either dispatch the tasks using process flow logic which is easy for you to visualise and test or edit the breakTo property for the transporter such that when loading from that Queue/station it returns null when reached a random capacity limit (signifying it should not take another item). Use labels to store the next random capacity limit when it loads the first item (test if current.subnodes.length==1).

We encourage students to research and attempt their own solution, so look into the documentation for the use of the breakTo and to familiarise yourself with FlexScript. You can also look at the templates available for the breakTo requirement and the code behind them to see how to accomplish this.

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

sawanya khomsan avatar image sawanya khomsan commented ·

hank you very much for the advice. Could you please provide a link for me to study the documentation regarding the usage of "breakTo"?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ sawanya khomsan commented ·

https://docs.flexsim.com/en/23.2/Reference/TaskSequences/TaskSequenceTypes/TaskSequenceTypes.html#break


This describes the break task which is used in the default 'use transport' created task sequences.

Please search the documentation for terms you are interested in.

0 Likes 0 ·