dataTest.h 510 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <bitset>
  3. #include <vector>
  4. #include <qstring.h>
  5. class dataTest
  6. {
  7. private:
  8. /* struct for storing a calculated solution*/
  9. struct solution {
  10. public:
  11. solution(int n, double objectiveFunctionValue = 0.0): bits(n), objectiveFunctionValue(objectiveFunctionValue){}
  12. std::vector<bool> bits;
  13. double objectiveFunctionValue;
  14. QString toQString();
  15. };
  16. public:
  17. std::vector<solution> entrys = std::vector<solution>();
  18. /* Contructor of this test class*/
  19. dataTest();
  20. ~dataTest();
  21. };