Finding the traffic intensity, A in Erlang B
Show older comments
I am given the 1) blocking probability, B
2) Number of Trunk , N
Erlang B Equation

B = (A^N/factorial(N))/sum(A^I/factorial(I),I,0,N)
How do i code to find the Traffic intensity, RHO in erlang B equation?
%%ACell = the RHO i want to find which is the A
%%N = trunk
%%FN = Factorial trunk
%%%B = blocking probability
syms I A
B = 0.05;
N = 55;
FNoC = factorial(N);
ACell = solve((A^N)/FN == B*symsum(A^I/factorial(I),I,0,N),A);
Accepted Answer
More Answers (2)
David Wilson
on 9 Apr 2019
OK, perhaps there is no guarentee that the symbolic returns the real solution last, so in that case you need to resort to a numerical strategy, perhaps using fsolve:
>> N = 55; B = 0.05;
>> Erlang = @(A) (A^N/factorial(N))/sum(A.^([0:N])./cumprod([0,0:N-1]+1)) % Very ugly
>> A = fsolve(@(A) Erlang(A)-B, 40) % start guess is say A = 40
A =
49.5409
>> Bx = Erlang(A)
Bx =
0.0500
The function could be improved.
1 Comment
Kenny Kwan
on 12 Apr 2019
Nermin Tawfik
on 24 Aug 2022
0 votes
I want the value of A at N=197 & B=0.05
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!