这个函数用来求解一个带有约束的多元函数最小值问题
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.
这是求解线性约束的一个最简单的用法
温馨提示:答案为网友推荐,仅供参考