00001 #ifndef SUNDANCEPROBLEM_H 00002 #define SUNDANCEPROBLEM_H 00003 00004 #include "SundanceDefs.h" 00005 00006 namespace Sundance 00007 { 00008 00009 using namespace TSF; 00010 using std::string; 00011 00012 using std::ostream; 00013 00014 00015 class SundanceProblem 00016 { 00017 public: 00018 SundanceProblem(){;} 00019 virtual ~SundanceProblem(){;} 00020 00021 virtual void main(int argc, void** argv) = 0 ; 00022 00023 virtual bool hasKnownSolution() const {return false;} 00024 00025 virtual double getErrorNorm() const {return 0.0;} 00026 00027 virtual double getTolerance() const {return 0.0;} 00028 00029 private: 00030 00031 }; 00032 00033 00034 00035 } 00036 #endif