comparison main/optim/inst/test_min_2.m @ 9930:d30cfca46e8a octave-forge

optim: upgrade license to GPLv3+ and mention on DESCRIPTION the other package licenses
author carandraug
date Fri, 30 Mar 2012 15:14:48 +0000
parents 97f77d4bd426
children 28b882879c6e
comparison
equal deleted inserted replaced
9929:df50d0ae107f 9930:d30cfca46e8a
1 ## Copyright (C) 2002 Etienne Grossmann. All rights reserved. 1 ## Copyright (C) 2002 Etienne Grossmann <etienne@cs.uky.edu>
2 ## Copyright (C) 2004 Michael Creel <michael.creel@uab.es>
2 ## 3 ##
3 ## This program is free software; you can redistribute it and/or modify it 4 ## This program is free software; you can redistribute it and/or modify it under
4 ## under the terms of the GNU General Public License as published by the 5 ## the terms of the GNU General Public License as published by the Free Software
5 ## Free Software Foundation; either version 2, or (at your option) any 6 ## Foundation; either version 3 of the License, or (at your option) any later
6 ## later version. 7 ## version.
7 ## 8 ##
8 ## This is distributed in the hope that it will be useful, but WITHOUT 9 ## This program is distributed in the hope that it will be useful, but WITHOUT
9 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 10 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 11 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11 ## for more details. 12 ## details.
13 ##
14 ## You should have received a copy of the GNU General Public License along with
15 ## this program; if not, see <http://www.gnu.org/licenses/>.
12 16
13 ## test_min_2 - Test that bfgs works 17 ## test_min_2 - Test that bfgs works
14 ## 18 ##
15 ## Defines some simple functions and verifies that calling 19 ## Defines some simple functions and verifies that calling
16 ## 20 ##
17 ## bfgs on them returns the correct minimum. 21 ## bfgs on them returns the correct minimum.
18 ## 22 ##
19 ## Sets 'ok' to 1 if success, 0 otherwise 23 ## Sets 'ok' to 1 if success, 0 otherwise
20 24
21 ## The name of the optimizing function
22 ## modified 2004-05-20 by Michael Creel to adapt to bfgsmin
23 if ! exist ("optim_func"), optim_func = "bfgsmin"; end 25 if ! exist ("optim_func"), optim_func = "bfgsmin"; end
24 26
25 ok = 1; 27 ok = 1;
26 28
27 if ! exist ("verbose"), verbose = 0; end 29 if ! exist ("verbose"), verbose = 0; end