From 5d8bc7188cd5214b87a4a79fe36b2a7af5a517d7 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Sat, 12 Mar 2016 19:48:05 +0100 Subject: [PATCH] Allow detailed exitcode as output of trust_region.m --- matlab/trust_region.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/trust_region.m b/matlab/trust_region.m index 61e4478ac..cda54684b 100644 --- a/matlab/trust_region.m +++ b/matlab/trust_region.m @@ -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