首页 > 代码库 > [Octave] fminunc()
[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()
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。