minimization of a function by random iterative search

버전 1.0.0.0 (4.33 KB) 작성자: yoash levron
Optimization method: Locates a minimum of a target function. Converges to global optimum.
다운로드 수: 1.3K
업데이트 날짜: 2013/2/12

라이선스 보기

function vopt = min_by_random_search( fnc, region )
Minimization of a function by iterative random search.
Written by Dr. Yoash Levron, February 2013.

This function implements a minimization algorithm, based on iterative random search. At each iteration, the function randomize vectors in the search region, and finds the one that minimizes the target function. Then, a smaller search
region is defined around this minimizer. The process repeats itself, shrinking the search region until convergence.

This algorithm converges slower than gradient based algorithm, but it has several advantages:
a) It does not require a specific derivative.
b) It converges to a global optimum, even if the function holds many local ones.

The algorithm works well with functions of relatively low dimension: up to about 10-20 variables. If the dimension is too high, the function may fail to locate a global minimum.
A useful test is to run the function a few times, checking that it locates the same optimum.

inputs:
fnc - A handle to the target function to be minimized.
region - 2*N matix specifying the region of search. It specifies a range for each of the function variables.
region(1,n) - is the low bound for variable n
region(2,n) - is the high bound for variable n

outputs:
vopt - (N*1), the minimizing vector.

인용 양식

yoash levron (2024). minimization of a function by random iterative search (https://www.mathworks.com/matlabcentral/fileexchange/40276-minimization-of-a-function-by-random-iterative-search), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Problem-Based Nonlinear Optimization에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0