![](https://csdnimg.cn/release/download_crawler_static/87013761/bg6.jpg)
无约束优化问题
[x,fval,exitflag,output,grad,hessian] =
fminunc(fun,x0,options)
输出参数:
X, fval: 算法终止时函数的最优解和最优值。
exitflag: 整数标志,算法终止的原因,返回值大于0表示找到局部最
优点,否则没有找到局部最优点。具体的返回请参照函数“fminunc”
的帮助。
Output:Structure containing information about the optimization. The
fields of the structure are:
iterations: Number of iterations taken;
funcCount:Number of function evaluations;
algorithm:Algorithm used;
Cgiterations:Number of PCG iterations (large-scale algorithm only);stepsize
:Final step size taken (medium-scale algorithm only);
grad,hessian:最优解X点处的剃度和Hessian矩阵
6