public class RoutObjFuncSLOccuFair extends AbstractRoutingObjFunc
Let F1 be the score of @linkRoutObjFuncSLFeasible and F2 the score of @linkRoutObjFunctionOccuFairness, the total score is :
The best score possible is 0.
cc, eval, numGroups, numTypes
Constructor and Description |
---|
RoutObjFuncSLOccuFair(CallCenterSim eval)
Create the objective function with default parameters 1.
|
RoutObjFuncSLOccuFair(CallCenterSim eval,
boolean printName)
Create the objective function with default parameters 1.
|
RoutObjFuncSLOccuFair(CallCenterSim eval,
double[] s1,
double[] s2,
double a,
double b)
Create the objective function with parameters s1 for @linkRoutObjFuncSLFeasible
and parameters s2 for @linkRoutObjFuncOccuFairness, paramters a and
b are the coefficients of @linkRoutObjFuncSLFeasible and @linkRoutObjFuncOccuFairness,
see formula.
|
RoutObjFuncSLOccuFair(CallCenterSim eval,
double[] s1,
double[] s2,
double a,
double b,
boolean printName)
Create the objective function with parameters s1 for @linkRoutObjFuncSLFeasible
and parameters s2 for @linkRoutObjFuncOccuFairness, paramters a and
b are the coefficients of @linkRoutObjFuncSLFeasible and @linkRoutObjFuncOccuFairness,
see formula.
|
Modifier and Type | Method and Description |
---|---|
double |
getScore()
Get the score based on the last simulation.
|
void |
printFunctionName()
Print the name of the function and the parameters.
|
getCallCenter, getEval, setEval
public RoutObjFuncSLOccuFair(CallCenterSim eval)
eval
- the call center simulator.public RoutObjFuncSLOccuFair(CallCenterSim eval, boolean printName)
eval
- the call center simulator.printName
- choose to print the objective function name or not at the
creation of the object instance.public RoutObjFuncSLOccuFair(CallCenterSim eval, double[] s1, double[] s2, double a, double b)
eval
- the call center simulator.s1
- the parameters for @linkRoutObjFuncSLFeasible.s2
- the parameters for @linkRoutObjFuncOccuFairness.a
- the coefficient of the SL feasibility score.b
- the coefficient of the occupancy score.public RoutObjFuncSLOccuFair(CallCenterSim eval, double[] s1, double[] s2, double a, double b, boolean printName)
eval
- the call center simulator.s1
- the parameters for @linkRoutObjFuncSLFeasible.s2
- the parameters for @linkRoutObjFuncOccuFairness.a
- the coefficient of the SL feasibility score.b
- the coefficient of the occupancy score.printName
- choose to print the objective function name or not at the
creation of the object instance.public void printFunctionName()
printFunctionName
in interface RoutingObjectiveFunc
printFunctionName
in class AbstractRoutingObjFunc
public double getScore()
AbstractRoutingObjFunc
getScore
in interface RoutingObjectiveFunc
getScore
in class AbstractRoutingObjFunc