public class ScenarioGenTriangular extends Object
The mean and mode of the arrival multiplier is 1, thus the density function has a shape of an isosceles triangle. The user must select the range of triangular distribution. That is, for a range of r, the distribution will be defined over the interval of [1 - r/2, 1 + r/2], with mean and mode 1. Any multiplier values lower than 0 will be replaced by 0.001.
Quasi-Monte Carlo is used to generate the scenarios.
Constructor and Description |
---|
ScenarioGenTriangular() |
Modifier and Type | Method and Description |
---|---|
static void |
generateCCParams(CallCenterParams ccp,
int numScen,
double range,
String baseName)
Generates
numScen number of scenarios by generating the arrival
multiplier of the arrival process randomly with triangular distributions. |
static void |
main(String[] args)
Executes the program to generate the scenarios with a random arrival
multiplier for each call type.
|
public static void generateCCParams(CallCenterParams ccp, int numScen, double range, String baseName)
numScen
number of scenarios by generating the arrival
multiplier of the arrival process randomly with triangular distributions.
The user must input the original call center parameter file. This method
will create a new call center XML file for each scenario, and only the
arrival multiplier will be changed or added. The filenames of the new
files follow this convention: [base name].[scenario number].xml
.
The scenario numbering starts at 1.ccp
- the original call center modelnumScen
- the number of scenarios (and files) to generaterange
- the range: distance between the minimum and maximum value of
the triangular distributionbaseName
- the base name of the new files to generate; do not include
".xml"public static void main(String[] args) throws CallCenterCreationException
A new call center XML file will be generated for each scenario, with the
filename of: [base name].[scenario number].xml
. The scenario
numbering starts at 1.
args
- see the descriptionCallCenterCreationException