question

Dustin B avatar image
0 Likes"
Dustin B asked Dustin B commented

Change Empirical Distribution via Parameter Option for PF Create Object

Piggy backing off Q&A: https://answers.flexsim.com/questions/95419/how-to-change-the-empirical-distribution-in-experi.html
Per @Logan Gold request


I am trying to do something similar, instead of changing a source I am changing Create Object quantity in process flow.

I managed to get the first part right (I think) which is setting each option to their respective distributions. However I don't know how to set up the Process Flow Create Object task to reference the Option Parameter correctly.

Option Parameter with the 3 options for the 3 Emp Dist's:


Create Object referencing the Optioned Parameter, but not sure how to assign the arguments?


Thanks

FlexSim 22.1.2
process flowcreate objectoptional parameter
· 2
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 @Dustin B,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Dustin B avatar image Dustin B commented ·
0 Likes 0 ·

1 Answer

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Dustin B commented

In your model parameter it's set up to pass the first parameter into the getstream() command to get a unique stream number for the object calling the distribution.

1654555606268.png

So you just need to pass "activity" in as the first parameter when you use that model parameter.

1654555638608.png

220606-emp-object-creation_1.fsm


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

Dustin B avatar image Dustin B commented ·

Thanks!

To clarify do I need to add "activity" to each of the 3 arguments, or just the first?
ie.
1654556050150.pngor
1654556096083.png

0 Likes 0 ·
1654556050150.png (7.0 KiB)
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Dustin B commented ·

Just the first.

You're only currently using the first one, so putting something in the 2nd or 3rd won't do anything.
0 Likes 0 ·
Dustin B avatar image Dustin B Matthew Gillespie ♦♦ commented ·
Thanks
0 Likes 0 ·