|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.contactcenters.app.AbstractContactCenterInfo
umontreal.iro.lecuyer.contactcenters.app.AbstractContactCenterEval
umontreal.iro.lecuyer.contactcenters.app.AbstractContactCenterSim
umontreal.iro.lecuyer.contactcenters.msk.AbstractCallCenterSim
umontreal.iro.lecuyer.contactcenters.msk.CallCenterSimStrat
public class CallCenterSimStrat
Defines a call center simulator using stratified sampling. This simulator stratifies on B, the busyness factor for inbound calls, and uses proportional allocation.
Field Summary |
---|
Fields inherited from class umontreal.iro.lecuyer.contactcenters.msk.AbstractCallCenterSim |
---|
ccm, logger |
Fields inherited from class umontreal.iro.lecuyer.contactcenters.app.AbstractContactCenterSim |
---|
autoResetStartStream, seqSampEachEval |
Constructor Summary | |
---|---|
CallCenterSimStrat(CallCenterParams ccParams,
StratSimParams simParams)
Constructs a new stratified call center simulator using the call center parameters ccParams, the simulation parameters simParams, and simulating numStrata strata. |
Method Summary | |
---|---|
protected void |
correctControlVariables(ControlVariable[] cvs)
|
protected SimLogic |
createSimLogic(CallCenter cc,
SimParams simParams1)
Constructs and returns a SimLogic implementation for the
simulation logic, using the given model and simulation parameters
simParams. |
void |
disableControlVariables()
|
void |
enableControlVariables(ControlVariable... cvs)
|
void |
eval()
Performs a simulation to evaluate the performance measures. |
double |
getBusynessFactor(int strat)
|
CallCenterStatProbes |
getCallCenterStatProbes()
|
DoubleMatrix2D[] |
getConfidenceInterval(PerformanceMeasureType m,
double level)
Returns confidence intervals on the means or ratios of means, for the group of performance measures m, with confidence level level. |
MatrixOfFunctionOfMultipleMeansTallies<?> |
getMatrixOfFunctionOfMultipleMeansTallies(PerformanceMeasureType m)
Returns the matrix of function of multiple means tallies used to manage observations for estimating the performance measures in group m. |
MatrixOfStatProbes<?> |
getMatrixOfStatProbes(PerformanceMeasureType m)
Returns the matrix of statistical probes used to manage observations for estimating the performance measures in group m. |
MatrixOfTallies<?> |
getMatrixOfTallies(PerformanceMeasureType m)
Returns the matrix of tallies used to manage observations for estimating the performance measures in group m. |
DoubleMatrix2D |
getMax(PerformanceMeasureType pm)
Returns a matrix of maximum values for the performance measure m. |
DoubleMatrix2D |
getMin(PerformanceMeasureType pm)
Returns a matrix of minimum values for the group of performance measures m. |
DoubleMatrix2D |
getVariance(PerformanceMeasureType pm)
Returns a matrix of sample variances for the group of performance measures m. |
DoubleMatrix2D |
getVariance(PerformanceMeasureType pm,
boolean prop,
boolean cv)
|
DoubleMatrix2D |
getVarianceProp(PerformanceMeasureType pm)
|
DoubleMatrix2D |
getVarMeanAcrossStrata(PerformanceMeasureType pm,
boolean cv)
|
DoubleMatrix2D |
getVarStandardDeviationAcrossStrata(PerformanceMeasureType pm,
boolean cv)
|
boolean |
isUsingControlVariables()
|
static void |
main(String[] args)
Main method allowing to run this class from the command-line. |
void |
makePilotRuns()
|
void |
reset()
Resets this contact center evaluation system for new parameters. |
void |
reset(CallCenterParams ccParams,
SimParams simParams1)
|
void |
setOptimalAllocation(PerformanceMeasureType m,
int r,
int c,
boolean cv)
Sets the number of replications in each stratum for optimal allocation minimizing the variance of performance measure of type m, at row r and column c. |
void |
setProportionalAllocation()
Initializes the number of replications in each stratum for proportional allocation. |
protected void |
simulateForFixedB(double u,
int numReplications)
|
Methods inherited from class umontreal.iro.lecuyer.contactcenters.app.AbstractContactCenterSim |
---|
formatStatistics, formatStatisticsExcel, formatStatisticsLaTeX, getAutoResetStartStream, getConfidenceInterval, getOneSimDone, getSeqSampEachEval, hasPerformanceMeasure, setAutoResetStartStream, setOneSimDone, setSeqSampEachEval |
Methods inherited from class umontreal.iro.lecuyer.contactcenters.app.AbstractContactCenterEval |
---|
getEvalInfo |
Methods inherited from class umontreal.iro.lecuyer.contactcenters.app.AbstractContactCenterInfo |
---|
getNumAgentGroupsWithSegments, getNumContactTypesWithSegments, getNumInContactTypesWithSegments, getNumMainPeriodsWithSegments, getNumOutContactTypesWithSegments, getNumWaitingQueuesWithSegments |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface umontreal.iro.lecuyer.contactcenters.app.ContactCenterSim |
---|
getAutoResetStartStream, getSeqSampEachEval, setAutoResetStartStream, setSeqSampEachEval |
Methods inherited from interface umontreal.iro.lecuyer.contactcenters.app.ContactCenterEval |
---|
formatStatistics, formatStatisticsExcel, formatStatisticsLaTeX, getEvalInfo, hasPerformanceMeasure |
Methods inherited from interface umontreal.iro.lecuyer.contactcenters.app.ContactCenterInfo |
---|
getNumAgentGroupsWithSegments, getNumContactTypesWithSegments, getNumInContactTypesWithSegments, getNumMainPeriodsWithSegments, getNumOutContactTypesWithSegments, getNumWaitingQueuesWithSegments |
Constructor Detail |
---|
public CallCenterSimStrat(CallCenterParams ccParams, StratSimParams simParams) throws CallCenterCreationException
ccParams
- the call center parameters.simParams
- the simulation parameters.
CallCenterCreationException
Method Detail |
---|
public CallCenterStatProbes getCallCenterStatProbes()
getCallCenterStatProbes
in class AbstractCallCenterSim
public boolean isUsingControlVariables()
isUsingControlVariables
in class AbstractCallCenterSim
public void disableControlVariables()
disableControlVariables
in class AbstractCallCenterSim
public void enableControlVariables(ControlVariable... cvs)
enableControlVariables
in class AbstractCallCenterSim
protected void correctControlVariables(ControlVariable[] cvs)
protected void simulateForFixedB(double u, int numReplications)
public void makePilotRuns()
public double getBusynessFactor(int strat)
public void setProportionalAllocation()
public void setOptimalAllocation(PerformanceMeasureType m, int r, int c, boolean cv)
makePilotRuns()
before
calling this method.
m
- the type of performance measure.r
- the row index.c
- the column index.cv
- determines if control variables will be used.public void eval()
ContactCenterSim
ContactCenterSim.getAutoResetStartStream()
returns false, if ContactCenterSim.eval()
is called
multiple times without changing system
parameters, ContactCenterEval.getPerformanceMeasure(PerformanceMeasureType)
should return the same matrices of estimates
after each call.
This requires that random streams used for simulation
be reset after each evaluation.
Thus,
before returning,
this method should use RandomStream.resetStartSubstream()
on all random streams in order
to reset the seeds.
It is also recommended to always use
RandomStream.resetNextSubstream()
for all random streams
after any replication to improve synchronization
of random streams.
eval
in interface ContactCenterEval
eval
in interface ContactCenterSim
eval
in class AbstractCallCenterSim
public MatrixOfStatProbes<?> getMatrixOfStatProbes(PerformanceMeasureType m)
ContactCenterSim
MatrixOfTallies
object.
For functions of multiple averages, e.g., ratios of averages,
this must return a MatrixOfFunctionOfMultipleMeansTallies
.
getMatrixOfStatProbes
in interface ContactCenterSim
getMatrixOfStatProbes
in class AbstractCallCenterSim
m
- the group of performance measures of interest.
public MatrixOfTallies<?> getMatrixOfTallies(PerformanceMeasureType m)
ContactCenterSim
getMatrixOfTallies
in interface ContactCenterSim
getMatrixOfTallies
in class AbstractCallCenterSim
m
- the group of performance measures of interest.
public MatrixOfFunctionOfMultipleMeansTallies<?> getMatrixOfFunctionOfMultipleMeansTallies(PerformanceMeasureType m)
ContactCenterSim
getMatrixOfFunctionOfMultipleMeansTallies
in interface ContactCenterSim
getMatrixOfFunctionOfMultipleMeansTallies
in class AbstractCallCenterSim
m
- the group of performance measures of interest.
public DoubleMatrix2D getVariance(PerformanceMeasureType pm, boolean prop, boolean cv)
public DoubleMatrix2D getVarianceProp(PerformanceMeasureType pm)
public DoubleMatrix2D getVariance(PerformanceMeasureType pm)
ContactCenterSim
NoSuchElementException
.
getVariance
in interface ContactCenterSim
getVariance
in class AbstractCallCenterSim
pm
- the queried group of performance measures.
public DoubleMatrix2D getVarMeanAcrossStrata(PerformanceMeasureType pm, boolean cv)
public DoubleMatrix2D getVarStandardDeviationAcrossStrata(PerformanceMeasureType pm, boolean cv)
public DoubleMatrix2D getMin(PerformanceMeasureType pm)
ContactCenterSim
NoSuchElementException
.
getMin
in interface ContactCenterSim
getMin
in class AbstractCallCenterSim
pm
- the queried group of performance measures.
public DoubleMatrix2D getMax(PerformanceMeasureType pm)
ContactCenterSim
NoSuchElementException
.
getMax
in interface ContactCenterSim
getMax
in class AbstractCallCenterSim
pm
- the queried group of performance measures.
public DoubleMatrix2D[] getConfidenceInterval(PerformanceMeasureType m, double level)
ContactCenterSim
getConfidenceInterval
in interface ContactCenterSim
getConfidenceInterval
in class AbstractCallCenterSim
m
- the queried group of performance measures.level
- desired probability that, for a given performance measure,
the (random) confidence interval covers the true mean (a constant).
public void reset()
ContactCenterEval
reset
in interface ContactCenterEval
reset
in class AbstractCallCenterSim
public void reset(CallCenterParams ccParams, SimParams simParams1) throws CallCenterCreationException
reset
in class AbstractCallCenterSim
CallCenterCreationException
protected SimLogic createSimLogic(CallCenter cc, SimParams simParams1)
AbstractCallCenterSim
SimLogic
implementation for the
simulation logic, using the given model and simulation parameters
simParams.
By default, this method creates a RepLogic
instance if
simParams is an instance of RepSimParams
, a
BatchMeansLogic
if simParams is an instance of
BatchSimParams
, and throws an exception otherwise.
createSimLogic
in class AbstractCallCenterSim
cc
- the simulation model.simParams1
- the simulation parameters.
public static void main(String[] args) throws IOException, JAXBException, CallCenterCreationException
args
- the command-line arguments.
IOException
JAXBException
CallCenterCreationException
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |