[Octave] fminunc()

Posted KennyRom

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Octave] fminunc()相关的知识,希望对你有一定的参考价值。

fminunc( FCN, X0);

fminunc( FCN, C0, Options);

[X, FVEC, INFO, OUTPUT, GRAD, HESS] = fminunc (FCN, ...);

%Solve an unconstrained optimization problem defined by the function FCN.

%X0 determines a starting guess.

%OPTIONS is a structure specifying additional options.  Currently, `fminunc‘ recognizes these %options: "FunValCheck", "OutputFcn", "TolX", "TolFun", "MaxIter", "MaxFunEvals", "GradObj", %"FinDiffType", "TypicalX", "AutoScaling".  (optimset)

%On return, FVAL contains the value of the function FCN evaluated at X

%INFO may be one of the following values:
%1 Converged to a solution point.
%2 Last relative step size was less that TolX.
%3 Last relative decrease in function value was less than TolF.
%0 Iteration limit exceeded.
%-3 The trust region radius became excessively small.

%Notes: If you only have a single nonlinear equation of one
%     variable then using `fminbnd‘ is usually a much better idea.  The
%     algorithm used is a gradient search which depends on the objective
%     function being differentiable.  If the function has
%     discontinuities it may be better to use a derivative-free
%     algorithm such as `fminsearch‘.

  

以上是关于[Octave] fminunc()的主要内容,如果未能解决你的问题,请参考以下文章

八度:逻辑回归:fmincg 和 fminunc 之间的差异

先进的优化

python里面类似于Matlab中的fminunc方法或minfunc方法叫啥名字,怎么调用

MATLAB 函数 fminunc 生成错误

是否由MATLAB fmincon报告了Hessian矩阵,fminunc是平均Hessian矩阵?

如何从 GTK+2 C 代码中调用 matlab/octave 函数