Quellcode durchsuchen

New default parameters for TS (algorithm tuning)

Jan Potocki vor 5 Jahren
Ursprung
Commit
3c900e57a3
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      pea2plus.cpp

+ 2
- 2
pea2plus.cpp Datei anzeigen

31
 // Domyslny stan dywersyfikacji
31
 // Domyslny stan dywersyfikacji
32
 bool tabuDiversification = true;
32
 bool tabuDiversification = true;
33
 // Domyslne kryterium dywersyfikacji, liczba iteracji bez poprawy
33
 // Domyslne kryterium dywersyfikacji, liczba iteracji bez poprawy
34
-int tabuIterationsToRestart = 10000;
34
+int tabuIterationsToRestart = 5000;
35
 // Domyslny czas zatrzymania algorytmu tabu search [s]
35
 // Domyslny czas zatrzymania algorytmu tabu search [s]
36
 unsigned tabuStopTime = 60;
36
 unsigned tabuStopTime = 60;
37
 
37
 
206
 {
206
 {
207
     unsigned computedTabuLength;
207
     unsigned computedTabuLength;
208
 
208
 
209
-    computedTabuLength = (2 * graph.getVertexNumber() / 10) * 10;
209
+    computedTabuLength = 10 + (graph.getVertexNumber() / 10) * 10;
210
     if(computedTabuLength == 0)
210
     if(computedTabuLength == 0)
211
         computedTabuLength = 10;
211
         computedTabuLength = 10;
212
 
212
 

Laden…
Abbrechen
Speichern