question

Leo L6 avatar image
0 Likes"
Leo L6 asked Jeanette F commented

Zone Max Content Depending On Token Label

Hi,

Is there a way to limit zone quantity based on token label? I'm trying to create a scenario where the default max content in a zone is 1, but for items that are a specific type (lets say type = 2) then you can have two of them in the zone. I tried doing setting the max content like this in the zone (see attached image) but it doesn't seem to work.

1670533150894.png


Help would be appreciated.

Thanks

FlexSim 22.2.2
zonezone partitionzone control
1670533150894.png (9.4 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Leo L6, was Jeanette F's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jeanette F avatar image
0 Likes"
Jeanette F answered Felix Möhlmann edited

Hello @Leo L6,

If you go into more properties for the Zone you can add subsets for each type and then add a constraint to each subset.

1670533502300.png

1670533519625.png

You can also partition by Type and then put in the partition constraints for each

1670533795846.png



1670533502300.png (20.2 KiB)
1670533519625.png (13.7 KiB)
1670533795846.png (12.5 KiB)
· 3
5 |100000

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

Leo L6 avatar image Leo L6 commented ·

Thanks for the help! I just tried this and one issue I'm facing is that if I set the partition so that Type 2 is can have two in the zone, the combination of Type 1 + Type 2 also allows for two in the zone. Do you know how to fix this?

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Leo L6 commented ·
0 Likes 0 ·
1670541375644.png (15.2 KiB)
zone-parameters.fsm (193.9 KiB)
Felix Möhlmann avatar image Felix Möhlmann Jeanette F ♦♦ commented ·

@Jeanette F's comment seems incomplete (Forum problems?). What she likely meant, is that you can use the subset calculation to limit the quantity. The zone would allow a certain sum total of a label value to enter, where, depending on the type, the tokens take up different amounts of this "capacity".

This means you will need an extra label on the tokens that determines their "size"/"weight" (how much capacity they take up).

1670571789531.png

1670571799258.png

1670571816581.png

zone_capacity.fsm

Depending on whether "Enforce Queue Order" is active or not, the tokens would either enter in FIFO order or Type 2 tokens could "overtake" others while they wait that enough capacity becomes available.

1670571926102.png

1 Like 1 ·
1670571789531.png (11.9 KiB)
1670571799258.png (4.8 KiB)
1670571816581.png (4.7 KiB)
1670571926102.png (7.7 KiB)
zone-capacity.fsm (158.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.