00001 #ifndef __AbsFLineSearch_H__ 00002 #define __AbsFLineSearch_H__ 00003 00004 00032 #include "FloatVector.hpp" 00033 #include "AbsFObjectiveFn.hpp" 00034 00035 class AbsFLineSearch 00036 { 00037 protected: 00038 00039 int maxIter; 00040 double eps; 00041 00042 public: 00043 AbsFLineSearch(int maxIterations, double epsilon=1.0e-4) 00044 {maxIter=maxIterations; eps=epsilon;} 00045 virtual ~AbsFLineSearch(){} 00046 00047 00048 virtual double find(FloatVector* x, AbsFObjectiveFn* fn, FloatVector* d)=0; 00049 }; 00050 00051 #endif 00052