label and Empirical distribution issue

All topics specific to modeling questions in Enterprise Dynamics
Post Reply
exhunt
Posts: 1
Joined: Saturday 05 January, 2013 - 03:17

label and Empirical distribution issue

Post by exhunt »

Hey

I am making a model of a company which has three customer types that arrive in the pattern NegExp(30)

- Customer A which arrives with a probability of 25%
- Customer B which arrives with a probability of 45%
- Customer C which arrives with a probability of 30%

They than shop/stay in a pattern of:

- Customer A (NegExp (420))
- Customer B (LogNormal (360, 60))
- Customer C (NegExp (180))

in a multiserver before being served in the four servers:

- Customer A (LogNormal (120, 55))
- Customer B (LogNormal (120, 10))
- Customer C (NegExp (90))

My Question is; How do I connect the Empirical Distribution atom to the source so that I get to assign the other patterns to the customer types? Do I change the Empirical Distribution values into labels in the "trigger on exit" in the source atom and if so, how do I do that?

I have made a screen dump of my model to give a better understanding of my issue:
http://imageshack.us/photo/my-images/59 ... dumpj.jpg/

Please help!

Best regards
Søren
marlies
Posts: 301
Joined: Monday 17 January, 2011 - 09:28

Re: label and Empirical distribution issue

Post by marlies »

Hi Soren,

It is not necessary to connect the empirical distribution to a channel. The atom will create a 4Dscript function that is equal to the setting Distribution Name in the empirical distribution.

What needs to be changed in your model is the following: the input channel of the source needs to be connected to a product atom not to the empirical distribution.

Please check the attached model for an example. The exit trigger of the source sets a label on each product, based on the empirical distribution. This label can be used in other atoms to determine cycle times, sendto statements etc. See also the field process time of the server.

Regards, Marlies
Attachments
20130107_EmpiricalDistribution.mod
(14.75 KiB) Downloaded 487 times
jino
Posts: 1
Joined: Saturday 26 January, 2013 - 20:39

Re: label and Empirical distribution issue

Post by jino »

Hi, here is a model i'm simulating
there is a hospital.i've got two different types of results of x-ray. they enter the queue of the computer room for being typed. after being typed only one type of the results enters another queue.
source1(result1)--->queue1--->server1(computer room)---->queue
source2(result2)--->queue1--->server1(computer room)---->not entering the queue
i dont know how to label these two types of results
BartC
Posts: 47
Joined: Monday 05 November, 2012 - 17:05

Re: label and Empirical distribution issue

Post by BartC »

Hello Jino,

Simply attach a label to a product on the "trigger on creation" of the source to define the result value. In fact, you don't even need two sources. Use smart coding to define those two result values, e.g:

Code: Select all

label([Result], i) := dUniform(1, 2)
This will randomly give a result value of 1 or 2 to the product upon creation.

Then you can use this result value in the "send to" statement of the server, for which you have to create two output channels.

Regards,

Bart
Post Reply