public class SimpleGreedySearch extends Object
Constructor and Description |
---|
SimpleGreedySearch(CallCenter cc,
ContactCenterEval eval,
double[] costs,
int period)
Constructs the local search with the given call center evaluator.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getCosts()
Returns the cost vector of the agent groups (per agent); no deep-copy.
|
int |
getEvalCount()
Returns the number of calls to the evaluator (or simulator).
|
int |
getEvalTimeSeconds()
Returns the total time spent in the evaluator in seconds.
|
boolean |
getVerbose()
Gets the value of the parameter
verbose . |
int[] |
search(int[] staffing)
Executes the local search with the given staffing vector as the
initial solution.
|
void |
setVerbose(boolean v)
Prints the execution if
true . |
public SimpleGreedySearch(CallCenter cc, ContactCenterEval eval, double[] costs, int period)
cc
- the call center parameterseval
- the call center evaluator to be used, assumed that this evaluator is
set at the right period already.costs
- the cost vector of the groups; no deep-copyperiod
- the current period to optimizepublic double[] getCosts()
public int[] search(int[] staffing)
staffing
- the initial solution; deep copy used: this parameter will not be altered.public int getEvalCount()
public int getEvalTimeSeconds()
public void setVerbose(boolean v)
true
.v
- the new value.public boolean getVerbose()
verbose
.verbose
.