TAILIEUCHUNG - Minimization or Maximization of Functions part 6

if (i != ilo) { for (j=1;j | 412 Chapter 10. Minimization or Maximization of Functions if i ilo for j 1 j ndim j p i j psum j p i j p ilo j y i funk psum nfunk ndim GET_PSUM else nfunk free_vector psum 1 ndim Keep track of function evaluations. Recompute psum. Correct the evaluation count. Go back for the test of doneness and the next iteration. include float amotry float p float y float psum int ndim float funk float int ihi float fac Extrapolates by a factor fac through the face of the simplex across from the high point tries it and replaces the high point if the new point is better. int j float fac1 fac2 ytry ptry ptry vector 1 ndim fac1 ndim fac2 fac1-fac for j 1 j ndim j ptry j psum j fac1-p ihi j fac2 ytry funk ptry Evaluate the function at the trial point. if ytry y ihi If it s better than the highest then replace the highest. y ihi ytry for j 1 j ndim j psum j ptry j -p ihi j p ihi j ptry j free_vector ptry 1 ndim return ytry CITED REFERENCES AND FURTHER READING Nelder . and Mead R. 1965 Computer Journal vol. 7 pp. 308-313. 1 Yarbro . and Deming . 1974 Analytica Chimica Acta vol. 73 pp. 391-398. Jacoby Kowalik . and Pizzo . 1972 Iterative Methods for Nonlinear Optimization Problems Englewood Cliffs NJ Prentice-Hall . Direction Set Powell s Methods in Multidimensions Sample page from NUMERICAL RECIPES IN C THE ART OF SCIENTIFIC COMPUTING ISBN 0-521-43108-5 We know how to minimize a function of one variable. If we start at a point P in N-dimensional space and proceed from there in some vector Direction Set Powell s Methods in Multidimensions 413 direction n then any function of N variables f P can be minimized along the line n by our one-dimensional methods. One can dream up various multidimensional minimization methods that consist of sequences of such line minimizations. Different methods will differ only by how at each stage they choose the next direction n to try. All such methods presume the existence of a black-box .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.