|
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.SearchStoppingCondition
public class SearchStoppingCondition
Early stopping condition allowing to perform a first cut when using neighborhood search. When checked, this condition computes a confidence interval on the aggregate value of a given performance measure and the simulation exits when a threshold value δ falls outside the confidence interval with confidence level β. The simulation also stops when a certain number of batches or replications is reached or when the default stopping condition of the simulator is satisfied. If the stopping condition fails, only one additional batch or replication is performed before the condition is checked again.
Constructor Summary | |
---|---|
SearchStoppingCondition(double beta,
double delta,
PerformanceMeasureType pm,
int maxReps)
Constructs a new search stopping condition with confidence level β, threshold value δ, on performance measure type pm and with a maximal number of replications or batches maxReps. |
Method Summary | |
---|---|
int |
check(ContactCenterSim sim,
int newReps)
Checks the implemented stopping condition and returns the required number of additional batches or replications to simulate. |
double |
getBeta()
Returns the β confidence level. |
double |
getDelta()
Returns the treshold value δ. |
int |
getMaxReplications()
Returns the maximal number of replications or batches to simulate if the stopping condition does not apply. |
PerformanceMeasureType |
getPerformanceMeasureType()
Returns the checked performance measure. |
void |
setBeta(double beta)
Sets the β confidence level to beta. |
void |
setDelta(double delta)
Sets the treshold value δ to delta. |
void |
setMaxReplications(int maxReps)
Sets the maximal number of replications or batches to maxReps. |
void |
setPerformanceMeasureType(PerformanceMeasureType pm)
Sets the checked performance measure to pm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchStoppingCondition(double beta, double delta, PerformanceMeasureType pm, int maxReps)
beta
- the confidence level of the confidence intervals.delta
- the threshold value.pm
- the target performance measure.maxReps
- the maximal number of replications or batches.
IllegalArgumentException
- if β is not in (0, 1) or maxReps is
negative.
NullPointerException
- if pm is null.Method Detail |
---|
public double getBeta()
public void setBeta(double beta)
beta
- the new confidence level.
IllegalArgumentException
- if beta is not in (0, 1).public double getDelta()
public void setDelta(double delta)
delta
- the new threshold value.public int getMaxReplications()
public void setMaxReplications(int maxReps)
maxReps
- the new maximal number of replications or batches.
IllegalArgumentException
- if maxReps is negative.public PerformanceMeasureType getPerformanceMeasureType()
public void setPerformanceMeasureType(PerformanceMeasureType pm)
pm
- the new checked performance measure.
NullPointerException
- if pm is null.public int check(ContactCenterSim sim, int newReps)
SimStoppingCondition
check
in interface SimStoppingCondition
sim
- the contact center simulator.newReps
- the number of required additional batches or replications,
according to the default stopping condition.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |