Class DefaultPositionUpdate

java.lang.Object
org.uma.jmetal.component.catalogue.pso.positionupdate.impl.DefaultPositionUpdate
All Implemented Interfaces:
PositionUpdate

public class DefaultPositionUpdate extends Object implements PositionUpdate
Author:
Antonio J. Nebro
  • 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

      public List<DoubleSolution> update(List<DoubleSolution> swarm, double[][] speed)
      Specified by:
      update in interface PositionUpdate
    • getVelocityChangeWhenLowerLimitIsReached

      public double getVelocityChangeWhenLowerLimitIsReached()
      Getter of velocityChangeWhenLowerLimitIsReached variable
    • getVelocityChangeWhenUpperLimitIsReached

      public double getVelocityChangeWhenUpperLimitIsReached()
      Getter of velocityChangeWhenUpperLimitIsReached variable