Class SPS2011VelocityUpdate
java.lang.Object
org.uma.jmetal.component.catalogue.pso.velocityupdate.impl.SPS2011VelocityUpdate
- All Implemented Interfaces:
VelocityUpdate
Method implementing a velocity update strategy proposed in Standard PSO 2011.
- Author:
- Antonio J. Nebro
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected doubleprotected doubleprotected JMetalRandom -
Constructor Summary
ConstructorsConstructorDescriptionSPS2011VelocityUpdate(double c1Min, double c1Max, double c2Min, double c2Max, DoubleProblem problem) Constructor -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]update(List<DoubleSolution> swarm, double[][] speed, DoubleSolution[] localBest, BoundedArchive<DoubleSolution> leaders, GlobalBestSelection globalBestSelection, InertiaWeightComputingStrategy inertiaWeightComputingStrategy)
-
Field Details
-
c1Max
protected double c1Max -
c1Min
protected double c1Min -
c2Max
protected double c2Max -
c2Min
protected double c2Min -
randomGenerator
-
-
Constructor Details
-
SPS2011VelocityUpdate
public SPS2011VelocityUpdate(double c1Min, double c1Max, double c2Min, double c2Max, DoubleProblem problem) Constructor- Parameters:
c1Min- : Min value for c1.c1Max- : Max value for c1.c2Min- : Min value for c2.c2Max- : Max value for c2.
-
-
Method Details
-
update
public double[][] update(List<DoubleSolution> swarm, double[][] speed, DoubleSolution[] localBest, BoundedArchive<DoubleSolution> leaders, GlobalBestSelection globalBestSelection, InertiaWeightComputingStrategy inertiaWeightComputingStrategy) - Specified by:
updatein interfaceVelocityUpdate
-