I want to do the following model using simevents

1 view (last 30 days)
Dear all,
I want to do the following model using simevents:
following assumptions:
1. Batches of customers of variable size arrive to the system in a compound Poisson process. We let λcidt (i=1, 2, 3,…) to be the first order probability that a batch of i customers arrives at the system during a short interval of time (t, t+ dt],
2. The service is provided to customers one by one on a "first come, firstserved" basis by a single server. The service time follows a general(arbitrary) distribution with distribution function G(s) and density functiong(s). Let µ(x)dx be the conditional probability density of servicecompletion during the interval (x, x+ dx], given that the elapsed time is x.
3. When a service completes, then with probability p the server may take a vacation of random length, or with probability I-p he may stay in the system providing service, where 0≤ p ≤ 1.
4. Vacation time follows a general (arbitrary) distribution with distribution function B(v) and density function b(v). We let γ(x)dx be the conditional probability of a completion of a vacation during the interval (x, x+ dx] given that the elapsed vacation time is x, so that
5. The queueing system is subjectto breakdowns which are assumedto occur according to a Poisson stream with mean breakdown rate α >0. We also assume that once the system breaks down, the customer whose service is interrupted comes back to the head of the queue waiting for the service to resume.
6. Once the system breaks down, it enters a repair process immediately. The repair time follows a general (arbitrary) distribution with distribution function Ф(r) and density function φ(r). Let β(x)dx be the conditional probability of a repair completion during the interval (x, x+ dx] given that the elapsed repair time is x.
7. Different stochasticp processes involved in the system are independentofeach other.
  2 Comments
Walter Roberson
Walter Roberson on 19 Nov 2012
Okay, go ahead. Let us know when you have a specific question.
s.saeed husain
s.saeed husain on 24 Nov 2012
I don't know how to model step 3,4,5 and 6
please help me to do the model
thanks

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 24 Nov 2012
if rand < p
take_vacation();
else
status = process_customer(current_customer);
if ~strcmp(status, 'broke down')
remove_customer(current_customer);
end
end
  1 Comment
s.saeed husain
s.saeed husain on 1 Dec 2012
I appreciated your help Mr. Roberson,and I agreed with your answer,but I want to model it with Simulink Simevents.
I want to modify the above example(link) and add the vacation to the model togther with failure and repaire.
waiting for your early reply.
thanks a lots.

Sign in to comment.

More Answers (1)

s.saeed husain
s.saeed husain on 11 Dec 2012
Edited: Walter Roberson on 11 Dec 2012
Dear Roberson,
How to implement the below Matlab code to such logic using the MATLAB Function block,using a subsystem containing logic blocks, or using Stateflow charts to transition among a finite number of server states.
if rand < p
take_vacation();
else
status = process_customer(current_customer);
if ~strcmp(status, 'broke down')
remove_customer(current_customer);
end
end
waiting for your urgently reply.
thanks a lots.

Categories

Find more on Discrete-Event Simulation in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!