利用Matlab解决数学问题(国外英语资料).doc

利用Matlab解决数学问题(国外英语资料).doc

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

利用Matlab解决数学问题 Matlab to solve mathematical problems One, linear programming Matlab solution for linear programming Simplex method is one of the most common and effective algorithms for solving linear programming problems. The simplex method is the first one In 1947, George Dantzig proposed that, for nearly 60 years, a number of variant forms have been developed, but the same basic idea remains. As a result of the conclusion: if the linear programming problem has finite and optimal solutions, then there must be some optimal solution which is the pole of the feasible region. Based on this, the basic idea of simplex method is to find a pole of the feasible region first, and to judge whether it is optimal by a certain rule. If not, then switch to another pole adjacent to it and make the target function better. So we go down until we find some optimal solution. In this case, were not going to go into the simplex method, and the interested reader can look at other linear programming books. Here we introduce the Matlab solution of linear programming. The standard type of linear programming in Matlab5.3 is The basic function is linprog (c, A, b), and its return value is the value of the vector. There are other forms of function calls (you can see all of the function call forms in the Matlab window running help linprog), such as: [x, fval] = linprog (c, A, b, Aeq, beq, LB, UB, X0, OPTIONS) Here fval returns the values of the target function, Aeq and beq correspond to the equation constraints, the LB and UB are the lower and upper bound of the variable, the initial value, and the OPTIONS are the control parameters. Example 2 solves the following linear programming problem The solution (I) writes M files C = [2; 3; -5]; A is equal to minus 2, 5, minus 1. B = - 10; Aeq = [1, 1, 1]; Beq = 7. X = linprog (-c, a, b, aeq, beq, zeros (3, 1)) Value = c * x (ii) the M file memory disk, named example1.m. (iii) you can ask for the result of running example1 in the Matlab window. Examp

文档评论(0)

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

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

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档