#include <linesearch.h>
Public Types | |
| typedef NT::number | numT | 
| typedef NT::vect | vect | 
| typedef NormFunction<dims,NT> | nf | 
| typedef NT::vf | vf | 
Public Methods | |
| LineSearch (vf &fu, bool own=false) | |
| ~LineSearch () | |
| void | operator() (const vect &uold, const numT fold, vect &grad, vect &p, vect &u, numT &f, numT maxstep) | 
| bool | converged (void) | 
| nf& | norm (void) | 
| LineSearch (const LineSearch &ls) | |
| PRIVATE_ASSIGN (LineSearch) | |
Static Public Attributes | |
| const number | alfa = 1e-4 | 
| const number | tolerance = 1e-7 | 
Private Attributes | |
| vf* | func | 
| nf | fmin | 
| bool | tooclose | 
| bool | owned | 
Definition at line 33 of file linesearch.h.
      
  | 
  
| 
 Returns the internal NormFunction, so one can use this to calculate it without having to define an auxillary function Definition at line 64 of file linesearch.h.  | 
  
      
  | 
  
| 
 implements a line searching and backtracking algoritm for a real function of the <dims> variable (the norm, actually), as described in NRC. 
 Definition at line 87 of file linesearch.h.  | 
  
      
  | 
  
| 
 Fraction of step to take at least Definition at line 80 of file linesearch.h.  | 
  
      
  | 
  
| 
 Tolerance to see if the new point is too close. Usually signals convergence Definition at line 82 of file linesearch.h.  | 
  
More Info? Michael Peeters. Also, check our research website: www.alna.vub.ac.be
Last update: June 2002.