You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculates maximum traffic intensity and maximum no. of users accomodated in Erlang C system for given no of Channels.
clc;
clear;
function [p]=ErlangC(A, N)
temp =0;
for k=0:N-1
temp =temp+A^k/factorial(k);
end
C =A^N+ (factorial(N)*(1-(A/N))*temp);
p =A^N/C;
endfunction
pr_delay = input("Enter probability of block call delay ");
y = input("Enter call rate ");
H = input("Enter the avarage call duration ");
c = input("Enter number of channels ");
disp("no. of channel = ", c);
Au =y*H;
p=0;
for A=1:1:100
[p] = ErlangC(A,c);
if(p>pr_delay)
value =A;
break;
endend
disp('For block call delay probability of', pr_delay);
disp('Maximum traffic intensity is ', value);
u =value/Au;
disp("No. of users are accomodated ", u);
Output
Enterprobability of block call delay 0.1Entercall rate 3/60Enterthe avarage call duration 2 (minutes)Enternumber of channels 50
//Outputno. ofchannel=50Forblock call delay probability of 0.1Maximumtraffic intensity is 41No. ofusersareaccomodated410