fminsearchbnd new

版本 1.0.0.0 (5.5 KB) 作者: Ken Purchase
improved bounded fminsearch algorithm
4.6K 次下载
更新时间 2007/12/3

无许可证

A minor improvement on the fminsearchbnd (bounded fminsearch) created by John D'Errico. Changes:

% Changes from fminsearchbnd:
Changes from fminsearchbnd:
1) in options structure, user may pass an 'output function' and 'plot function' to fminsearch.
Original fminsearchbnd handled the output function via a nested wrapper function. I have extended
this to the plot function too.
2) I have moved the 'intrafun' function and wrappers to be nested functions (INSIDE the
fminsearchbnd function), so they do not need to pass the params structure around (into
fminsearch) - but have access to it directly. This
maintains the integrity of the varargin, which the user may be passing thru fminsearch to their
optmization funciton (fminsearchbnd had passed the params structure to fminsearch, thus ruining any
varargin that the user passed in).
3) I have created a test example so the user can see not only how fminseachbnd works, but also how
the OutputFn and PrintFns functions work, which were heretofore poorly documented by MathWorks.

引用格式

Ken Purchase (2024). fminsearchbnd new (https://www.mathworks.com/matlabcentral/fileexchange/17804-fminsearchbnd-new), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Linear Programming and Mixed-Integer Linear Programming 的更多信息
致谢

参考作品: fminsearchbnd, fminsearchcon

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

(Now updated to remove unnecesary commented-out code, and fix a bug in the handling of varargin).