OptQNIPS.h

00001 #ifndef OptQNIPS_h
00002 #define OptQNIPS_h
00003 
00004 
00005 #ifndef OptNIPSLike_h
00006 #include "OptNIPSLike.h"
00007 #endif
00008 
00009 namespace OPTPP {
00010 
00018 class OptQNIPS: public OptNIPSLike {
00019  private:
00020   NLP1* nlp;  
00021 
00022  protected:
00023   NLP1* nlprob() const {return nlp;}
00024 
00025  public:
00032   OptQNIPS(): OptNIPSLike(),  nlp(0)
00033     {strcpy(method,"Nonlinear Interior-Point Method");}
00034 
00038   OptQNIPS(NLP1* p): OptNIPSLike(p->getDim()),  nlp(p)
00039     {strcpy(method,"Nonlinear Interior-Point Method");}
00040 
00045   OptQNIPS(NLP1* p, UPDATEFCN u): OptNIPSLike(p->getDim(),u), nlp(p) 
00046     {strcpy(method,"Nonlinear Interior-Point Method"); }
00047 
00052   OptQNIPS(NLP1* p, TOLS t): OptNIPSLike(p->getDim(),t),  nlp(p) 
00053     {strcpy(method,"Nonlinear Interior-Point Method"); }
00054 
00058   virtual ~OptQNIPS() {;}
00059 
00061   virtual int checkDeriv();
00063   virtual NEWMAT::SymmetricMatrix updateH(NEWMAT::SymmetricMatrix& H, int k);
00064 
00065 };
00066 } // namespace OPTPP
00067 #endif
Generated on Mon Jan 24 12:04:37 2011 for FASTlib by  doxygen 1.6.3