public class StochCPCC extends StochCP
Whereas the algorithm StochCP
is required to satisfy all scenarios,
this algorithm is only required to satisfy a ratio φ of the scenarios.
This parameter φ is chosen by the user with
the parameter ScenariosParams.chanceConstraintProb
.
Modifier and Type | Class and Description |
---|---|
static class |
StochCPCC.WithLog
This subprogram allows the execution of the program
StochCPCC and log of the output to a file. |
StochCP.AddConstraintWorker, StochCP.VariableData
Modifier and Type | Field and Description |
---|---|
protected ScenarioFixer |
scenFixer
Heuristic component that is run before the stochastic optimization in
order to fix some scenarios to either be satisfied or not to satisfy.
|
bestSolution, cc, currPeriod, cutpList, numGroups, numScenarios, numTypes, scenParams, scpParams, simpList
Constructor and Description |
---|
StochCPCC(StochCPParams scpParams,
ScenariosParams scenParams,
List<SimParams> simpList,
List<CuttingPlaneParams> cutpList) |
Modifier and Type | Method and Description |
---|---|
List<Integer> |
getCoveredScenarios()
Returns a list of scenarios that are required to be satisfied by the
chance constraint solution.
|
ScenarioFixer |
getScenarioFixer() |
static void |
main(String[] args)
Optimizes the stochastic staffing problem with recourse to satisfy the service
level (SL) constraints for a fraction of scenarios.
|
void |
optimize()
Executes the stochastic staffing optimization.
|
void |
setScenarioFixer(ScenarioFixer sf) |
addNewConstraints, applyTargetSLTol, applyTargetSLTol, computeGradientInfo, createListSimulator, getBestSolution, getInfeasibleScenarios, getSLTargets, getStaffingPeriod, getStochCPParams, isFeasible, isFeasible, localSearch, optimizeScenarios, optOneScenario, resetSLTargets, verbosePrint, verbosePrintln
protected ScenarioFixer scenFixer
null
, then no scenario will be fixed before the optimization.
This is null
by default.public StochCPCC(StochCPParams scpParams, ScenariosParams scenParams, List<SimParams> simpList, List<CuttingPlaneParams> cutpList)
public void optimize() throws ilog.concert.IloException
public List<Integer> getCoveredScenarios()
public void setScenarioFixer(ScenarioFixer sf)
public ScenarioFixer getScenarioFixer()
public static void main(String[] args) throws Exception
StochCP
.
The arguments are:
args
- see the descriptionException