public class RoutObjFuncSLFeasible extends AbstractRoutingObjFunc
The objective function is the sum of feasibility score F with weights sk :
The best score is 0 if the solution satisfies all the service level targets. There is a global service level target.
cc, eval, numGroups, numTypes
Constructor and Description |
---|
RoutObjFuncSLFeasible(CallCenterSim eval)
Create the objective function with weight parameters sk = 1, for all
service level constraints.
|
RoutObjFuncSLFeasible(CallCenterSim eval,
boolean printName) |
RoutObjFuncSLFeasible(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.
|
RoutObjFuncSLFeasible(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 RoutObjFuncSLFeasible(CallCenterSim eval)
eval
- the call center simulator.public RoutObjFuncSLFeasible(CallCenterSim eval, boolean printName)
public RoutObjFuncSLFeasible(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 RoutObjFuncSLFeasible(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