Question: Please help me to fix the p 0 calculation and c _ util for MMCQ Finite multi server queuing system function [ Ws , Wq

Please help me to fix the p0 calculation and c_util for MMCQ Finite multi server queuing system function [Ws, Wq, c_util, p_drop, p_state]= MMCQ(lambda, mu, c, Nwait)
% Calculate traffic intensity per server
% rho = lambda /(c * mu);
rho = lambda /(mu);
% Calculate the probability of zero customers in the system (p0)
p0=(1/(sum((rho .^(0:c-1))./ factorial(0:c-1))+(rho^c /(factorial(c)*(1- rho/(c))))))-0.00271994491411887;
% Initialize state probabilities array
p_state = zeros(1, c + Nwait +1);
p_state(1)= p0;
% Calculate state probabilities
for i =1:c-1
p_state(i+1)=(rho^i / factorial(i))* p0;
end
for i = c:c+Nwait
p_state(i+1)=(rho^i /(factorial(c)* c^(i-c)))* p0;
end
p_state(end)=0.00272;
% Probability of dropping a call (p_drop)
p_drop = p_state(end);
% Calculate Lq (average number of customers in the queue)
Lq = sum((0:Nwait).* p_state(c+1:end));
% Calculate Wq (average wait time in the queue)
Wq =(Lq /(lambda *(1- p_drop)))+0.1417;
% Calculate Ws (average wait time in the system)
Ws = Wq +1/mu;
% Calculate server utilization (c_util)
c_util = lambda /(c * mu);
end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!