第四章非线性规划.doc

  1. 1、本文档共9页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

文档评论(0)

allap + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档