public class TwoStepCC extends TwoStep
ScenariosParams.chanceConstraintProb
.
The recourse variables can be enabled by setting the parameter ScenariosParams.useRecourse
to true
(default value).
Modifier and Type | Class and Description |
---|---|
static class |
TwoStepCC.WithLog
This subprogram allows the execution of the program
TwoStepCC and log of the output to a file. |
bestSolution, cc, currPeriod, cutpList, numGroups, numScenarios, numTypes, scenParams, simpList, tsParams
Constructor and Description |
---|
TwoStepCC(TwoStepParams tsParams,
ScenariosParams scenParams,
List<SimParams> simpList,
List<CuttingPlaneParams> cutpList)
Constructs the Two-step staffing with recourse optimizer.
|
Modifier and Type | Method and Description |
---|---|
List<Integer> |
getCoveredScenarios()
Returns the list of scenarios that are required to be satisfied by the
chance constraint solution.
|
static void |
main(String[] args)
Optimizes the stochastic staffing problem with recourse by a Two-step method.
|
void |
optimize()
Executes the Two-step stochastic staffing optimization.
|
createListSimulator, getBestSolution, getStaffingPeriod, getTwoStepParams, localSearch, optimizeScenarios, optOneScenario, verbosePrint, verbosePrintln
public TwoStepCC(TwoStepParams tsParams, ScenariosParams scenParams, List<SimParams> simpList, List<CuttingPlaneParams> cutpList)
tsParams
- the Two-step algorithm parametersscenParams
- the scenario parameterssimpList
- the simulation parameters for each scenariocutpList
- the cutting-plane parameters for each scenariopublic void optimize() throws ilog.concert.IloException
TwoStep
TwoStepParams.useLocalSearch
is
set to true
.public List<Integer> getCoveredScenarios()
public static void main(String[] args) throws Exception
ScenariosParams.chanceConstraintProb
, of the possible scenarios.
The arguments are:
args
- see the descriptionException