亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? demopt1.m

?? Matlab toolbox that contains functions of Kalman filter and random system simulation.
?? M
字號:
function demopt1(xinit)%DEMOPT1 Demonstrate different optimisers on Rosenbrock's function.%%	Description%	The four general optimisers (quasi-Newton, conjugate gradients,%	scaled conjugate gradients, and gradient descent) are applied to the%	minimisation of Rosenbrock's well known `banana' function. Each%	optimiser is run for at most 100 cycles, and a stopping criterion of%	1.0e-4 is used for both position and function value. At the end, the%	trajectory of each algorithm is shown on a contour plot of the%	function.%%	DEMOPT1(XINIT) allows the user to specify a row vector with two%	columns as the starting point.  The default is the point [-1 1]. Note%	that the contour plot has an x range of [-1.5, 1.5] and a y range of%	[-0.5, 2.1], so it is best to choose a starting point in the same%	region.%%	See also%	CONJGRAD, GRADDESC, QUASINEW, SCG, ROSEN, ROSEGRAD%%	Copyright (c) Ian T Nabney (1996-2001)% Initialise start point for searchif nargin < 1 | size(xinit) ~= [1 2]  xinit = [-1 1];	% Traditional start pointend% Find out if flops is available (i.e. pre-version 6 Matlab)v = version;if (str2num(strtok(v, '.')) >= 6)    flops_works = logical(0);else    flops_works = logical(1);end% Set up optionsoptions = foptions;	% Standard optionsoptions(1) = -1; 	% Turn off printing completelyoptions(3) = 1e-8; 	% Tolerance in value of functionoptions(14) = 100;  	% Max. 100 iterations of algorithmclcdisp('This demonstration compares the performance of four generic')disp('optimisation routines when finding the minimum of Rosenbrock''s')disp('function y = 100*(x2-x1^2)^2 + (1-x1)^2.')disp(' ')disp('The global minimum of this function is at [1 1].')disp(['Each algorithm starts at the point [' num2str(xinit(1))...	' ' num2str(xinit(2)) '].'])disp(' ')disp('Press any key to continue.')pause % Generate a contour plot of the functiona = -1.5:.02:1.5;b = -0.5:.02:2.1;[A, B] = meshgrid(a, b);Z = rosen([A(:), B(:)]);Z = reshape(Z, length(b), length(a));l = -1:6;v = 2.^l;fh1 = figure;contour(a, b, Z, v)title('Contour plot of Rosenbrock''s function')hold onclcdisp('We now use quasi-Newton, conjugate gradient, scaled conjugate')disp('gradient, and gradient descent with line search algorithms')disp('to find a local minimum of this function.  Each algorithm is stopped')disp('when 100 cycles have elapsed, or if the change in function value')disp('is less than 1.0e-8 or the change in the input vector is less than')disp('1.0e-4 in magnitude.')disp(' ')disp('Press any key to continue.')pauseclcx = xinit;flops(0)[x, options, errlog, pointlog] = quasinew('rosen', x, options, 'rosegrad');fprintf(1, 'For quasi-Newton method:\n')fprintf(1, 'Final point is (%f, %f), value is %f\n', x(1), x(2), options(8))fprintf(1, 'Number of function evaluations is %d\n', options(10))fprintf(1, 'Number of gradient evaluations is %d\n', options(11))if flops_works    opt_flops = flops;    fprintf(1, 'Number of floating point operations is %d\n', opt_flops)endfprintf(1, 'Number of cycles is %d\n', size(pointlog, 1) - 1);disp(' ')x = xinit;flops(0)[x, options, errlog2, pointlog2] = conjgrad('rosen', x, options, 'rosegrad');fprintf(1, 'For conjugate gradient method:\n')fprintf(1, 'Final point is (%f, %f), value is %f\n', x(1), x(2), options(8))fprintf(1, 'Number of function evaluations is %d\n', options(10))fprintf(1, 'Number of gradient evaluations is %d\n', options(11))if flops_works    opt_flops = flops;    fprintf(1, 'Number of floating point operations is %d\n', ...	opt_flops)endfprintf(1, 'Number of cycles is %d\n', size(pointlog2, 1) - 1);disp(' ')x = xinit;flops(0)[x, options, errlog3, pointlog3] = scg('rosen', x, options, 'rosegrad');fprintf(1, 'For scaled conjugate gradient method:\n')fprintf(1, 'Final point is (%f, %f), value is %f\n', x(1), x(2), options(8))fprintf(1, 'Number of function evaluations is %d\n', options(10))fprintf(1, 'Number of gradient evaluations is %d\n', options(11))if flops_works    opt_flops = flops;    fprintf(1, 'Number of floating point operations is %d\n', opt_flops)endfprintf(1, 'Number of cycles is %d\n', size(pointlog3, 1) - 1);disp(' ')x = xinit;options(7) = 1; % Line minimisation usedflops(0)[x, options, errlog4, pointlog4] = graddesc('rosen', x, options, 'rosegrad');fprintf(1, 'For gradient descent method:\n')fprintf(1, 'Final point is (%f, %f), value is %f\n', x(1), x(2), options(8))fprintf(1, 'Number of function evaluations is %d\n', options(10))fprintf(1, 'Number of gradient evaluations is %d\n', options(11))if flops_works    opt_flops = flops;    fprintf(1, 'Number of floating point operations is %d\n', opt_flops)endfprintf(1, 'Number of cycles is %d\n', size(pointlog4, 1) - 1);disp(' ')disp('Note that gradient descent does not reach a local minimum in')disp('100 cycles.')disp(' ')disp('On this problem, where the function is cheap to evaluate, the')disp('computational effort is dominated by the algorithm overhead.')disp('However on more complex optimisation problems (such as those')disp('involving neural networks), computational effort is dominated by')disp('the number of function and gradient evaluations.  Counting these,')disp('we can rank the algorithms: quasi-Newton (the best), conjugate')disp('gradient, scaled conjugate gradient, gradient descent (the worst)')disp(' ')disp('Press any key to continue.')pauseclcdisp('We now plot the trajectory of search points for each algorithm')disp('superimposed on the contour plot.')disp(' ')disp('Press any key to continue.')pauseplot(pointlog4(:,1), pointlog4(:,2), 'bd', 'MarkerSize', 6)plot(pointlog3(:,1), pointlog3(:,2), 'mx', 'MarkerSize', 6, 'LineWidth', 2)plot(pointlog(:,1), pointlog(:,2), 'k.', 'MarkerSize', 18)plot(pointlog2(:,1), pointlog2(:,2), 'g+', 'MarkerSize', 6, 'LineWidth', 2)lh = legend(  'Gradient Descent', 'Scaled Conjugate Gradients', ...  'Quasi Newton', 'Conjugate Gradients');hold offclcdisp('Press any key to end.')pauseclose(fh1);clear all;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚洲综合久久| 奇米影视7777精品一区二区| 欧美成人综合网站| 欧美日韩国产免费| 精品视频在线看| 欧美久久一二区| 欧美一级淫片007| 6080亚洲精品一区二区| 在线不卡中文字幕| 日韩一区二区三区电影在线观看 | 狠狠色丁香九九婷婷综合五月| 亚洲va韩国va欧美va精品| 一区二区三区美女视频| 一区二区三区在线免费观看| 亚洲综合免费观看高清完整版| 亚洲精品中文在线| 午夜激情久久久| 久久99久久精品| 大陆成人av片| 色94色欧美sute亚洲线路一久| 欧美日韩一区二区三区四区五区| 久久久久久久久97黄色工厂| 久久精品在这里| 成人欧美一区二区三区小说| 亚洲线精品一区二区三区八戒| 日韩精品每日更新| 国产乱码一区二区三区| 99久久精品情趣| 欧美日韩不卡一区| 国产亚洲成aⅴ人片在线观看| 国产精品久久久久影院老司| 亚洲国产成人va在线观看天堂| 美女mm1313爽爽久久久蜜臀| 国产成人自拍在线| 欧美特级限制片免费在线观看| 日韩欧美精品在线视频| 亚洲婷婷综合久久一本伊一区| 天天综合网天天综合色| 国产91富婆露脸刺激对白| 欧洲视频一区二区| 国产亚洲综合性久久久影院| 一区二区三区欧美亚洲| 经典一区二区三区| 日本精品一区二区三区四区的功能| 日韩一区二区三区视频| 中文字幕字幕中文在线中不卡视频| 轻轻草成人在线| 91啪亚洲精品| 国产视频911| 青青草一区二区三区| 91美女精品福利| 久久精品视频免费| 成人激情图片网| 制服丝袜亚洲色图| 亚洲欧美国产三级| 国产91精品免费| 欧美大片在线观看一区二区| 亚洲国产日韩a在线播放| 国产成人精品一区二区三区网站观看| 欧美日韩一区小说| 最新国产の精品合集bt伙计| 九色|91porny| 欧美大片国产精品| 视频精品一区二区| 精品视频一区三区九区| 亚洲精品美国一| 91丨porny丨中文| 中文字幕一区不卡| av高清不卡在线| 国产精品久久久久婷婷二区次| 国产一区二区三区日韩| 日韩视频一区二区三区| 天堂资源在线中文精品| 欧美日韩国产一区二区三区地区| 亚洲女人****多毛耸耸8| 成人动漫一区二区| 综合欧美一区二区三区| 91在线视频观看| 亚洲九九爱视频| 欧美亚洲综合色| 午夜伊人狠狠久久| 宅男在线国产精品| 免费人成在线不卡| 欧美mv和日韩mv国产网站| 精品亚洲国内自在自线福利| 欧美v亚洲v综合ⅴ国产v| 精品一区二区三区在线视频| 精品国产乱码久久久久久免费| 国模冰冰炮一区二区| 国产日本欧洲亚洲| 99久久国产综合精品女不卡| 亚洲人123区| 欧美精品黑人性xxxx| 奇米在线7777在线精品| 久久久久国产免费免费| 成人91在线观看| 一区二区三区四区蜜桃| 欧美美女一区二区| 激情六月婷婷久久| 亚洲图片欧美激情| 欧美在线视频日韩| 美女网站在线免费欧美精品| 国产亚洲欧美日韩俺去了| 91视频在线观看免费| 亚洲第一搞黄网站| 久久久91精品国产一区二区精品| 99国产精品久久久久| 亚洲成人激情综合网| 亚洲欧美日韩国产成人精品影院 | 欧美一区二区免费观在线| 久久99久久精品欧美| 国产精品国产三级国产aⅴ入口 | 亚洲裸体在线观看| 日韩三级高清在线| 91麻豆成人久久精品二区三区| 午夜精品国产更新| 国产精品素人一区二区| 欧美日韩午夜精品| 成人精品视频.| 日韩av在线发布| 亚洲欧洲精品一区二区精品久久久| 制服丝袜成人动漫| 91麻豆免费观看| 国产老肥熟一区二区三区| 亚洲一区二区免费视频| 中文字幕免费不卡在线| 欧美一区二区三区免费观看视频| 99精品国产热久久91蜜凸| 精品一区二区在线观看| 天天综合日日夜夜精品| 国产精品理伦片| 精品国产99国产精品| 欧美精品一级二级| 色悠久久久久综合欧美99| 国产精品一区在线观看你懂的| 一区二区三区日韩在线观看| 国产午夜亚洲精品理论片色戒| 欧美一区二区精品在线| 91久久线看在观草草青青| 成人夜色视频网站在线观看| 美女网站一区二区| 男女男精品视频网| 舔着乳尖日韩一区| 亚洲成人一二三| 亚洲欧美另类图片小说| 国产精品乱码一区二区三区软件 | 国产99久久久国产精品潘金网站| 青青青爽久久午夜综合久久午夜| 亚洲午夜精品久久久久久久久| 日韩毛片在线免费观看| 国产精品久久久久久一区二区三区| 欧美精品一区二区三区在线| 日韩一级大片在线| 日韩欧美色电影| 欧美精品一区视频| 国产亚洲制服色| 亚洲国产高清aⅴ视频| 国产精品理伦片| 亚洲男帅同性gay1069| 一区二区成人在线视频 | 五月激情六月综合| 日本午夜一本久久久综合| 五月天亚洲精品| 久久99久久99| 成人黄色在线看| 色又黄又爽网站www久久| 精品视频色一区| 日韩视频不卡中文| 久久网站热最新地址| 亚洲国产高清在线观看视频| 日韩一区有码在线| 亚洲成av人片在线| 久久电影网站中文字幕| 成人性生交大片免费看中文网站| 暴力调教一区二区三区| 欧美午夜一区二区三区免费大片| 在线播放/欧美激情| 久久久三级国产网站| 亚洲欧洲av在线| 亚洲第一在线综合网站| 国模冰冰炮一区二区| 91免费在线看| 在线不卡中文字幕播放| 欧美经典一区二区| 亚洲高清久久久| 国产精品小仙女| 91福利在线免费观看| 欧美成人a∨高清免费观看| 国产欧美日韩久久| 五月激情六月综合| 成人美女视频在线观看18| 欧美日韩精品一区二区三区| 久久久99久久| 首页国产欧美日韩丝袜| 成人av在线播放网站| 日韩一本二本av| 亚洲在线免费播放| 国产91在线观看| 日韩精品在线一区| 亚洲第一福利一区|