public class FluidStaffing extends Object
Constructor and Description |
---|
FluidStaffing(CallCenter cc)
Constructs and initializes a cutting plane optimizer
with no initial linear programming problem.
|
Modifier and Type | Method and Description |
---|---|
Solver |
generateSolver()
Returns a new instance of the default Solver used by the optimizer.
|
double[][] |
getOptimalFlowAllocation()
Return the optimal (call,group) flow allocations.
|
double |
getOptimalObjective()
Returns the objective value of the optimal staffing vector (integer number
of agents).
|
int[] |
getOptimalStaffing()
Returns the staffing solution found by the optimizer.
|
double |
getStaffingCost(int[] staffing)
Return the cost of the staffing.
|
void |
init(CallCenter cc)
Reads the call center parameters.
|
static void |
main(String[] args)
Runs the optimization with the entered parameters files.
|
void |
optimize()
Execute the optimization.
|
protected int[] |
optimizeCP()
Execute the cutting-plane optimization.
|
protected void |
printNumAgents(int[] staffing) |
protected void |
printNumAgents(int[] staffing,
boolean print) |
void |
setDefaultSolver(Class c)
Sets the default Solver to be used by the optimizer.
|
protected double[] |
solverSolve()
Internal use.
|
public FluidStaffing(CallCenter cc)
init
implicitly.cc
- the call center parameters.public static void main(String[] args) throws Exception
Exception
public Solver generateSolver()
setDefaultSolver(java.lang.Class)
.public void setDefaultSolver(Class c)
c
- the class of the new solver to be used by default.public void init(CallCenter cc)
cc
- the call center parameter.protected double[] solverSolve() throws SolverException
Solver.solve()
function of the Solver and also updates the solutions.SolverException
- if an error occurred while solving the MIP.public void optimize()
protected int[] optimizeCP()
public int[] getOptimalStaffing()
public double getOptimalObjective()
public double[][] getOptimalFlowAllocation()
public double getStaffingCost(int[] staffing)
staffing
- find the total cost of this staffing vector.protected void printNumAgents(int[] staffing)
protected void printNumAgents(int[] staffing, boolean print)