資源簡介
模擬退火的MATLAB程序,可以直接運行,如有疑問,請聯系1759984207@qq.com
代碼片段和文件信息
function?[x0f0]=sim_anl(fx0luMmaxTolFun)
%sim_anl?Minimizes?a?function?with?the?method?of?simulated?annealing?(Kirkpatrick?et?al.?1983)?[1]
%?
%?
%?INPUTS:?
%????????f?=?a?function?handle
%????????x0?=?a?ninitial?guess?for?the?minimun
%????????l?=?a?lower?bound?for?minimun
%????????u?=?a?upper?bound?for?minimun
%????????Mmax?=?maximun?number?of?temperatures
%????????TolFun?=?tolerancia?de?la?funci髇
%
%
%?OUTPUTS:?
%????????x0?=?candidate?to?global?minimun?founded
%????????f0?=?value?of?function?on?x0
%
%
%?Example?[2]:
%
%??The?six-hump?camelback?function:
%??camel=?@(x)(4-2.1*x(1).^2+x(1).^4/3).*x(1).^2+x(1).*x(2)+4*(x(2).^2-1).*x(2).^2;
%??has?a?doble?minimun?at?f(-0.08980.7126)?=?f(0.0898-0.7126)?=?-1.0316
%??this?code?works?with?it?as?follows:
%??[x0f0
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1313??2014-02-12?13:39??sim_anl\license.txt
?????文件???????4260??2014-02-12?13:39??sim_anl\sim_anl.m
?????目錄??????????0??2017-05-06?20:17??sim_anl
-----------?---------??----------?-----??----
?????????????????5573????????????????????3
評論
共有 條評論