question

Jorge Manuel Garcia avatar image
0 Likes"
Jorge Manuel Garcia asked Regan Blackett edited

Trigger OnReset and Distribution

Hi,

I have the following problem:

I have an object named "InQueue". This object has a Label named "NumOrders" and a trigger OnReset which sets the label "NumOrders" to a statistical value.

int value = negbinomial( 11.000000, 3.382816);

Every time I reset the model, the line is called (I tested it with the debugger), but the number it gets from the function is always the same (a different number depending on the stream chosen). Is this a bug or something I'm missing?

I'd like this number to change every time the model is reset, since this variable sets the number of orders to be analyzed (and has to be a random value).

Thanks!

FlexSim 16.1.2
labelsdistributionsreset trigger
5 |100000

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

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Jorge Manuel Garcia commented

The model is supposed to run the same way every time. The experimenter is what you use to try out different scenarios and different random numbers.

Take a look at this previous answer.

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

Jorge Manuel Garcia avatar image Jorge Manuel Garcia commented ·

That was very helpful. Thanks a lot! :)

0 Likes 0 ·
Regan Blackett avatar image
1 Like"
Regan Blackett answered Regan Blackett edited

Did you check to make sure you have "Repeat Random Streams" unchecked from the Statistics menu?

If this option is selected it makes the random streams the same for each Reset of the model.


repeat-streams.png (6.3 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.