00001 #ifndef OptFDNewton_h 00002 #define OptFDNewton_h 00003 00004 /*--------------------------------------------------------------------- 00005 Copyright (c) 2001, Sandia Corporation 00006 J.C. Meza, Sandia National Laboratories, meza@ca.sandia.gov 00007 ---------------------------------------------------------------------- */ 00008 00009 #ifndef OptNewtonLike_h 00010 #include "OptNewtonLike.h" 00011 #endif 00012 00013 namespace OPTPP { 00014 00026 class OptFDNewton: public OptNewton1Deriv { 00027 public: 00028 00035 OptFDNewton(){strcpy(method,"Finite-Difference Newton");} 00039 OptFDNewton(NLP1* p): OptNewton1Deriv(p) 00040 {strcpy(method,"Finite-Difference Newton");} 00045 OptFDNewton(NLP1* p, UPDATEFCN u): OptNewton1Deriv(p, u) 00046 {strcpy(method,"Finite-Difference Newton");} 00051 OptFDNewton(NLP1* p, TOLS t): OptNewton1Deriv(p,t) 00052 {strcpy(method,"Finite-Difference Newton");} 00053 00057 virtual ~OptFDNewton(){} 00058 00060 NEWMAT::SymmetricMatrix updateH(NEWMAT::SymmetricMatrix& H, int k); 00061 00063 int checkDeriv(); 00064 }; 00065 00066 } // namespace OPTPP 00067 00068 #endif