public class Step2CCProblem extends Step2Problem
Note: the user can select to use recourse variables (default option) or
without recourse variables by using the method Step2Problem.setUseRecourse(boolean).
| Modifier and Type | Field and Description |
|---|---|
protected static int |
LARGE_NUMBER
Represents an arbitrary large number.
|
protected ilog.concert.IloNumVar[] |
scenVar
The binary variables that determine if a scenario must be satisfied or not.
|
protected ilog.concert.IloNumVar[][] |
zVar
The z corrector variables, with indices
[group][scenario]. |
cc, cplex, numGroups, numScenarios, numTypes, rMinusCost, rMinusCostMult, rMinusVar, rPlusCost, rPlusCostMult, rPlusVar, scenParams, solveIP, staffCost, useRecourse, yVar| Constructor and Description |
|---|
Step2CCProblem(CallCenter cc,
ScenariosParams scenParams,
List<ArrayList<Integer>> solList,
double[] staffCost,
boolean solveIP)
Constructs the stochastic staffing problem with recourse and chance constraint.
|
| Modifier and Type | Method and Description |
|---|---|
ilog.cplex.IloCplex |
buildProblem(List<ArrayList<Integer>> solList)
Builds and returns the Cplex problem of Step 2, ready to be solved.
|
getCplexModel, getUseRecourse, initIP, initLP, setUseRecourseprotected static int LARGE_NUMBER
protected ilog.concert.IloNumVar[] scenVar
[scenario].protected ilog.concert.IloNumVar[][] zVar
[group][scenario].
These are the cost corrector variables.public Step2CCProblem(CallCenter cc, ScenariosParams scenParams, List<ArrayList<Integer>> solList, double[] staffCost, boolean solveIP)
cc - a sample of the call center model (only used for some data)scenParams - the scenario parameterssolList - the list of solutions obtained during step 1, for each scenario.
Note that these solutions must correspond to the scenario order in scenParams.staffCost - the per-agent staffing cost vectorsolveIP - set to true to create an MIP problem, or false
to create an LP problempublic ilog.cplex.IloCplex buildProblem(List<ArrayList<Integer>> solList) throws ilog.concert.IloException
buildProblem in class Step2ProblemsolList - the list of solutions obtained during step 1, for each scenario.
Note that these solutions must correspond to the scenario order in scenParams.ilog.concert.IloException