question

Maryam H2 avatar image
0 Likes"
Maryam H2 asked Maryam H2 commented

Storage Object Capacity

Regarding this post, how can I reference a specific object within the storage system, such as Rack1? https://answers.flexsim.com/questions/145983/capacity-of-the-storage-system.html

var storageObjects=Storage.system.storageObjects;


FlexSim 23.2.0
rackstorage systemcapacity
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Maryam H2 commented

You can either find it in the model:

Model.find("Rack1");

or in the list of storageobject if you know the index:

Storage.system.storageObjects[2];

Where are you trying to use it?

The example already splits the capacity out by storage object and item:

1695831788397.png


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

Maryam H2 avatar image Maryam H2 commented ·

I have a very small items (similar to TestTube) and I want to figure out how many of them can fit in a specific type of rack or storage unit. The problem is, my code takes forever to count them in each storage unit, and it often crashes. I have more than 250 storage objects and I do not want to consider all of them. Is there a way to make my code just look at one storage unit instead of going through all of them? How do I find an index of a storage object?






0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Maryam H2 commented ·
Use boxes of tubes and multiply by the quantity in a box. You won't be storing millions in the racks individually (I hope)
0 Likes 0 ·
Maryam H2 avatar image Maryam H2 Jason Lightfoot ♦♦ commented ·
Do you mean there is no way to reference to a storage object individually?

I can not do boxing since that also going to check for every storage objects, i want to check just for one storage item type?

0 Likes 0 ·
Show more comments