Skip to content

Commit 1bc1ca9

Browse files
authoredApr 22, 2019
Update README.md
1 parent fdd8908 commit 1bc1ca9

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
 

‎README.md

+44
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,50 @@ double[][] A = {{0,1,0,0,0},
3232
{0,0,0,0,0}};
3333
```
3434

35+
Define the remaining characteristics of the system, i.e. the arrival rate (`lambda`), service rates (`mu`), number of servers (`c`), capacity (`cap`), and how much of the capacity is occupied at time=0 (`occupiedCap`). If customers at queue 1 should be rejected when queue 2 and 3 are full, set `rejectWhenFull = true` and otherwise `false`.
36+
37+
```
38+
double[] lambda = {2}; double[] mu = {1.5,4,2.5}; int[] c = {2,1,2}; int[] cap = {20,20,20};
39+
int[] occupiedCap = {0,0,0}; boolean rejectWhenFull = false;
40+
```
41+
42+
Create the model.
43+
44+
```
45+
create network = new create(A,lambda,mu,c,cap,rejectWhenFull);
46+
```
47+
48+
Prepare the model for evaluation by employing the `network` object.
49+
50+
```
51+
evaluate system = new evaluate(occupiedCap,network);
52+
```
53+
54+
Evaluate the behavior of the system at time=5 with a precision of 1x10^-9.
55+
56+
```
57+
system.uniformization(5,1e-9);
58+
```
59+
60+
Get the marginal state distribution for each of the network queues.
61+
62+
```
63+
double[][] dist = system.getMarginalDistributions();
64+
```
65+
66+
Get the expected number of customers at each queue.
67+
68+
```
69+
double[] expValue = system.expectedValue();
70+
```
71+
72+
Evaluate the steady-state behavior of the system (i.e. at time=Inf) with a precision of 1x10^-6.
73+
74+
```
75+
system.gauss_seidel(1e-6);
76+
```
77+
78+
3579

3680
# License
3781
Copyright 2019 Anders Reenberg Andersen, PhD

0 commit comments

Comments
 (0)