6226
|
1 ## Copyright (C) 2007 John W. Eaton |
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify it |
|
6 ## under the terms of the GNU General Public License as published by |
7016
|
7 ## the Free Software Foundation; either version 3 of the License, or (at |
|
8 ## your option) any later version. |
6226
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, but |
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 ## General Public License for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
7016
|
16 ## along with Octave; see the file COPYING. If not, see |
|
17 ## <http://www.gnu.org/licenses/>. |
6226
|
18 |
6945
|
19 ## Undocumented internal function. |
|
20 |
6226
|
21 ## -*- texinfo -*- |
|
22 ## @deftypefn {Function File} {} __fsolve_defopts__ () |
|
23 ## @end deftypefn |
|
24 |
|
25 function retval = __fsolve_defopts__ () |
|
26 |
|
27 if (nargin == 0) |
|
28 retval = struct ("DerivativeCheck", "off", |
|
29 "Diagnostics", "off", |
|
30 "DiffMaxChange", 0.1, |
|
31 "DiffMinChange", 1e-8, |
|
32 "Display", "final", |
|
33 "FunValCheck", "off", |
|
34 "JacobMult", [], |
|
35 "JacobPattern", "sparse (ones (jrows, jcols))", |
|
36 "Jacobian", "off", |
|
37 "LargeScale", "off", |
|
38 "LineSearchtype", "quadcubic", |
|
39 "MaxFunEvals", "100*numberofvariables", |
|
40 "MaxIter", 400, |
|
41 "MaxPCGIter", "max (1, floor (numberofvariables/2))", |
|
42 "NonlEqnAlgorithm", "dogleg", |
|
43 "OutputFcn", [], |
|
44 "PlotFcns", [], |
|
45 "PrecondBandWidth", 0, |
|
46 "TolFun", 1e-6, |
|
47 "TolPCG", 0.1, |
|
48 "TolX", 1e-6, |
|
49 "TypicalX", "ones (numberofvariables, 1)"); |
|
50 else |
|
51 print_usage (); |
|
52 endif |
|
53 |
|
54 endfunction |