Browse Source

Merge remote-tracking branch 'origin/updateInProgress' into updateInProgress

Tom 5 years ago
parent
commit
36544d7083
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/exampleAlgorithms/PSOAlgorithm.java

+ 3 - 3
src/exampleAlgorithms/PSOAlgorithm.java

@@ -62,8 +62,8 @@ import ui.model.DecoratedState;
 
 public class PSOAlgorithm implements AddOn {
 	//Parameter for Algo with default Values:
-	private int swarmSize = 20; 
-	private int maxIterations = 100; 
+	private int swarmSize = 150; 
+	private int maxIterations = 200; 
 	private double limit = 0.01; 
 	private double dependency = 2.07; 
 	private int rounds = 20;
@@ -698,7 +698,7 @@ public class PSOAlgorithm implements AddOn {
 	 * @return
 	 */
 	private double clamp(double value) {
-		return Math.max(-4.0, Math.min(4.0, value));
+		return Math.max(-8.0, Math.min(8.0, value));
 	}
 	/**
 	 *