question

Maíra A avatar image
0 Likes"
Maíra A asked Maíra A commented

Alternating labels with percentage

How can i set alterning labels using percentage?

example2017.fsm

FlexSim 17.0.13
assign labelssource schedulepercentage
example2017.fsm (19.5 KiB)
5 |100000

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

Regan Blackett avatar image
1 Like"
Regan Blackett answered Maíra A commented

You can do this one of two ways; You can either have a decide activity that send tokens through a ‘round robin’ connector (‘round robin’ means to alternate each connector in a series, so 1, 2, 1, 2, etc.) to an assign labels activity that assigns the value using your two different distribution. Like this:

The second option is to use the output statistic of your source activity as part of a conditional value assignment. Like this:

The condition I used basically says if the output statistic is even numbered, use the first distribution and if it’s odd numbered use the second.


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

Maíra A avatar image Maíra A commented ·

@Regan Blackett Thank you so much!! That was exactly what i needed!

0 Likes 0 ·
Braydn T avatar image
1 Like"
Braydn T answered Matthew Gillespie converted comment to answer

@Maíra A I am not sure what you mean by alterning, but to create labels by percentage you choose to create a label in almost any create labels field (I will use a source in this example) and then choose by percentage for the value.


· 6
5 |100000

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

Maíra A avatar image Maíra A commented ·

@Braydn T I'm sorry, i think that i wasn't very clear.

I want to have the first token with this distribuition

duniform(1, 4, getstream(activity))

The second with

duniform(5, 8, getstream(activity))

The third equal the first, the fourth equal the second...

0 Likes 0 ·
Maíra A avatar image Maíra A Maíra A commented ·

In sequence, you know?

0 Likes 0 ·
Braydn T avatar image Braydn T Maíra A commented ·

What do you want to have that distribution? Is that the arrival time? Are those the potential values for the label?

0 Likes 0 ·
Show more comments
Show more comments