Class DefaultVelocityUpdate
java.lang.Object
org.uma.jmetal.component.catalogue.pso.velocityupdate.impl.DefaultVelocityUpdate
- All Implemented Interfaces:
VelocityUpdate
Method implementing the standard velocity PSO update strategy
- Author:
- Antonio J. Nebro
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected doubleprotected doubleprotected JMetalRandom -
Constructor Summary
ConstructorsConstructorDescriptionDefaultVelocityUpdate(double c1Min, double c1Max, double c2Min, double c2Max) 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
-
DefaultVelocityUpdate
public DefaultVelocityUpdate(double c1Min, double c1Max, double c2Min, double c2Max) 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
-