public class RoutObjFuncSLAbandonArrival extends AbstractRoutingObjFunc
This version uses the arrival rates as the weights for the call types. The global weight is 0 however. The user can still choose the weights for the SL and abandonments.
The objective function is the sum of the routing objective functions :
RoutObjFuncSLFeasible
and RoutObjFuncAbandon
.
The returned score F is the weighted sum of the scores of both objective functions :
The best score is 0 if the solution satisfies all the service level targets and there is zero abandonment. There can be a global service level target and global abandonment penalties (depending on the input coefficients given by the user).
cc, eval, numGroups, numTypes
Constructor and Description |
---|
RoutObjFuncSLAbandonArrival(CallCenterSim eval)
Create the objective function with the default constructor of @linkRoutObjFuncSLFeasible
and @linkRoutObjFuncAbandon.
|
RoutObjFuncSLAbandonArrival(CallCenterSim eval,
boolean printName)
Create the objective function with the default constructor of @linkRoutObjFuncSLFeasible
and @linkRoutObjFuncAbandon.
|
RoutObjFuncSLAbandonArrival(CallCenterSim eval,
double slWeight,
double abanWeight)
Creates the objective function with given weights for each service level
penalties and each abandonment penalties, see the description of the score formula in the Class description.
|
RoutObjFuncSLAbandonArrival(CallCenterSim eval,
double slWeight,
double abanWeight,
boolean printName) |
Modifier and Type | Method and Description |
---|---|
double |
getScore()
Get the score based on the last simulation.
|
void |
printFunctionName()
Print the name of the function.
|
getCallCenter, getEval, setEval
public RoutObjFuncSLAbandonArrival(CallCenterSim eval)
eval
- the call center simulator.public RoutObjFuncSLAbandonArrival(CallCenterSim eval, boolean printName)
eval
- the call center simulator.printName
- select to print the objective function name.public RoutObjFuncSLAbandonArrival(CallCenterSim eval, double slWeight, double abanWeight)
eval
- the call center simulator.slWeight
- the weight for service level.abanWeight
- the weight for the abandonment.public RoutObjFuncSLAbandonArrival(CallCenterSim eval, double slWeight, double abanWeight, boolean printName)
public void printFunctionName()
AbstractRoutingObjFunc
printFunctionName
in interface RoutingObjectiveFunc
printFunctionName
in class AbstractRoutingObjFunc
public double getScore()
AbstractRoutingObjFunc
getScore
in interface RoutingObjectiveFunc
getScore
in class AbstractRoutingObjFunc