question

Alessio Merlo avatar image
0 Likes"
Alessio Merlo asked Alessio Merlo commented

Is zone partition constraint defined by label supported?

Hi,

I created a model and I bumped into an issue or probably a not supported feature.

I would like to create a zone partition based on a token label value and to limit the number of token in the partition depending on other token label.

This is an example (the limit is always fixed for the partition):

I obtained the result with exception rule of the partition constraints to show you which is my desire, but I was not able to configure all cases before running the model in my application.

I saw that an option in partition constraint exists and supports the token label, but it doesn't work.

Isn't this feature supported or it is a bug?

Could you suggest some workaround to obtain the same results?

I attached the model where the issue occurs and where I show how the model would work in my application with exception table defined in the zone.

zone-partition-constraint.fsm

FlexSim 20.0.2
zonezone partition
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

Jordan Johnson avatar image
2 Likes"
Jordan Johnson answered Alessio Merlo commented

The partition constraints are determined at reset time. There is an issue on the dev list to change it so the first token in the partition sets the limit.

It is currently a bug that the token label pickoptions appear. I will put that on the dev list as well.

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

Alessio Merlo avatar image Alessio Merlo commented ·

Thanks @jordan.johnson! Do you suggest a workaround, please?

I read your answer in this post https://answers.flexsim.com/questions/51145/possible-to-set-a-zone-partition-constraint-to-use.html, but also with FlexScript I am not able to define a "dynamic" limit.

For the future release I would suggest to add the token as input parameter, so that the user can recover all available information. This is my idea, I am not sure that it is possible!

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Alessio Merlo commented ·

Can you not just use a partitioned List as a workaround? (Push and pull from a list instead of using a zone.)

0 Likes 0 ·
Alessio Merlo avatar image Alessio Merlo Phil BoBo ♦♦ commented ·

I didn't have anything to push in the list, but I could invent something. Thank you for the suggestion!

0 Likes 0 ·