OptTestSuite.h 809 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. ///
  12. /// class that implements a test suite for the optimization lib
  13. ///
  14. class OptTestSuite
  15. {
  16. public:
  17. ///
  18. /// Default constructor
  19. ///
  20. OptTestSuite(){};
  21. ///
  22. /// Default destructor
  23. ///
  24. ~OptTestSuite(){};
  25. ///
  26. /// runs all implemented tests, including output
  27. ///
  28. ///
  29. void runAllTests();
  30. private:
  31. /// run simple opt test grid
  32. void runSimpleOptTestGrid();
  33. /// instert optimizers
  34. void insertOptsInGrid(SimpleOptTestGrid &testGrid, vector<Optimizer*> &opts);
  35. /// insert opt probs
  36. void insertOptProbsInGrid(SimpleOptTestGrid &testGrid, vector<CostFunction*> &cfns);
  37. };
  38. #endif // _OPTTESTSUITE_H_