- 1、本文档共41页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
[工学]第二讲 无约束最优化
第二讲 无约束非线性规划 fminbnd fminunc fminsearch 函数 2.1 单变量最小化 1、基本数学原理 一维搜索问题,某些情况直接用于求解实际问题,也是进行多变量最优化的基础. minf(x) x1xx2 该问题的搜索过程用下式表达: Xk+1=xk+α*d Xk 为本次迭代的值; α 为搜索方向上的步长参数; d 搜索方向 2、求解方法 拟牛顿法 3、MATLAB求解函数fminbnd 单变量函数求最小值的标准形式为 sub.to 有关参数说明 若参数exitflag0,表示函数收敛于x, 若exitflag=0,表示超过函数估计值或迭代的最大数字, exitflag0表示函数不收敛于x; 若参数output的字段中: iterations 表示迭代次数, funccount 表示函数赋值次数, algorithm 表示所使用的算法, message 退出消息 The function to be minimized. fun takes a scalar x and returns a scalar value f of the objective function evaluated at x. You can specify fun to be an inline object. For example, x = fminbnd(inline(sin(x*x)),x0) Alternatively, fun can be a string containing the name of a function(an M-file, a built-in function, or a MEX-file). If fun=myfun then the M-file function myfun.m would have the form function f = myfun(x) f = ... % Compute function value at x options Optimization parameter options. You can set or change the values of these parameters using the optimset function. fminbnd uses these options structure fields: ?Display – Level of display. off displays no output; iter‘ displays output at each iteration; final displays just the final output. ?MaxFunEvals – Maximum number of function evaluations allowed. ?MaxIter – Maximum number of iterations allowed. ?TolX – Termination tolerance on x. exitflag Describes the exit condition: ? 0 indicates that the function converged to a solution x. ?0 indicates that the maximum number of function evaluations or iterations was reached. ? 0 indicates that the function did not converge to a solution. output A structure whose fields contain information about the optimization: ?output.iterations – The number of iterations taken. ?output.algorithm – The algorithm used. ?output.funcCount – The number of function evaluations Examples A minimum of sin(x) occurs at x = fminbnd(sin,0,2*pi) x = 4.7124 The value of the function
您可能关注的文档
最近下载
- 2023年海水养殖产品项目运营管理方案.docx
- 2025-2026学年部编版历史七年级下册期末复习练习题(含答案) .pdf VIP
- 事业编结构化面试题库面试视频案例.pdf VIP
- AQ 3036-2010 危险化学品重大危险源 罐区现场安全监控装备设置规范(高清-安全-行业标准).pdf
- 特斯拉生产制造革命,一体化压铸(1).pptx
- 《流体力学》刘鹤年第二版(1-9章全)课后习题及答案.doc
- 4年级下册英语试卷.doc VIP
- 泰开LVQB系列SF6电流互感器安装使用说明书.pdf
- 《中国国民心理健康发展报告(2024~2024)》.pptx VIP
- 2024电力巡检无人机自动机场技术标准.pdf
文档评论(0)