New default parameters for TS (algorithm tuning)
This commit is contained in:
+2
-2
@@ -31,7 +31,7 @@ unsigned tabuLength = 0;
|
|||||||
// Domyslny stan dywersyfikacji
|
// Domyslny stan dywersyfikacji
|
||||||
bool tabuDiversification = true;
|
bool tabuDiversification = true;
|
||||||
// Domyslne kryterium dywersyfikacji, liczba iteracji bez poprawy
|
// Domyslne kryterium dywersyfikacji, liczba iteracji bez poprawy
|
||||||
int tabuIterationsToRestart = 10000;
|
int tabuIterationsToRestart = 5000;
|
||||||
// Domyslny czas zatrzymania algorytmu tabu search [s]
|
// Domyslny czas zatrzymania algorytmu tabu search [s]
|
||||||
unsigned tabuStopTime = 60;
|
unsigned tabuStopTime = 60;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ unsigned autoTabuLength(Graph &graph)
|
|||||||
{
|
{
|
||||||
unsigned computedTabuLength;
|
unsigned computedTabuLength;
|
||||||
|
|
||||||
computedTabuLength = (2 * graph.getVertexNumber() / 10) * 10;
|
computedTabuLength = 10 + (graph.getVertexNumber() / 10) * 10;
|
||||||
if(computedTabuLength == 0)
|
if(computedTabuLength == 0)
|
||||||
computedTabuLength = 10;
|
computedTabuLength = 10;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user