public class RoutObjFuncSLFeasibleMin extends AbstractRoutingObjFunc
If there is at least one call type (or the global) with the service level below its target, then the objective function is the sum of feasibility score F with weights sk :
If all the service level targets are satistied, the score is the minumum difference between the service levels and the targets:
The best possible score is -100 if the service levels are all 100% and the SL targets are 0%. There is a global service level target.
cc, eval, numGroups, numTypes
Constructor and Description |
---|
RoutObjFuncSLFeasibleMin(CallCenterSim eval)
Create the objective function with weight parameters sk = 1, for all
service level constraints.
|
RoutObjFuncSLFeasibleMin(CallCenterSim eval,
boolean printName) |
RoutObjFuncSLFeasibleMin(CallCenterSim eval,
double[] s)
Create the objective function with given weight value for each service level
constraint, see the description of the score formula in the Class description.
|
RoutObjFuncSLFeasibleMin(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 RoutObjFuncSLFeasibleMin(CallCenterSim eval)
eval
- the call center simulator.public RoutObjFuncSLFeasibleMin(CallCenterSim eval, boolean printName)
public RoutObjFuncSLFeasibleMin(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 RoutObjFuncSLFeasibleMin(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