question

Dominik K avatar image
0 Likes"
Dominik K asked Dominik K commented

Dynamically changing space to store goods

Hey VSauce, Michael here.

Following scenario in real life:
I have a storage-closet that stores 3 different products;

  • A car tire
  • A pen
  • A football

Now, surely, I can only store 3 car tires in it and still 10'000 pens. Now, depending on what is already in the storage-closet, my remaining storage-space dynamically changes.
For example, if 2 car tires are in there, I can store 10'000 pens and a football, but not another car tires - I think you get the idea of what I am thinking of.
Now, I did not find any way to implement an Excel-Sheet for example...
Is there any way to do so?

Thanks in advance!

FlexSim 18.2.3
queueflexsim 18.2.3storagedynamic storagequeue dynamic
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
1 Like"
Joerg Vogel answered

In this situation I would put a rack with a single slot into my model. The method hasSpace takes care about the items storable into this slot.

5 |100000

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

Braydn T avatar image
0 Likes"
Braydn T answered Dominik K commented

@Dominik K I am not sure this is exactly what you are looking for, but If I had a queue I would assign it a label with a value that represented the amount of space it has when empty in whatever units you wanted. So for example, my queue would have a label named space, with the value of 50. When I want to send an item to the queue, I would look at the type of an incoming object. If it was a tire, I would see if the value of the label was greater than 15. If it was, I would subtract if from the label and move the item. When an item leaves the queue, you add that value back onto the label.

I hope this makes sense. Please let us know if this is not what you are looking for.

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

Dominik K avatar image Dominik K commented ·

Thanks for the answer!

I am looking for a storage, that dynamically changes, depending on what objects are in it. Obviously, it can store much more pens than car tires since car tires are much bigger...
Do I need to elaborate? I hope it's clear what I mean...

Thank you very much!

0 Likes 0 ·
Dominik K avatar image Dominik K Dominik K commented ·

Furthermore, how do I deal with the maximum content variable?

How can I make the "Maximum content" variable unnecessary? Right now, it just looks at the size of the maximum content size and not the label I want to set...

0 Likes 0 ·
1589546843587.png (29.9 KiB)

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.