Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkLBFGSOptimizer.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkLBFGSOptimizer.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/03/07 00:20:10 $
00007   Version:   $Revision: 1.16 $
00008 
00009   Copyright (c) 2002 Insight Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkLBFGSOptimizer_h
00018 #define __itkLBFGSOptimizer_h
00019 
00020 #include "itkSingleValuedNonLinearVnlOptimizer.h"
00021 #include "vnl/algo/vnl_lbfgs.h"
00022 
00023 namespace itk
00024 {
00025   
00031 class ITK_EXPORT LBFGSOptimizer : 
00032     public SingleValuedNonLinearVnlOptimizer
00033 {
00034 public:
00036   typedef LBFGSOptimizer                     Self;
00037   typedef SingleValuedNonLinearVnlOptimizer   Superclass;
00038   typedef SmartPointer<Self>                  Pointer;
00039   typedef SmartPointer<const Self>            ConstPointer;
00040   
00042   itkNewMacro(Self);
00043 
00045   itkTypeMacro( LBFGSOptimizer, SingleValuedNonLinearVnlOptimizer );
00046 
00048   typedef   vnl_vector<double>     InternalParametersType;
00049 
00051   typedef   vnl_lbfgs             InternalOptimizerType;
00052 
00054   vnl_lbfgs * GetOptimizer(void);
00055 
00057   void StartOptimization( void );
00058 
00060   virtual void SetCostFunction( SingleValuedCostFunction * costFunction );
00061 
00062 protected:
00063   LBFGSOptimizer();
00064   virtual ~LBFGSOptimizer();
00065 
00066   typedef Superclass::CostFunctionAdaptorType   CostFunctionAdaptorType;
00067 
00068 private:
00069   LBFGSOptimizer(const Self&); //purposely not implemented
00070   void operator=(const Self&); //purposely not implemented
00071   
00072   bool                          m_OptimizerInitialized;
00073   InternalOptimizerType       * m_VnlOptimizer;
00074 
00075 };
00076 
00077 } // end namespace itk
00078 
00079 
00080 
00081 #endif
00082 
00083 
00084 

Generated at Wed Mar 12 01:13:04 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000