question

jacks avatar image
0 Likes"
jacks asked Joerg Vogel edited

How to let combiner combine different items in random proportion ?

coloading111.fsm

Dear all

I meet a problem for my model, i want the combiner (airline) to combine cargos in random proportion, because now the combiner can only combine 3 categories of items in a specific proportion, which causes the stuck for my model when there is a lack for any category of items.

For the fluency of my model, i need to make a code for my combiner, but i do not know how to code for that.

FlexSim 21.2.4
combiner
coloading111.fsm (18.1 MiB)
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel edited

You can do it indirectly. There is default mechanism to update a components list by a global table in an OnEntry event trigger. You can update the components list by this mechanism and you can dynamically set randomly values in this global table.

Simple example Version 23.1:

variable_components_sum.fsm


· 5
5 |100000

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

jacks avatar image jacks commented ·
but how to build a global table
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel jacks commented ·

@jacks, a global table is an item of the toolbox. You can add a table by clicking on the green plus sign icon and choose from a list of item global table.

https://docs.flexsim.com/en/21.1/FlexSimUI/UsingToolbox/UsingToolbox.html

0 Likes 0 ·
jacks avatar image jacks Joerg Vogel commented ·

coloading111.1.fsmI tried the global list, but i do not know how to let the combiner run my order. I listed every possibilities of combination in global table.

0 Likes 0 ·
coloading1111.fsm (18.1 MiB)
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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