谁能介绍一下matlab中fmincon的用法?最好有个例题,并解释一下个字母代表的含义!急用!!!

如题所述

这个函数用来求解一个带有约束的多元函数最小值问题
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 (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.
这是求解线性约束的一个最简单的用法
温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-07-25
你的代码中调用fmincon函数中@total1不应该是@myfun目标函数吗,后面的那个@total1应该是@mycon为非线性约束 function f = myfun(x) f = 0.192457*1e-4*(x(2)+2)*x(1)^2*x(3); function [c,ceq] = mycon(x) c(...[详细]
第2个回答  2011-07-24
打开帮助搜fmincon看看不就得了

如果看英文帮助有困难。。。

百度:title: (fmincon)