public class MMc extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MMc.ErlangBResults
Represents the returned object from the erlangB function.
|
static class |
MMc.ErlangCResults
Represents the returned object from the erlangC function.
|
static class |
MMc.LDMMcResults
Represents the resulting object returned by the LDMMc function
for the loss delay.
|
Constructor and Description |
---|
MMc() |
Modifier and Type | Method and Description |
---|---|
static double |
erlangB(double nserv,
double load)
Represents the blocking probability of the Erlang B model.
|
static MMc.ErlangBResults |
erlangB(double nserv,
double load,
boolean doDeriv)
Represents the blocking probability of the Erlang B model.
|
static double |
erlangC(double nserv,
double load,
double svcRate,
double time)
Computes the delay probability
P{Delay > time},
using the Erlang C formula,
assuming an infinite queue size and no abandonment.
|
static MMc.ErlangCResults |
erlangC(double nserv,
double load,
double svcRate,
double time,
boolean doDeriv)
Computes the delay probability
P{Delay > time},
the Erlang C formula
P{Delay > 0} and the expected waiting time,
assuming an infinite queue size and no abandonment.
|
static MMc.ErlangCResults |
erlangCAb(double nserv,
double lamDelay,
double lamLoss,
double svcRate,
double patRate,
double time,
int capacity,
double delta)
Similar function to erlangC but includes the abandon (patience).
|
static MMc.LDMMcResults |
LDAbandonMMc(double numAgent,
double lam1,
double lam2,
double mu1,
double mu2,
double patRate,
double t,
int capacity,
double delta,
double rootTol)
Finds the blocking probability of a station for the Loss Delay system.
|
static MMc.LDMMcResults |
LDMMc(double numAgent,
double lam1,
double lam2,
double mu1,
double mu2,
double t,
double rootTol)
Finds the blocking probability of a station for the Loss Delay system.
|
static void |
main(String[] args) |
public static void main(String[] args)
public static double erlangB(double nserv, double load)
nserv
- the number of agents.load
- the load of the call center in erlang unit.public static MMc.ErlangBResults erlangB(double nserv, double load, boolean doDeriv)
nserv
- the number of agents.load
- the load of the call center in erlang units.doDeriv
- if true computes the derivation.public static double erlangC(double nserv, double load, double svcRate, double time)
nserv
- number of agents in the call center.load
- the aggregate load of the call center in erlang units.svcRate
- the aggregate service rate.time
- the AWT (acceptable waiting time).public static MMc.ErlangCResults erlangC(double nserv, double load, double svcRate, double time, boolean doDeriv)
nserv
- number of agents in the call center.load
- the aggregate load of the call center in erlang units.svcRate
- the aggregate service rate.time
- the AWT (acceptable waiting time).doDeriv
- computes the derivation for pb and pd.public static MMc.ErlangCResults erlangCAb(double nserv, double lamDelay, double lamLoss, double svcRate, double patRate, double time, int capacity, double delta)
unstable
since the queue
as a finite capacity.nserv
- number of agents in the call center.lamDelay
- the delay arrival rate.lamLoss
- the loss arrival rate.svcRate
- the aggregate service rate.patRate
- the patience rate (the rate that calls get impatient
and hang up.time
- the AWT (acceptable waiting time).capacity
- the waiting queue capacitydelta
- parameter to control of the capacity size if capacity
is set <= 0.public static MMc.LDMMcResults LDMMc(double numAgent, double lam1, double lam2, double mu1, double mu2, double t, double rootTol)
numAgent
- the number of agent for the station (skill group)lam1
- arrival rate for the delay streamlam2
- arrival rate for the loss streammu1
- service rate for the delay streammu2
- service rate for the loss streamt
- the acceptable waiting time (AWT)rootTol
- the tolerance level for the root solver function call usedpublic static MMc.LDMMcResults LDAbandonMMc(double numAgent, double lam1, double lam2, double mu1, double mu2, double patRate, double t, int capacity, double delta, double rootTol)
numAgent
- the number of agent for the station (skill group)lam1
- arrival rate for the delay streamlam2
- arrival rate for the loss streammu1
- service rate for the delay streammu2
- service rate for the loss streampatRate
- is the patience rate (the rate that calls get impatient
and hang up)t
- the acceptable waiting time (AWT)capacity
- the capacity of the waiting queuedelta
- control of the capacity size if capacity
is set to negative valuerootTol
- the tolerance level for the root solver function call used