OptTestSuite.h 938 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /// @file: optimization/OptTestSuite.h
  2. /// @author: Matthias Wacker
  3. /// @date: 2009-10-05
  4. ///
  5. ///
  6. ///
  7. ///
  8. #ifndef _OPTTESTSUITE_H_
  9. #define _OPTTESTSUITE_H_
  10. #include "SimpleOptTestGrid.h"
  11. namespace OPTIMIZATION
  12. {
  13. ///
  14. /// class that implements a test suite for the optimization lib
  15. ///
  16. class OptTestSuite
  17. {
  18. public:
  19. ///
  20. /// Default constructor
  21. ///
  22. OptTestSuite(){};
  23. ///
  24. /// Default destructor
  25. ///
  26. ~OptTestSuite(){};
  27. ///
  28. /// runs all implemented tests, including output
  29. ///
  30. ///
  31. void runAllTests();
  32. private:
  33. /// run simple opt test grid
  34. void runSimpleOptTestGrid();
  35. /// instert optimizers
  36. void insertOptsInGrid(SimpleOptTestGrid &testGrid, std::vector<Optimizer*> &opts);
  37. /// insert opt probs
  38. void insertOptProbsInGrid(SimpleOptTestGrid &testGrid, std::vector<CostFunction*> &cfns);
  39. }; //class
  40. }//namespace
  41. #endif // _OPTTESTSUITE_H_