楼主: linguohuai
13267 5

谁能帮忙解释解释fmincon和linprog函数的区别以及用法啊?? [推广有奖]

  • 0关注
  • 0粉丝

已卖:535份资源

高中生

30%

还不是VIP/贵宾

-

威望
0
论坛币
909 个
通用积分
0.0600
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
236 点
帖子
23
精华
0
在线时间
1 小时
注册时间
2006-3-28
最后登录
2014-5-5

楼主
linguohuai 发表于 2008-9-27 10:01:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

谁能帮忙解释解释fmincon和linprog函数的区别以及用法啊??

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:fmincon linprog Prog Inc NCO 解释 函数 fmincon linprog 用法

沙发
aris_zzy 发表于 2008-9-27 10:03:00

fmincon 非线性优化

linprog 线性优化

http://www.ariszheng.com

藤椅
linguohuai 发表于 2008-9-27 10:05:00
哦,非常感谢斑竹!不过还想请教一下,线形规划和非线形规划都是指在指定的条件下,函数的最大或者最小值,是这样吗??

[此贴子已经被作者于2008-9-27 10:09:08编辑过]

板凳
tianyu240 发表于 2010-9-26 23:26:50
%LINPROG Linear programming.
%   X=LINPROG(f,A,b) attempts to solve the linear programming problem:
%        
%            min f'*x    subject to:   A*x <= b
%             x
%
%   X=LINPROG(f,A,b,Aeq,beq) solves the problem above while additionally
%   satisfying the equality constraints Aeq*x = beq.
%   
%   X=LINPROG(f,A,b,Aeq,beq,LB,UB) defines a set of lower and upper
%   bounds on the design variables, X, so that the solution is in
%   the range LB <= X <= UB.  Use empty matrices for LB and UB
%   if no bounds exist. Set LB(i) = -Inf if X(i) is unbounded below;
%   set UB(i) = Inf if X(i) is unbounded above.

%FMINCON finds a constrained minimum of a function of several variables.
%   FMINCON attempts to solve problems of the form:
%       min F(X)  subject to:  A*X  <= B, Aeq*X  = Beq (linear constraints)
%        X                       C(X) <= 0, Ceq(X) = 0   (nonlinear constraints)
%                                LB <= X <= UB            
%                                                           
%   X=FMINCON(FUN,X0,A,B) starts at X0 and finds a minimum X to the function
%   FUN, subject to the linear inequalities A*X <= B. FUN accepts input X and
%   returns a scalar function value F evaluated at X. X0 may be a scalar,
%   vector, or matrix.
%
%   X=FMINCON(FUN,X0,A,B,Aeq,Beq) minimizes FUN subject to the linear equalities
%   Aeq*X = Beq as well as A*X <= B. (Set A=[] and B=[] if no inequalities exist.)

报纸
liuxin9023 发表于 2010-9-27 09:17:19
要注意 fmin系列函数计算出来的很可能是局部最优值
lingprog算出来肯定是全局的 二者在算法上差别很大

地板
matlab-007 发表于 2014-12-19 21:49:12
linprog适用于有约束条件的线性问题的最小值求解:

X=LINPROG(f,A,b)
         
             f'*x    满足:  A*x <= b
fmincon适用范围最广,适用于非线性约束的非线性函数的最小值求解:

非线性函数:F(X)   
满足:
A*X  <= B, Aeq*X  = Beq
   C(X) <= 0, Ceq(X) = 0   
           LB <= X <= UB
X=FMINCON(FUN,X0,A,B,Aeq,Beq,LB,UB)

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-19 17:50