Finding the 3 best tuners after the learning process
[satune.git] / src / Tuner / multituner.h
index 1e878eee0c2399a1686c1fb70b39a32a6680cccb..398eb84bb9b3fd3cc1337e1ae5d78bb536e293ae 100644 (file)
@@ -47,6 +47,7 @@ public:
        void tuneK();
        void tuneComp();
        void printData();
+       void findBestThreeTuners();
        CMEMALLOC;
 protected:
        long long evaluate(Problem *problem, TunerRecord *tuner);
@@ -55,7 +56,11 @@ protected:
        void mapProblemsToTuners(Vector<TunerRecord *> *tunerV);
        void improveTuners(Vector<TunerRecord *> *tunerV);
        TunerRecord *tune(TunerRecord *tuner);
-
+        inline long long min(long long num1, long long num2, long long num3){
+                return num1 < num2 && num1 < num3? num1:
+                        num2 < num3? num2 : num3;
+        }
+        
        Vector<TunerRecord *> allTuners;
        Vector<Problem *> problems;
        Vector<TunerRecord *> tuners;