question

Cindy avatar image
0 Likes"
Cindy asked Jeanette F commented

How to set different distributions for a source in process flow as a parameter

Hi, I was looking at the question posted in 2020 by Ismael R3 https://answers.flexsim.com/questions/95419/how-to-change-the-empirical-distribution-in-experi.html in this link, and i was trying to do something similar, but i dont have empirical distributions, instead i have some different values for an exponential distribution, and im configuring an inter-arrival source in processflow.

I did the things explained there just setting the parameter as different distributions but i need to use them as a parameter to change in a source in processflow.

The thing is that when i tried to run the experimenter with that the program just stopped working, so i dont know if it is different in process flow or if i did something wrong.

According to that answer the parameter should be like this:

1713381799520.png

And in the source i shoul put the parameter as the inter-arrival source like this:

1713381837070.png

What is supposed to be in those boxes?
I tried with the code of the answer but then when i try tu run the experimenter everything just stops working.

I´m i doing something wrong?, or does it not work with processflow?

Thank you for your help!

FlexSim 23.1.0
processflowparametersexponential distribution
1713381799520.png (29.1 KiB)
1713381837070.png (17.2 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 @Cindy, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Option 1:

Put the expression into the option table and pass in the random number stream as a parameter.

capture1.png

capture2.png

The same could be done with an "Expression" type parameter. Instead of having a set of pre-defined options, you would enter the distributions in the Experimenter scenario table.

Option 2:

Use separate parameters for the distribution parameters.

capture3.png

capture4.png


capture1.png (13.0 KiB)
capture2.png (8.5 KiB)
capture3.png (1.1 KiB)
capture4.png (9.0 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.