question

Kevin S7 avatar image
0 Likes"
Kevin S7 asked Joerg Vogel commented

how to store randomly in a rack

In the following example I write the model but it must randomly store the bay and slot level, respecting only one per space


GMU.fsm

1698852752064.png




FlexSim 23.2.1
racks
1698852752064.png (317.7 KiB)
gmu.fsm (36.8 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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·
​Update: I see, it's not random.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Joerg Vogel commented

In the code for the random bay level slot with space replace on lines 26 and 11 the expression slot.hasSpace(item) with slot.slotItems.length==0.

You could have asked this as a continuation of your other post.

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

Joerg Vogel avatar image Joerg Vogel commented ·

by findslot:

gmu_jv.fsm


0 Likes 0 ·
gmu-jv.fsm (38.7 KiB)