public class ScenarioGenUniformB extends Object
The arrival process is assumed to be Poisson and only 1 period. To simulate a daily busyness level, the program generates a random arrival multiplier for all call types. That is, all call types have the same multiplier.
The mean of the arrival multiplier is 1. The user must select the range of uniform distribution. 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 value lower than 0 will be replaced by 0.001.
Quasi-Monte Carlo is used to generate the uniform for each scenario.
This program is different from ScenarioGenUniform
.
In this latter program, an arrival multiplier is generated independently
for each call type.
Constructor and Description |
---|
ScenarioGenUniformB() |
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 daily busyness
arrival multiplier with a uniform distribution. |
static void |
main(String[] args)
Executes the program to generate the scenarios with a random daily busyness arrival multiplier,
same for all call types.
|
public static void generateCCParams(CallCenterParams ccp, int numScen, double range, String baseName)
numScen
number of scenarios by generating the daily busyness
arrival multiplier with a uniform distribution.
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