public class RoutObjFuncMaxInfeasibleSL2 extends AbstractRoutingObjFunc
This objective function penalizes the maximum service level violation (either call type or global). The score formula is :
Version 2 : There is no pre-determined limit for best score. Solutions that are feasible will have a negative score. Theorically, the best score possible is 100(mink=1,..., K+1{sk(targetk -1)}).
cc, eval, numGroups, numTypes
Constructor and Description |
---|
RoutObjFuncMaxInfeasibleSL2(CallCenterSim eval)
Create the objective function with weight parameters sk = 1, for all service level
constraints.
|
RoutObjFuncMaxInfeasibleSL2(CallCenterSim eval,
boolean printName) |
RoutObjFuncMaxInfeasibleSL2(CallCenterSim eval,
double[] s)
Create the objective function with given weight value for each call type, see the
description of the score formula in the Class description.
|
RoutObjFuncMaxInfeasibleSL2(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 RoutObjFuncMaxInfeasibleSL2(CallCenterSim eval)
eval
- the call center simulator.public RoutObjFuncMaxInfeasibleSL2(CallCenterSim eval, boolean printName)
public RoutObjFuncMaxInfeasibleSL2(CallCenterSim eval, double[] s)
eval
- the call center simulator.s
- the score weight for each call type, see formula. This constructor
creates a deep copy of this vector. If null, then all the score weight sk = 1.public RoutObjFuncMaxInfeasibleSL2(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