文件名称:
最优化学习的Matlab程序:黄金分割法(gold section method)
开发工具:
文件大小: 2kb
下载次数: 0
上传时间: 2009-05-29
详细说明: 最优化学习的Matlab程序:黄金分割法(gold section method) %GSM finds a local minimum of a function using gold section method %epsilon Stopping criterion %ITER Number of iterations % % Examples % FUN can be specified using @: % [x_min,fx_min,ITER]=gsm(@sin,0, 2*pi)% % FUN can also be an anonymous function: % [x_min,fx_min,ITER]=gsm(@(x) sin(3*x),0,2*pi) % % If FUN is parameterized, you can use anonymous functions to capture the % problem-dependent parameters. Suppose you want to solve the equation given % in the function myfun, which is parameterized by its second argument c. Here % myfun is an M-file function such as % % function f = myfun(x,c) % f = cos(c*x); % % To solve the equation for a specific value of c, first assign the value to c. % Then create a one-argument anonymous function that captures that value of c % and calls myfun with two arguments. Finally, pass this anonymous function to % FZERO: % % c = 2; % define parameter first % [x_min,fx_min,ITER]=gsm(@(x) myfun(x,c),-2*pi,0) ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.