- 1、本文档共9页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
第四章 非线性规划
本章, 我们介绍两种解决非线性规划问题的软件:
第一种: MATLAB中的optimization toolbox 中的若干程序;
第二种: LINGO软件.
1.MATLAB程序说明
1.1 无约束问题
程序名: unpfun1函数, unpfun2函数
unpfun1 实例:
Minimize the function
在命令窗口输入以下信息:
x0=[1,1]; % Then call fminunc to find a minimum of unpfun1 near [1,1]
[x,fval]=fminunc(@unpfun1,x0)
输出以下信息:
Optimization terminated successfully:
Search direction less than 2*options.TolX
x =
1.0e-008 *
-0.7591 0.2665
fval =
1.3953e-016
unpfun2实例:将上述的实例用梯度法做
在命令窗口输入以下信息:
options = optimset(GradObj,on); % To minimize this function with the gradient provided
x0 = [1,1];
[x,fval] = fminunc(@unpfun2,x0,options)
输出以下信息:
Optimization terminated successfully:
First-order optimality less than OPTIONS.TolFun, and no negative/zero curvature detected
x =
1.0e-015 *
0.1110 -0.8882
fval =
6.2862e-031
程序的相关知识:
第一种: fminsearch
Find a minimum of an unconstrained multivariable function
where x is a vector and f(x) is a function that returns a scalar.
语法如下:
x = fminsearch(fun,x0)
x = fminsearch(fun,x0,options)
[x,fval] = fminsearch(...)
[x,fval,exitflag] = fminsearch(...)
[x,fval,exitflag,output] = fminsearch(...)
解释:
fminsearch attempts to find a minimum of a scalar function of several variables, starting at an initial estimate. This is generally referred to as unconstrained nonlinear optimization.
x = fminsearch(fun,x0) starts at the point x0 and attempts to find a local minimum x of the function described in fun. fun is a function handle for either an M-file function or an anonymous function. x0 can be a scalar, vector, or matrix.
x = fminsearch(fun,x0,options) minimizes with the optimization options specified in the structure options. Use optimset to set these options.
[x,fval] = fminsearch(...) returns in fval the value of the objective function fun at the solution x.
[x,fval,exitflag] = fminsearch(...) returns a value exitflag that describes the exit condition of fminsearch.
[x,fval,exitflag,output] = fminsearch(...) returns a structure output that contains informatio
您可能关注的文档
- caosen电子股份有限公司管理诊断报告.ppt
- 操作系统第16讲.ppt
- 顶岗实习手册.doc
- 对企业实施品牌延伸策略的再思考.doc
- 管理层权力强度与公2.doc
- 第07讲说的技巧如何引导顾客17pp.ppt
- 第九章坚持和完善初级阶段的基本经济制度.ppt
- 第三节资本结构决策.ppt
- 第三章 全球社会保障改革.ppt
- 行程问题解析.doc
- 2022~2023无人机资格证考试题库及答案第724期.pdf
- (2020年整理)新人教版 高中文言文全解优选 .pdf
- (行业)维修电工高级技师理论知识考试试题卷(附答案).pdf
- 2022年-2023年初级经济师之初级金融专业通关考试题库带答案解析.pdf
- 2019年北师大版小学数学六年级上册期末测试题 共10套.pdf
- 1国家职业技能鉴定题库(高级电工).pdf
- 交流传动机车系统分析-于洋.pdf
- 2022~2023仓储管理人员考试题库及答案第495期 .pdf
- 2022~2023水利设施管养人员考试题库及答案第324期.pdf
- 2023年-2024年注册消防工程师之消防安全技术实务题库附答案(基础题).pdf
最近下载
- 合理使用手机主题班会省公开课一等奖全国示范课微课金奖PPT课件.pptx
- 试卷3试卷答案4《运营管理(新形态版) 》_刘蕾曹俊玲.docx VIP
- 数学新课标2022版学习重要知识点考点总结 数学新课标必威体育精装版版重点知识复习总结.docx
- 2023年中考语文二轮复习:文言文阅读 司马迁《史记》专项练习题汇编(Word版,含答案).docx
- 2024年中级银行从业资格考试《银行管理》真题汇编试卷(文末含答案解精品.pdf VIP
- 乡镇宣传工作总结PPT.pptx VIP
- 2024年疾控大学习突发公共卫生事件监测答案.docx VIP
- 车间冬季安全培训.pdf VIP
- 长阳路排水管道修复监理细则.pdf
- 你是这样的人降B正谱子五线谱乐谱曲谱歌谱高清.pdf
文档评论(0)