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

%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.)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值