Question: I am still getting error message and we could not make the MMCQ Validation tests passed with the optimal values for lambda and mu for
I am still getting error message and we could not make the MMCQ Validation tests passed with the optimal values for lambda and mu for the trade studies results. Part : Define parameters
c ; Number of servers
lambda ; Average Arrival Rate per minute
mu ; Service rate
Nwait ; Number of waiting cfunction Ws Wq cutil, pdrop, pstate MMCQlambda mu c Nwait
INPUTS:
lambda arrival rate
mu service rate
Nwait Number of queue elements, not including servers
c Number of servers
OUTPUTS:
Ws Average wait in the system
Wq Average wait in the queue
cutil Average percentage of servers busy
pdrop probability the queue is full
pstate probability of each state
INSERT YOUR CODE HERE
Calculate traffic intensity
rho lambda c mu;
Compute the Erlang B formula to calculate the probability of blocking
pblock erlangbc rho;
Calculate the utilization factor
cutil rho c;
Calculate the probability of blocking
pblock erlangbc rho;
Display the result
Calculate pprobability of no customers in the system
pdenom sumcrho:c factorial:c;
pdenom pdenom crhoc factorialcrhorhoNwait rho;
p pdenom;
fprintfp: f
p;
Calculate pN probability of having N customers in the system
pstate zeros Nwait;
for i :Nwait
if i c
pstateirhoi factoriali p;
else
pstateirhoi factorialccic p;
end
end
pN pstateNwait;
Calculate pdrop probability of a customer being dropped
pdrop pN;
Calculate cutil utilization of the servers
cutil rhoc pfactorialc rho rhoNwait c ;
Calculate Wq average waiting time in the queue
Wq rhoc pfactorialc rhoNwait; Average waiting time in the queue
Print the result
fprintfAverage waiting time in the queue Wq: f Wq;
Calculate Ws average time spent in the system
Ws Wq mu;
Print the results
fprintfp: f p; fprintfpN: f p;
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
