OptFDNIPS.h
00001 #ifndef OptFDNIPS_h
00002 #define OptFDNIPS_h
00003
00004
00005 #ifndef OptNIPSLike_h
00006 #include "OptNIPSLike.h"
00007 #endif
00008
00009 namespace OPTPP {
00010
00018 class OptFDNIPS: public OptNIPSLike {
00019 private:
00020 NLP1* nlp;
00021
00022 protected:
00023 NLP1* nlprob() const {return nlp;}
00024
00025 public:
00032 OptFDNIPS(): OptNIPSLike(), nlp(0)
00033 {strcpy(method,"Nonlinear Interior-Point Method");}
00037 OptFDNIPS(NLP1* p): OptNIPSLike(p->getDim()), nlp(p)
00038 {strcpy(method,"Nonlinear Interior-Point Method");}
00043 OptFDNIPS(NLP1* p, UPDATEFCN u): OptNIPSLike(p->getDim(),u), nlp(p)
00044 {strcpy(method,"Nonlinear Interior-Point Method"); }
00049 OptFDNIPS(NLP1* p, TOLS t): OptNIPSLike(p->getDim(),t), nlp(p)
00050 {strcpy(method,"Nonlinear Interior-Point Method"); }
00051
00053 virtual ~OptFDNIPS() {;}
00054
00056 virtual int checkDeriv();
00058 virtual NEWMAT::SymmetricMatrix updateH(NEWMAT::SymmetricMatrix& H, int k);
00059
00060 };
00061
00062 }
00063 #endif