is the 2nd partial derivatives of the function (the Hessian) at the
point X. The Hessian is only used by the large-scale method, not the
line-search method. Use the GradConstr option to specify that NONLCON
also returns third and fourth output arguments GC and GCeq, where GC is
the partial derivatives of the constraint vector of inequalities C, and
GCeq is the partial derivatives of the constraint vector of equalities
Ceq. Use OPTIONS = [] as a place holder if no options are set.
X=FMINCON(PROBLEM) finds the minimum for PROBLEM. PROBLEM is a
structure with the function FUN in PROBLEM.objective, the start point
in PROBLEM.x0, the linear inequality constraints in PROBLEM.Aineq
and PROBLEM.bineq, the linear equality constraints in PROBLEM.Aeq and
PROBLEM.beq, the lower bounds in PROBLEM.lb, the upper bounds in
PROBLEM.ub, the nonlinear constraint function in PROBLEM.nonlcon, the
options structure in PROBLEM.options, and solver name 'fmincon' in
PROBLEM.solver. Use this syntax to solve at the command line a problem
exported from OPTIMTOOL. The structure PROBLEM must have all the fields.
[X,FVAL]=FMINCON(FUN,X0,...) returns the value of the objective
function FUN at the solution X.
[X,FVAL,EXITFLAG]=FMINCON(FUN,X0,...) returns an EXITFLAG that describes the
exit condition of FMINCON. Possible values of EXITFLAG and the corresponding
exit conditions are listed below.
Both medium- and large-scale:
1 First order optimality conditions satisfied to the specified tolerance.
0 Maximum number of function evaluations or iterations reached.
-1 Optimization terminated by the output function.
评论0