00001 #ifndef NLPSOLVER 00002 #define NLPSOLVER 00003 00004 #include "IotrRefCount.hh" 00005 #include "IotrHandle.hh" 00006 #include <iostream> 00007 00008 class Nlp; 00009 class NlpIterate; 00010 class NlpResiduals; 00011 00015 class NlpSolver : public IotrRefCount { 00016 public: 00017 virtual int solve( Nlp & nlp, NlpIterate & vars, 00018 NlpResiduals & resids ) = 0; 00019 virtual void writeConfiguration( std::ostream & out, 00020 char * indent = 0 ) = 0; 00021 }; 00022 00023 typedef Handle<NlpSolver> NlpSolverHandle; 00024 #endif