public class RoutObjFuncSLAbandon extends AbstractRoutingObjFunc
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 |
---|
RoutObjFuncSLAbandon(CallCenterSim eval)
Create the objective function with the default constructor of @linkRoutObjFuncSLFeasible
and @linkRoutObjFuncAbandon.
|
RoutObjFuncSLAbandon(CallCenterSim eval,
boolean printName)
Create the objective function with the default constructor of @linkRoutObjFuncSLFeasible
and @linkRoutObjFuncAbandon.
|
RoutObjFuncSLAbandon(CallCenterSim eval,
double slWeight,
double abanWeight,
double[] sl,
double[] aban)
Creates a objective function with given weight value for each service level
constraint, see the description of the score formula in the Class description.
|
RoutObjFuncSLAbandon(CallCenterSim eval,
double slWeight,
double abanWeight,
double[] sl,
double[] aban,
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 RoutObjFuncSLAbandon(CallCenterSim eval)
eval
- the call center simulator.public RoutObjFuncSLAbandon(CallCenterSim eval, boolean printName)
eval
- the call center simulatorprintName
- select to print the objective function namepublic RoutObjFuncSLAbandon(CallCenterSim eval, double slWeight, double abanWeight, double[] sl, double[] aban)
sl
or aban
is the weight associated
with the global constraint, aggregated over all call types.eval
- the call center simulatorslWeight
- the weight for on the service levelabanWeight
- the weight for the abandonmentssl
- the service level for each call type, followed by the aggregated service level
over all call typesaban
- the abandonment ratio for each call type, followed by the
aggregated ratio over all call typespublic RoutObjFuncSLAbandon(CallCenterSim eval, double slWeight, double abanWeight, double[] sl, double[] aban, 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