00001 00002 #ifndef QMCValueStepLength_H 00003 #define QMCValueStepLength_H 00004 00005 #include <iostream> 00006 00007 #include "IeeeMath.h" 00008 #include "QMCLineSearchStepLengthSelectionAlgorithm.h" 00009 00010 using namespace std; 00011 00012 class QMCValueStepLength : 00013 public QMCLineSearchStepLengthSelectionAlgorithm 00014 { 00015 public: 00016 QMCValueStepLength(double _value): value(_value) 00017 { 00018 00019 } 00020 00021 double stepLength(QMCObjectiveFunction *function, 00022 Array1D<double> & unused1, 00023 Array1D<double> & unused2, 00024 Array1D<double> & unused3, 00025 Array2D<double> & unused4, 00026 double functionValue) 00027 { 00028 return value; 00029 } 00030 00031 private: 00032 const double value; 00033 }; 00034 00035 #endif