comparison main/optim/inst/__bracket_min.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 6234c457a66d
children f82660cf7dee
comparison
equal deleted inserted replaced
9929:df50d0ae107f 9930:d30cfca46e8a
1 ## Copyright (C) 2002 Etienne Grossmann <etienne@isr.ist.utl.pt>
2 ## Copyright (C) 2009 Levente Torok <TorokLev@gmail.com>
3 ##
4 ## This program is free software; you can redistribute it and/or modify it under
5 ## the terms of the GNU General Public License as published by the Free Software
6 ## Foundation; either version 3 of the License, or (at your option) any later
7 ## version.
8 ##
9 ## This program is distributed in the hope that it will be useful, but WITHOUT
10 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
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/>.
16
1 ## [a, b, ga, gb, nev] = semi_bracket (f, dx, a, narg, args) 17 ## [a, b, ga, gb, nev] = semi_bracket (f, dx, a, narg, args)
2 ## 18 ##
3 ## Find an interval containing a local minimum of the function 19 ## Find an interval containing a local minimum of the function
4 ## g : h in reals ---> f (x+h*dx) where x = args{narg} 20 ## g : h in reals ---> f (x+h*dx) where x = args{narg}
5 ## 21 ##
6 ## a < b. 22 ## a < b.
7 ## nev is the number of function evaluations 23 ## nev is the number of function evaluations
8
9 ## Author : Etienne Grossmann <etienne@isr.ist.utl.pt>
10 ## Modified by: Levente Torok <TorokLev@gmail.com>
11 ## This software is distributed under the terms of the GPL
12 24
13 function [a, b, ga, gb, n] = __bracket_min (f, dx, narg, args) 25 function [a, b, ga, gb, n] = __bracket_min (f, dx, narg, args)
14 26
15 [a,b, ga,gb, n] = __semi_bracket (f, dx, 0, narg, args); 27 [a,b, ga,gb, n] = __semi_bracket (f, dx, 0, narg, args);
16 28