LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
MAP2CorrelationBounds.m
1% [lb, ub] = MAP2CorrelationBounds(moms)
2%
3% Returns the upper and lower correlation bounds for a MAP(2)
4% given the three marginal moments.
5%
6% !!!TO CHECK!!!
7%
8% Parameters
9% ----------
10% moms : vector, length(3)
11% First three marginal moments of the inter-arrival times
12%
13% Returns
14% -------
15% lb : double
16% Lower correlation bound
17% ub : double
18% Upper correlation bound
19%
20% References
21% ----------
22% .. [1] L Bodrog, A Heindl, G Horvath, M Telek, "A Markovian
23% Canonical Form of Second-Order Matrix-Exponential
24% Processes," EUROPEAN JOURNAL OF OPERATIONAL RESEARCH
25% 190:(2) pp. 459-477. (2008)
26%
27
28function [lb, ub] = MAP2CorrelationBounds (moms)
29
30 m1 = moms(1);
31 m2 = moms(2);
32 m3 = moms(3);
33
34 h2 = m2/(2.0*m1*m1) - 1;
35 h3 = m3/(6.0*m1*m1*m1)-m2*m2/(4.0*m1*m1*m1*m1);
36 cv2 = m2/m1/m1 - 1.0;
37
38 if h2>=0
39 gub = h2;
40 else
41 gub = -(h2+sqrt(-h3))^2;
42 end
43
44 if h2<=0 || h3/h2+h2<1
45 glb = -h3 - h2*h2;
46 else
47 glb = h2 * (h3+h2*h2-h2-sqrt((h3+h2*h2-h2)^2+4.0*h2*h2*h2)) / (h3+h2*h2-h2+sqrt((h3+h2*h2-h2)^2+4.0*h2*h2*h2));
48 end
49
50 if h2>=0
51 lb = glb/cv2;
52 ub = gub/cv2;
53 else
54 ub = glb/cv2;
55 lb = gub/cv2;
56 end
57end