From eeeeb242479c1ce5869822596fe3c648d13e7818 Mon Sep 17 00:00:00 2001 From: Jochen Keil Date: Fri, 2 Jul 2010 20:41:15 +0200 Subject: [PATCH] this should be necessary if pheromone trail were properly initialized --- src/aco/strategy/ACOStrategy.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/aco/strategy/ACOStrategy.java b/src/aco/strategy/ACOStrategy.java index 4993a90..7dd76cd 100644 --- a/src/aco/strategy/ACOStrategy.java +++ b/src/aco/strategy/ACOStrategy.java @@ -31,9 +31,7 @@ public abstract class ACOStrategy { protected void chooseBestNext(Ant ant, int Step) { int nc = 0; - /* this seems to be necessary because some choice information - * tends to become zero after a while */ - double v = -1.0; + double v = 0.0; int CurrentCity = ant.getTour(Step - 1); for (int j = 0; j < acom.getNumOfCities(); j++) { -- 2.11.4.GIT