TestDownhillSimplex.h 941 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _TESTDOWNHILLSIMPLEX_H
  2. #define _TESTDOWNHILLSIMPLEX_H
  3. #include <cppunit/extensions/HelperMacros.h>
  4. #include "core/optimization/blackbox/DownhillSimplexOptimizer.h"
  5. /**
  6. * @brief CppUnit-Testcase for Downhill-Simplex Optimization
  7. * @author Alexander Freytag
  8. * @date 27-09-2012
  9. */
  10. class TestDownhillSimplex : public CppUnit::TestFixture {
  11. CPPUNIT_TEST_SUITE( TestDownhillSimplex );
  12. CPPUNIT_TEST(testDHS_1Dim);
  13. CPPUNIT_TEST(testDHS_2Dim);
  14. CPPUNIT_TEST_SUITE_END();
  15. private:
  16. public:
  17. void setUp();
  18. void tearDown();
  19. /**
  20. * @brief Test of 1D optimziation with a simple convex cost function
  21. * @date 27-09-2012
  22. * @author Alexander Freytag
  23. */
  24. void testDHS_1Dim();
  25. /**
  26. * @brief Test of 2D optimziation with a simple convex cost function
  27. * @date 27-09-2012
  28. * @author Alexander Freytag
  29. */
  30. void testDHS_2Dim();
  31. };
  32. #endif // _TESTFASTHIK_H