









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Example 4. 100 Designs with Normal Distribution
To see how your algorithm perform in a bigger design space, L ( θ i , ξ)) ~ N( i /10, 1 2 ), i = 0, 1, 2,
Example 5. Buffer Allocation Problem in Communication Networks
Exp(1)
Unif[1,7]
C C
C C
C
C C
C
C1,C
C1,C
C1,C
C1,C
Arrival: C1: C2:^ Unif[2,18]Exp(0.12)
0
1
2
3
4
5
6
7
C
C
8
9
Unif[1,7]
denote the buffer size of node i by θ i. Specifically,
θ 0 + θ 1 + θ 2 + … + θ 9 = 12, and θ i is a non-negative integer.
A Model Reference Adaptive Search Method for Stochastic Global Optimization
Department of Applied Mathematics and Statistics, State University of New York, Stony Brook, NY 11794, [email protected]
Robert H. Smith School of Business & Institute for Systems Research, University of Maryland, College Park, MD 20742, [email protected]
Department of Electrical and Computer Engineering & Institute for Systems Research, University of Maryland, College Park, MD 20742, [email protected] October, 2005; Revised August, 2006
Abstract We propose a randomized search method called Stochastic Model Reference Adaptive Search (SMRAS) for solving stochastic optimization problems in situations where the objective func- tions cannot be evaluated exactly, but can be estimated with some noise (or uncertainty), e.g., via simulation. The method is a generalization of the recently proposed Model Reference Adap- tive Search (MRAS) method for deterministic global optimization, and is based on sampling from an underlying probability distribution “model” on the solution space, which is updated iteratively after evaluating the performance of the samples at each iteration. We show global convergence of SMRAS for both stochastic continuous and discrete (combinatorial) problems, and carry out numerical studies to illustrate the performance of the method. Keywords: stochastic optimization, global optimization, combinatorial optimization.
1 Introduction
Stochastic optimization problems arise in a wide range of areas such as manufacturing, commu- nication networks, system design, and financial engineering. These problems are typically much more difficult to solve than their deterministic counterparts, either because an explicit relation between the objective function and the underlying decision variables is unavailable or because the cost of a precise evaluation of the objective function is too prohibitive. Oftentimes, one has to use simulation or real-time observations to evaluate the objective function. In such situations, all the objective function evaluations will contain some noise, so special techniques are generally used (as opposed to the deterministic optimization methods) to filter out the noisy components. There are some obvious distinctions between the solution techniques for stochastic optimization when the decision variable is continuous and when it is discrete. Although some techniques, in principle, can be applied to both types of problems, they require some suitable modifications in order to switch
4 Numerical Examples
In this section, we test the performance of SMRAS on several continuous and combinatorial sto- chastic optimization problems. In the former case, we first illustrate the global convergence of SMRAS by testing the algorithm on four multi-extremal functions; then we apply the algorithm to an inventory control problem. In the latter case, we consider the problem of optimizing the buffer allocations in a tandem queue with unreliable servers, which has been previously studied in e.g., Vouros and Papadopoulos (1998), and Allon et al. (2005).
We now discuss some implementation issues of SMRAS.
χ(y, γ) =
0 if y ≥ γ + ε, (γ + ε − y)/ε if γ < y < γ + ε, 1 if y ≤ γ. (iv) The inequalities at steps 3a and 3b need to be replaced with κ(ρ, Nk) ≤ ¯γk− 1 −ε and κ(¯ρ, Nk) ≤ γ ¯k− 1 − ε, respectively.
θ̂k+1 := υ θk+1 + (1 − υ) θ̂k, ∀ k = 0, 1 ,... , and ̂θ 0 := θ 0 , where θk+1 is the parameter vector derived at Step 4 of SMRAS, and υ ∈ (0, 1] is the smoothing parameter, then f (x, θ̂k+1) (instead of f (x, θk+1)) is used in Step 1 to generate new samples. Although this modification will not affect the theoretical convergence results, it may improve the empirical performance of the algorithm.
For continuous problems, we use multivariate normal pdfs as the parameterized probabilistic model. Initially, a mean vector μ 0 and a covariance matrix Σ 0 are specified; then at each iteration of the algorithm, it is easy to see that the new parameters μk+1 and Σk+1 are updated according to the following recursive formula:
μk+1 =
1 Nk
x∈Λk Sk( J¯k(x))χ( J¯k(x),^ ¯γk)x 1 Nk
x∈Λk Sk( J¯k(x))χ( J¯k(x),^ ¯γk)^
Figure 2: Test functions in two dimensions, (a) J 1 : Goldstein-Price; (b) J 2 : Rosenbrock; (c) J 3 : Pint´er; (d) J 4 : Griewank.
−3 −^ −1 0 1 2 3 −
0
2
0
1
2
3
4
5 x 10^6
Goldstein−Price function, where −3≤ xi≤ 3, i=1,
−5 − 5 0 10
−10 − (^05) 10
0
5
10
15 x 10^5
Rosenbrock function, where −10≤ xi≤ 10, i=1,
(a) J 1 (b) J 2
−10^ −
0 5
10 −5 − 0
(^105) 0
100
200
300
400
Pinter’s function, where −10≤ xi≤ 10, i=1,
−10^ −
0 5
10 −5 − 0
(^105) 0
2
4
6
8
Griewank function, where −10≤ xi≤ 10, i=1,
(c) J 3 (d) J 4
For all four problems, the same set of parameters are used to test SMRAS: r = 0.01, ε = 0.01, mixing coefficient λ = 0.01, initial sample size N 0 = 500, initial ρ = 0.1, α = 1.04, and the observation allocation rule is Mk = d 1. 05 Mk− 1 e with M 0 = 10, the smoothing parameter υ = 0.5, the initial mean vector μ 0 is an n-by-1 vector with each component uniformly selected from the interval [− 3 , 3] for J 1 and from [− 10 , 10] for J 2 , J 3 , and J 4 , and Σ 0 is initialized as a n-by-n diagonal matrix with all diagonal elements equal to 100, where n is the dimension of the problem. Note that if the random observations obey the large deviations principle, then α and Mk satisfy the relevant conditions in Theorem 3.1. We refer the readers to Hu et al. (2006) for a discussion of general guidelines for selecting r and υ. For numerical comparison purposes, we also applied the simultaneous perturbation stochas- tic approximation (SPSA) algorithm (Spall 1992) and the simulated annealing (SA) algorithm (Corana 1987) to all test cases. In SPSA, the gradient is estimated by averaging q independent simultaneous perturbation approximations at each iteration, and whenever the update results in a solution that violates the constraint, we simply project the solution back into the feasible region. In our experiments, we choose q = 1, i.e., the algorithm requires only two measurements of the
objective function at each iteration. We have also used a standard gain sequence ak = 1/k and a step-size sequence ck = 1/(c + k)^0.^25 , where k = 1, 2 ,... is the iteration counter, c = 5 × 104 for J 1 and J 2 , and c = 5 × 102 for J 3 and J 4. The SA algorithm we have considered is a simple stochastic version of standard SA, where each time the algorithm visits a solution, we allocate L independent simulation observations to that solution, estimate the performance of that solution by averaging over L replications, and then use standard SA to solve the underlying problem. We have used the following set of parameters: L = 50, initial temperature T = 5 × 104 , annealing factor rT = 0.85, and the neighborhood of a solution x to be searched at each iteration is taken to be N (x) = {y : max 1 ≤i≤n |x − y| ≤ 0. 5 }. For both SPSA and SA, the initial solution is uniformly selected from [− 3 , 3]n^ for J 1 , and from [− 10 , 10]n^ for J 2 , J 3 , and J 4. For each function, we performed 100 independent simulation runs of all three algorithms. The numerical results are reported in Table 1, where J¯i, i = 1, 2 , 3 , 4 are the averaged function values Ji evaluated at the final solutions found by the algorithms, and the corresponding optimal values J i∗ are also included for reference. Our performance comparison is based on the same amount of simulation effort, where the total number of allowed function measurements is set to 3 × 105 for J 1 and J 3 , 2 × 106 for J 2 , and 10^6 for J 4. In Figure 3, we also plotted the average function values of the current solutions as a function of the number of function measurements. Numerical results indicate convergence of all three algorithms. Since SPSA uses gradient infor- mation, it may quickly locate a local optimum by using only a small number of function measure- ments. However, depending on the initial solutions used, the algorithm may converge to solutions that are far from optimal. Since SA permits uphill moves, it has the capability to escape from local optimal solutions. Therefore, except for the J 2 case (which is often considered as a unimodal function), SA generally yields better performance than SPSA does in the long run. SMRAS con- sistently outperforms SA in all test cases, and finds better solutions than SPSA does when the number of function measurements is large enough.
Algorithm J¯ 1 (std err) J 1 ∗ J¯ 2 (std err) J 2 ∗ J¯ 3 (std err) J 3 ∗ J¯ 4 (std err) J 4 ∗ SMRAS 3.12(0.01) 3 1.37(0.02) 1 1.60(0.03) 1 1.75(0.03) 1 SPSA q = 1 31.2(11.7) 3 2.02(0.20) 1 116.4(6.1) 1 6.54(0.15) 1 SA 18.8(3.2) 3 4.21(0.22) 1 14.2(1.5) 1 3.89(0.09) 1
Table 1: Performance of SMRAS, SPSA, and SA on benchmark problems J 1 −J 4 , based on 100 independent simulation runs. The standard errors are in parentheses.
4.1.2 An Inventory Control Example
To further illustrate the algorithm, we consider an (s, S) inventory control problem with i.i.d. exponentially distributed continuous demands, zero order lead times, full backlogging of orders, and linear ordering, holding and shortage costs. The inventory level is periodically reviewed, and an order is placed when the inventory position (on hand plus that on order) falls below the level s, and the amount of the order is the difference between S and the current inventory position.
algorithm is a gradient-based algorithm like SPSA. However, we will not exploit this structure in SMRAS. The following four test cases, taken from Fu and Healy (1997), are used to test the performance of SMRAS and SPSA. The cost coefficients and the analytical optimal solutions are given in Table 2, each with c = h = 1 and exponentially distributed demands with mean E[D].
Case E[D] p K J∗^ s∗^ S∗ 1 200 10 100 740.9 341 541 2 200 10 10000 2200.0 0 2000 3 200 100 100 1184.4 784 984 4 200 100 10000 2643.4 443 2443 Table 2: The eight test cases.
In our simulation experiments with SMRAS, the initial mean vector is uniformly selected from [0, 2000]×[0, 4000] for all four cases, and the covariance matrices are initialized as diagonal matrices with all diagonal elements equal to 10^6. The other parameters are: r = 0.01, ε = 0.01, λ = 0.01, N 0 = 100, initial ρ = 0.1, α = 1.04, Mk = d 1. 05 Mk− 1 e with M 0 = 10, smoothing parameter υ = 0.5. For SPSA, we have considered two cases: q = 1 and q = 10, where in both cases, the initial solutions are uniformly selected from [0, 2000] × [0, 4000], and a gain sequence ak = 200/k and a step-size sequence ck = 200/k^0.^25 are used, which give reasonable performance for different starting values. In both SMRAS and SPSA, the average cost per period is estimated by averaging the accumulated cost over 50 periods after a warm-up length of 50 periods. The average performances of both algorithms for all test cases are given in Table 3, where Np indicates the total number of periods (including the warm-up periods) simulated, and the entries represent the averaged function values J of the final sample solutions obtained for different choices of Np, each based on 30 independent simulation replications. Since SPSA (q = 10) uses more precise gradient estimates, it can generally produce better solutions than SPSA (q = 1) within the same number of algorithm iterations. However, the performance gain of q = 10 over q = 1 is compromised by the additional simulation effort required in estimating the gradient, in the sense that for a fixed simulation budget, the solutions found by SPSA (q = 10) are actually worse than those found by SPSA (q = 1). SMRAS does not explicitly exploit the gradient structure, however, the algorithm still does very well as compared to an algorithm designed for convex problems and that utilizes the gradient information. We see that in all four cases, SMRAS provides superior empirical performance over SPSA, and finds solutions that are reasonably close to the optimal. Moreover, the algorithm also shows a significant variance reduction over SPSA.
To illustrate the performance of SMRAS on discrete problems, we consider the buffer allocation problem in a service facility with unreliable servers. The system consists of m servers in series, which are separated by m−1 buffer locations. Each job enters the system from the first server, goes
Algorithm Case Np = 10^3 Np = 10^4 Np = 10^5 Np = 10^6 J∗ 1 − 996.2(26.2) 820.1(9.1) 747.3(1.0) 740. SMRAS 2 − 2342.3(14.7) 2263.3(8.2) 2216.6(2.8) 2200. 3 − 1310.8(15.7) 1291.4(13.6) 1219.5(3.7) 1184. 4 − 2737.3(13.9) 2690.2(5.2) 2663.5(3.3) 2643. 1 1399.7(85.0) 968.6(37.9) 836.8(17.1) 813.6(17.1) 740. SPSA 2 2903.7(101.3) 2447.1(63.8) 2312.9(35.4) 2242.2(14.6) 2200. q = 1 3 2204.8(189.8) 1774.6(161.7) 1559.3(135.1) 1378.3(87.8) 1184. 4 4358.2(418.7) 3123.0(144.6) 2943.7(119.5) 2819.2(85.3) 2643. 1 − 1498.1(94.6) 950.5(33.3) 829.6(16.7) 740. SPSA 2 − 2956.7(97.3) 2402.2(34.8) 2265.9(11.8) 2200. q = 10 3 − 2979.1(500.8) 1640.6(117.8) 1468.1(87.3) 1184. 4 − 4337.6(518.3) 2987.1(101.0) 2845.9(76.8) 2643.
Table 3: Performance of SMRAS and SPSA on four test cases, based on 30 independent simulation runs. The standard errors are in parentheses.
through all intermediate servers and buffer locations in a sequential order, and finally exits from the last server. The service times at each server are independent exponentially distributed with service rate μi, i = 1,... , m. The servers are assumed to be unreliable, and are subject to random failures. When a server fails, it has to be repaired. The time to failure and the time for repair are both i.i.d. exponentially distributed with respective rates fi and ri, i = 1,... , m. A server is blocked when the buffer associated with the server coming next to it is full and is starved when no jobs are offered to it. Thus, the status of a server (busy/broken) will affect the status of all other servers in the system. We assume that the failure rate of each server remains the same, regardless of its current status. Given n limited buffer spaces, our goal is to find an optimal way of allocating these n spaces to the m − 1 buffer locations such that the throughput (average production rate) is maximized. When applying SMRAS, we have used the same technique as in Allon et al. (2005) to generate admissible buffer allocations; the basic idea is to use an (m − 1)-by-(n + 1) matrix P , whose (i, j)th entry specifies the probability of allocating j − 1 buffer spaces to the ith buffer location, and then generate allocations according to P. Please refer to their paper for a detailed discussion on how to generate admissible allocations. We define an allocation scheme x as an (m − 1)-by-1 vector, whose ith element x(i) specifies the number of buffer spaces allocated to the ith location. Thus, when parameterized by P , the probability of generating x is
f (x, P ) =
m∏− 1
i=
n∏+
j=
(Pi,j )I{x∈Xi,j^ }^ =
m∏− 1
i=
e(θ i)T (^) Γi(x) ,
where Xi,j represents the set of allocation schemes in which j − 1 buffer spaces are allocated to the ith buffer location, θi^ = [ln Pi, 0 ,... , ln Pi,n]T^ , and Γi(x) = [I{x ∈ Xi, 0 },... , I{x ∈ Xi,n}]T^. Once
n Navg(std err) Alloc (NA∗^ ) T¯ (std err) T ∗ 1 33.1(4.9) [1,0] (16) 0.634(4.06e-4) 0. 2 46.8(3.2) [1,1] (16) 0.674(6.35e-4) 0. 3 43.9(1.5) [2,1] (16) 0.711(6.11e-4) 0. 4 49.8(3.5) [3,1] (14) 0.735(6.47e-4) 0. 5 50.4(3.7) [3,2] (13) 0.758(1.06e-3) 0. 6 64.0(6.3) [4,2] (12) 0.776(1.39e-3) 0. 7 59.1(4.3) [5,2] (14) 0.792(1.04e-3) 0. 8 63.9(4.8) [5,3] (10) 0.805(1.20e-3) 0. 9 60.6(3.5) [6,3] (10) 0.817(6.53e-4) 0. 10 63.7(5.7) [7,3] (12) 0.826(9.88e-4) 0.
Table 4: Performance of SMRAS on the buffer allocation problems case (i), based on 16 independent simulation runs. The standard errors are in parentheses.
n Navg(std err) Alloc (NA∗ ) T¯ (std err) T ∗ 1 1.02e+2(7.49) [0,1,0,0] (16) 0.523(6.79e-4) 0. 2 1.29e+2(14.8) [1,1,0,0] (16) 0.555(3.86e-4) 0. 3 1.75e+2(15.7) [1,1,1,0] (16) 0.587(4.57e-4) 0. 4 2.51e+2(25.9) [1,2,1,0] (11) 0.606(1.20e-3) 0. 5 3.37e+2(42.0) [2,2,1,0] (10) 0.626(6.57e-4) 0. 6 4.69e+2(55.2) [2,2,1,1] (8) 0.644(1.10e-3) 0. 7 4.56e+2(58.2) [2,2,2,1] (7) 0.659(1.10e-3) 0. 8 4.45e+2(54.9) [3,2,2,1] (7) 0.674(1.10e-3) 0. 9 5.91e+2(56.1) [3,3,2,1] (6) 0.689(1.39e-3) 0. 10 5.29e+2(54.0) [3,3,3,1] (8) 0.701(1.10e-3) 0.
Table 5: Performance of SMRAS on the buffer allocation problem case (ii), based on 16 independent simulation runs. The standard errors are in parentheses.
thus can be applied to a wide range of problems with little modification. More importantly, we believe that the idea behind SMRAS offers a general framework for stochastic global optimization, based on which one can possibly design and implement other efficient algorithms. There are several input parameters in SMRAS. In our preliminary numerical experiments, the choices of these parameters are based on trial and error. For a given problem, how to determine a priori the most appropriate values of these parameters is an open issue. One research topic is to study the effects of these parameters on the performance of the method, and possibly design an adaptive scheme to choose these parameters adaptively during the search process. Our current numerical study with the algorithm shows that the objective function need not be evaluated very accurately during the initial search phase. Instead, it is sufficient to provide the algorithm with a rough idea of where the good solutions are located. This has motivated our
research to use observation allocation rules with adaptive increasing rates during different search phases. For instance, during the initial search phase, we could increase Mk at a linear rate or even keep it at a constant value; and exponential rates will only be used during the later search phase when more accurate estimates of the objective function values are required. Some other research topics that would further enhance the performance of SMRAS include incorporating local search techniques in the algorithm and implementing a parallel version of the method.
References
G. Allon, D. P. Kroese, T. Raviv, and R. Y. Rubinstein 2005. “Application of the cross-entropy method to the buffer allocation problem in a simulation-based environment,” Annals of Operations Research, Vol. 134, pp. 137-151.
M. H. Alrefaei and S. Andrad´ottir 1995. “A modification of the stochastic ruler method for discrete stochastic optimization,” European Journal of Operational Research, Vol. 133, pp. 160-182. M. H. Alrefaei and S. Andrad´ottir 1999. “A simulated annealing algorithm with constant temper- ature for discrete stochastic optimization,” Management Science, Vol. 45, pp. 748-764.
S. Andrad´ottir 1995. “A method for discrete stochastic optimization,” Management Science, Vol. 41, pp. 1946-1961.
A. Corana, M. Marchesi, C. Martini, and S. Ridella 1987. “Minimizing multimodal functions of continuous variables with the simulated annealing algorithm,” ACM Trans. Mathematical Software, Vol. 13, pp. 262-280.
P. T. De Boer, D. P. Kroese, S. Mannor, R. Y. Rubinstein 2005. “A tutorial on the cross-entropy method,” Annals of Operations Research, Vol. 134, pp. 19-67.
M. Dorigo and L. M. Gambardella 1997. “Ant colony system: a cooperative learning approach to the traveling salesman problem,” IEEE Trans. on Evolutionary Computation, Vol. 1, pp. 53-66. M. C. Fu and K. J. Healy 1997. “Techniques for simulation optimization: an experimental study on an (s, S) inventory system,” IIE Transactions, Vol. 29, pp. 191-199.
M. C. Fu 2005. Stochastic gradient estimation. Chapter 19 in Handbooks in Operations Research and Management Science: Simulation, S.G. Henderson and B.L. Nelson, eds., Elsevier, 2005.
P. Glasserman 1991. Gradient estimation via perturbation analysis. Kluwer Academic Publisher, Boston, Massachusetts. P. W. Glynn 1987. “Likelihood ratio gradient estimation: an overview,” Proceedings of the 1987 Winter Simulation Conference, pp. 366-375.
G. A. Vouros and H. T. Papadopoulos 1998. “Buffer allocation in unreliable production lines using a knowledge based system,” Computer & Operations Research, Vol. 25, pp. 1055-1067. D. Yan and H. Mukai 1992. “Stochastic discrete optimization,” SIAM Journal on Control and Optimization, Vol. 30, pp. 594-612. M. Zlochin, M. Birattari, N. Meuleau, and M. Dorigo 2001. “Model-based search for combinatorial optimization,” Annals of Operations Research, Vol. 131, pp. 373-395.
Appendix
Proof of Lemma 3.1: For the same reason as discussed in the proof of Lemma 2.2, we only need to consider the case where
x ∈ Λk : J¯k(x) > γ¯k − ε
= ∅. Define
Jk(θ) = 1 Nk
x∈Λk
Sk( J¯k(x))χ
Jk(x), ¯γk
ln f (x, θ), where Sk( J¯k(x)) := [S( J¯k^ (x))] k f (x,θk ).
Since f (·, θ) belongs to the NEF, we can write
Jk(θ) = (^) N^1 k
x∈Λk
Sk( J¯k(x))χ
Jk(x), ¯γk
ln `(x)
Nk
x∈Λk
Sk( J¯k(x))χ
Jk(x), γ¯k
θT^ Γ(x)
Nk
x∈Λk
Sk( J¯k(x))χ
Jk(x), γ¯k
ln
y∈X
eθ T (^) Γ(y) `(y)ν(dy).
Thus the gradient of Jk(θ) with respect to θ can be expressed as
∇θJk(θ) = (^) N^1 k
x∈Λk
Sk( J¯k(x))χ
Jk(x), ¯γk
Γ(x)
e ∫θ T^ Γ(y)Γ(y)(y)ν(dy) eθT^ Γ(y)(y)ν(dy)
Nk
x∈Λk
Sk( J¯k(x))χ
Jk(x), γ¯k
where the validity of the interchange of derivative and integral above is guaranteed by Assumption A6 and the dominated convergence theorem. By setting ∇θJk(θ) = 0, it follows that 1 Nk
x∈Λk Sk( J¯k(x))χ^
Jk(x), ¯γk
Γ(x) 1 Nk
x∈Λk Sk( J¯k(x))χ^
Jk(x), γ¯k
e ∫θ T^ Γ(y)Γ(y)(y)ν(dy) eθT^ Γ(y)(y)ν(dy)
which implies that Eegk+1 [Γ(X)] = Eθ [Γ(X)] by the definitions of gk(·) (cf. (4)) and f (·, θ). Since θk+1 is the optimal solution of the problem arg max θ∈Θ
Jk(θ),
we conclude that Eegk+1 [Γ(X)] = Eθk+1 [Γ(X)] , ∀ k = 0, 1 ,.. ., by A5.