question

PT2 avatar image
0 Likes"
PT2 asked Eric M answered

Inputting several arrival rates at 'Source'

Hi, I am building this model where I want to test several combinations of part arrivals for example interarrival time between parts is 100-500sec, 200-300sec etc. I do not want to do this manually and somehow define all the combinations of arrivals and the model runs all combinations individually and provides me with the results for each combination, i.e. the output from the last processor. I am not sure if using 'Parameters' is the way to get this working. See the simple model.

SeveralArrivalRates.fsm

FlexSim 21.2.0
FlexSim 21.1.4
arrival pattern
5 |100000

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

Eric M avatar image
0 Likes"
Eric M answered

Hi @PT2 another option in addition to David's solution could be to use this command in the desired distribution of the source:

1628785120852.png

Where the parameters table looks like this:

1628784764897.png

It basically works like reading from a table, but now it's in your parameters table so you can run the experimenter with it.

severalarrivalrates_1.fsm


5 |100000

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

David Seo avatar image
0 Likes"
David Seo answered David Seo edited

@PT2

I attach a sample model. Is that what you want to make?

I make two examples.

One is using global variables which are changed / set OnModelReset trigger.
The other is using labels in the source which are also changed and set in OnRest trigger of the source.

severalarrivalrates_FK.fsm


5 |100000

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

David Seo avatar image
0 Likes"
David Seo answered PT2 edited

@PT2

You can use some sources to have each arrival time rate like attached sample.

severalarrivalrates.fsm

Is it that you want? If you have a question about it, make me know it.


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

PT2 avatar image PT2 commented ·
Hi David, this would work, but I am looking for a much neater way. For instance, if I want to test several combinations (say 50), I don't want to create 50 sources or manually input 50 times. I am looking for a way where I define the different interarrival combinations uniformly distributed and then the model runs each of the combination and reports the results of each combination. Hope this makes sense. Thanks for the help.
0 Likes 0 ·
David Seo avatar image David Seo PT2 commented ·

What is your meaning of 'combination' in detail? Like what?

Type 1 item is 100~500, Type 2 is 200~300 and ....like that?

These various Types item should be created in ONE source? If you want it, use the process flow module.

0 Likes 0 ·
PT2 avatar image PT2 David Seo commented ·

I want to test several scenarios for instance

1. interarrival time is 100-200 seconds, simulation resets, and scenario 2 begins

2. interarrival time is 200-300 seconds, simulation resets, and next scenario begins etc.

After running all the scenarios, I should get result for each scenario.

0 Likes 0 ·