Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions