Allow detailed exitcode as output of trust_region.m

time-shift
Johannes Pfeifer 2016-03-12 19:48:05 +01:00
parent 9c8da869f7
commit 5d8bc7188c
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
function [x,check] = trust_region(fcn,x0,j1,j2,jacobian_flag,gstep,tolf,tolx,maxiter,debug,varargin)
function [x,check,info] = trust_region(fcn,x0,j1,j2,jacobian_flag,gstep,tolf,tolx,maxiter,debug,varargin)
% Solves systems of non linear equations of several variables, using a
% trust-region method.
%
@ -20,7 +20,7 @@ function [x,check] = trust_region(fcn,x0,j1,j2,jacobian_flag,gstep,tolf,tolx,max
% OUTPUTS
% x: results
% check=1: the model can not be solved
%
% info: detailed exitcode
% SPECIAL REQUIREMENTS
% none