⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example.m

📁 最优化的bfgs算法
💻 M
字号:
%example script for csminwel.m, minimizing Rosenbrock function% Get the function's own help commentsinput('Hit return to get the function''s own help comments')help csminwel% First with numberical derivatives (grad=[])input('Hit return to minimize with numerical gradient')[fhat,xhat,ghat,Hhat,itct,fcount,retcodehat] = csminwel('rsnbrck',[10,-9],eye(2)*.5,[] ,1e-14,100)% Then with analytic derivativesinput('Hit return to minimize with analytic gradient')[fhat,xhat,ghat,Hhat,itct,fcount,retcodehat] = csminwel('rsnbrck',[10,-9],eye(2)*.5,'drsnbrck' ,1e-14,100)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -