public class RoutObjFuncSLAbandonMatch extends AbstractRoutingObjFunc
The objective function is the sum of the routing objective functions :
RoutObjFuncSLFeasible
, RoutObjFuncAbandon
and RoutObjFuncMatchRate
.
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 and match rate targets, and there is zero abandonment.
cc, eval, numGroups, numTypes
Constructor and Description |
---|
RoutObjFuncSLAbandonMatch(CallCenterSim eval)
Create the objective function with the default constructor of
RoutObjFuncSLFeasible ,
RoutObjFuncAbandon and RoutObjFuncMatchRate . |
RoutObjFuncSLAbandonMatch(CallCenterSim eval,
boolean printName)
Create the objective function with the default constructor of
RoutObjFuncSLFeasible ,
RoutObjFuncAbandon and RoutObjFuncMatchRate . |
RoutObjFuncSLAbandonMatch(CallCenterSim eval,
double slWeight,
double abanWeight,
double matchWeight,
double[] sl,
double[] aban,
double[][] match)
Create the objective function with given weight values,
see the description of the score formula in the Class description.
|
RoutObjFuncSLAbandonMatch(CallCenterSim eval,
double slWeight,
double abanWeight,
double matchWeight,
double[] sl,
double[] aban,
double[][] match,
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 RoutObjFuncSLAbandonMatch(CallCenterSim eval)
RoutObjFuncSLFeasible
,
RoutObjFuncAbandon
and RoutObjFuncMatchRate
.
Use default SL, abandon and match rate weights of 1.eval
- the call center simulator.public RoutObjFuncSLAbandonMatch(CallCenterSim eval, boolean printName)
RoutObjFuncSLFeasible
,
RoutObjFuncAbandon
and RoutObjFuncMatchRate
.
Use default SL, abandon and match rate weights of 1.eval
- the call center simulator.printName
- select to print the objective function name.public RoutObjFuncSLAbandonMatch(CallCenterSim eval, double slWeight, double abanWeight, double matchWeight, double[] sl, double[] aban, double[][] match)
slWeight
- the weight for service level.abanWeight
- the weight for the abandonment.matchWeight
- the weight for the match rates.eval
- the call center simulator.sl
- the score weight for each call type and global for SL penalties.aban
- the score weight for each call type and global, for abandonment penalties.match
- the score weight for each call type and group, row is the call type and column is the group.public RoutObjFuncSLAbandonMatch(CallCenterSim eval, double slWeight, double abanWeight, double matchWeight, double[] sl, double[] aban, double[][] match, 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