00001 #ifndef OPT_DIRECT 00002 #define OPT_DIRECT 00003 00004 //------------------------------------------------------------------------ 00005 // Direct -- A Derived Class from Optimize 00006 //------------------------------------------------------------------------ 00007 00008 #include "Opt.h" 00009 00010 namespace OPTPP{ 00011 00012 class OptDirect: public OptimizeClass { 00013 00014 public: 00015 OptDirect(){} 00016 OptDirect(int n): OptimizeClass(n){} 00017 OptDirect(int n, TOLS t): OptimizeClass(n,t){} 00018 virtual ~OptDirect(){} 00019 00020 /* these are virtual in Optimizeclass 00021 00022 virtual void acceptStep(int, int) = 0; 00023 virtual int checkConvg() {return 0;} 00024 virtual void optimize() {} 00025 virtual void readOptInput() {} 00026 virtual void printStatus(char *) {} 00027 virtual void updateModel(int, int, NEWMAT::ColumnVector) = 0; 00028 */ 00029 }; 00030 00031 } // namespace OPTPP 00032 #endif