您所在位置:编程爱好者网站 — 编程爱好者论坛 — 请教一下 fmincon 函数的使用?
原帖地址:http://bbs.pfan.cn/post-278295.html
主题:请教一下 fmincon 函数的使用?
作者:headtohead 发表时间:2008-6-7 23:17:00
楼主
求最小值,不知道 fmincon 里面 A,b,Aeq,Beq,Lb,Ub,nonlcon,options 分别怎么写,谢谢
作者:ronei 发表时间:2008-6-8 6:25:00
第 1 楼
查查 help 文件不就都有了嘛
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 (nonl
inear constraints)
LB <= X <= UB
(bounds)
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