Rolf Egert %!s(int64=5) %!d(string=hai) anos
pai
achega
8e55431678
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/exampleAlgorithms/PsoAlgorithm.java

+ 2 - 1
src/exampleAlgorithms/PsoAlgorithm.java

@@ -203,7 +203,8 @@ public class PsoAlgorithm extends AlgorithmFrameworkFlex{
 	 * @param index
 	 * @param index
 	 */
 	 */
 	private void mutation(Particle particle, int index) {
 	private void mutation(Particle particle, int index) {
-		if(Random.nextDouble() < limit) particle.xGenotype.set(index, -particle.xGenotype.get(index));
+		//if(Random.nextDouble() < limit) 
+			particle.xGenotype.set(index, -particle.xGenotype.get(index));
 	}
 	}
 	/**
 	/**
 	 * Eq. (8):x<sub>p,i,j</sub>(t + 1) = <b>(</b>rand() &lt; S(x<sub>g,i,j</sub>(t + 1))<b>) ?</b> 1 <b>:</b> 0<br>
 	 * Eq. (8):x<sub>p,i,j</sub>(t + 1) = <b>(</b>rand() &lt; S(x<sub>g,i,j</sub>(t + 1))<b>) ?</b> 1 <b>:</b> 0<br>