public class RoutObjFuncAbandon extends AbstractRoutingObjFunc
The formula is the sum of the square of the abandonment ratios :
The best score is 0 if there is 0 abandonments.
cc, eval, numGroups, numTypes
Constructor and Description |
---|
RoutObjFuncAbandon(CallCenterSim eval)
Create the objective function with weight parameters sk = 1, for
abandonment ratio (call types and global).
|
RoutObjFuncAbandon(CallCenterSim eval,
boolean printName) |
RoutObjFuncAbandon(CallCenterSim eval,
double[] s)
Create the objective function with given weight value for each call type and global,
see the description of the score formula in the Class description.
|
RoutObjFuncAbandon(CallCenterSim eval,
double[] s,
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 RoutObjFuncAbandon(CallCenterSim eval)
eval
- the call center simulator.public RoutObjFuncAbandon(CallCenterSim eval, boolean printName)
public RoutObjFuncAbandon(CallCenterSim eval, double[] s)
eval
- the call center simulator.s
- the score weight for each call type and global, see formula. This constructor
creates a deep copy of this vector. If null, then all the score weight sk = 1.public RoutObjFuncAbandon(CallCenterSim eval, double[] s, 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