public class ScenarioGenUniform extends Object
The mean of the arrival multiplier is 1. The user must select the range of uniform distribution that covers 1. That is, for a range of r, the uniform distribution will be defined over the interval of [1 - r/2, 1 + r/2]. Any multiplier values lower than 0 will be replaced by 0.001.
Quasi-Monte Carlo is used to generate the array of uniforms for each scenario.
Constructor and Description |
---|
ScenarioGenUniform() |
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 uniform 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 uniform 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 of the uniform distribution around the mean 1baseName
- 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