Class DefaultPositionUpdate
java.lang.Object
org.uma.jmetal.component.catalogue.pso.positionupdate.impl.DefaultPositionUpdate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected double -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPositionUpdate(double velocityChangeWhenLowerLimitIsReached, double velocityChangeWhenUpperLimitIsReached, List<Bounds<Double>> positionBounds) Constructor -
Method Summary
Modifier and TypeMethodDescriptiondoubleGetter of velocityChangeWhenLowerLimitIsReached variabledoubleGetter of velocityChangeWhenUpperLimitIsReached variableupdate(List<DoubleSolution> swarm, double[][] speed)
-
Field Details
-
velocityChangeWhenLowerLimitIsReached
protected double velocityChangeWhenLowerLimitIsReached -
velocityChangeWhenUpperLimitIsReached
protected double velocityChangeWhenUpperLimitIsReached
-
-
Constructor Details
-
DefaultPositionUpdate
public DefaultPositionUpdate(double velocityChangeWhenLowerLimitIsReached, double velocityChangeWhenUpperLimitIsReached, List<Bounds<Double>> positionBounds) Constructor- Parameters:
velocityChangeWhenLowerLimitIsReached- : Double value which represent the lower position limit to reach.velocityChangeWhenUpperLimitIsReached- : Double value which represent the upper position limit to reach.positionBounds- : List of positions.
-
-
Method Details
-
update
- Specified by:
updatein interfacePositionUpdate
-
getVelocityChangeWhenLowerLimitIsReached
public double getVelocityChangeWhenLowerLimitIsReached()Getter of velocityChangeWhenLowerLimitIsReached variable -
getVelocityChangeWhenUpperLimitIsReached
public double getVelocityChangeWhenUpperLimitIsReached()Getter of velocityChangeWhenUpperLimitIsReached variable
-