|
@@ -203,7 +203,8 @@ public class PsoAlgorithm extends AlgorithmFrameworkFlex{
|
|
|
* @param 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() < S(x<sub>g,i,j</sub>(t + 1))<b>) ?</b> 1 <b>:</b> 0<br>
|