public class SimTestStochSolution extends Object
Constructor and Description |
---|
SimTestStochSolution() |
Modifier and Type | Method and Description |
---|---|
static void |
simTest(StochSolution sol,
ScenariosParams scenParams,
String simFn,
double factor,
int currentPeriod,
int numCPU,
String simOutput)
Calls the method
umontreal.iro.lecuyer.ccoptim.stochcp.ScenariosParams, java.lang.String, double, int, int, java.lang.String, java.util.List)
with the service level list parameter set to null . |
static void |
simTest(StochSolution sol,
ScenariosParams scenParams,
String simFn,
double factor,
int currentPeriod,
int numCPU,
String simOutput,
List<DoubleMatrix2D> slList)
Simulates the given stochastic solution with longer simulation length and determines if
the solution is feasible.
|
public static void simTest(StochSolution sol, ScenariosParams scenParams, String simFn, double factor, int currentPeriod, int numCPU, String simOutput, List<DoubleMatrix2D> slList) throws Exception
sol
- the stochastic solution to testscenParams
- the scenario parameterssimFn
- the simulation parameter filefactor
- the increase factor to multiply the simulation lengthcurrentPeriod
- the current period to simulatenumCPU
- the number of simulators to run in parallelsimOutput
- prints the output of the simulation to this file.
If this parameter is null
, then no simulation result file will be created.slList
- store the service level measures of each covered scenario into this list.
If this parameter is null
, then the service level measures will not be saved.Exception
public static void simTest(StochSolution sol, ScenariosParams scenParams, String simFn, double factor, int currentPeriod, int numCPU, String simOutput) throws Exception
umontreal.iro.lecuyer.ccoptim.stochcp.ScenariosParams, java.lang.String, double, int, int, java.lang.String, java.util.List)
with the service level list parameter set to null
.sol
- the stochastic solution to testscenParams
- the scenario parameterssimFn
- the simulation parameter filefactor
- the increase factor to multiply the simulation lengthcurrentPeriod
- the current period to simulatenumCPU
- the number of simulators to run in parallelsimOutput
- prints the output of the simulation to this file.
If this parameter is null
, then no simulation result file will be created.Exception