10优化方法程序实现概要.ppt

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
10优化方法程序实现概要

Conjugate Gradient Method Start with steepest descent direction n0 = g0 = -?f(x0), find new minimum at x1 Build next search direction n1 from g0 and g1 = -?f(x1), such that n0?A?n1 = 0 Repeat step 2 iteratively to find nj (a Gram-Schmidt orthogonalization process). The result is a set of N vectors (in N dimensions) ni?A?nj = 0 Conjugate Gradient Algorithm Initialize n0 = g0 = -?f(x0), i = 0, Find ? that minimizes f(xi+?ni), let xi+1 =xi+?ni Compute new negative gradient gi+1 = -?f(xi+1) Compute Update new search direction as ni+1 = gi+1 + ?ini; ++i, go to 2 The Conjugate Gradient Program 解: f = [-5; -4; -6]; A = [1 -1 1;3 2 4;3 2 0]; b = [20; 42; 30]; lb = zeros(3,1); [x,fval,exitflag,output,lambda] = linprog(f,A,b,[],[],lb) 结果为: x = %最优解 0.0000 15.0000 3.0000 fval = %最优值 -78.0000 exitflag = %收敛 1 output = iterations: 6 %迭代次数 cgiterations: 0 algorithm: lipsol %所使用规则 结构拓扑优化设计程序实现 top(60,20,0.5,3.0,1.5) FMIN Minimize function of one variable. X = FMIN(F,x1,x2) attempts to return a value of x which is a local minimizer of F(x) in the interval x1 x x2. F is a string containing the name of the objective function to be minimized. X = FMIN(F,x1,x2,OPTIONS) uses a vector of control parameters. If OPTIONS(1) is positive, intermediate steps in the solution are displayed; the default is OPTIONS(1) = 0. OPTIONS(2) is the termination tolerance for x; the default is 1.e-4. OPTIONS(14) is the maximum number of function evaluations; the default is OPTIONS(14) = 500. The other components of OPTIONS are not used as input control parameters by FMIN. For more information, see FOPTIONS. X = FMIN(F,x1,x2,OPTIONS,P1,P2,...) provides for additional arguments which are passed to the objective function, F(X,P1,P2,...) [X,OPTIONS] = FMIN(...) returns a count of the number of steps taken in OPTIONS(10). [x,options]=fmin(‘f’,x, options,gradfun,paramt1,par

文档评论(0)

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

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

1亿VIP精品文档

相关文档