Class LinearDecreasingStrategy
java.lang.Object
org.uma.jmetal.component.catalogue.pso.inertiaweightcomputingstrategy.impl.LinearDecreasingStrategy
- All Implemented Interfaces:
InertiaWeightRangeBasedComputingStrategy,InertiaWeightComputingStrategy
public class LinearDecreasingStrategy
extends Object
implements InertiaWeightRangeBasedComputingStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final intprotected final doubleprotected final doubleprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionLinearDecreasingStrategy(double minimumWeight, double maximumWeight, int maximumNumberOfIterations, int swamSize) -
Method Summary
-
Field Details
-
minimumWeight
protected final double minimumWeight -
maximumWeight
protected final double maximumWeight -
maximumNumberOfIterations
protected final int maximumNumberOfIterations -
computeCounter
protected int computeCounter -
swamSize
protected final int swamSize
-
-
Constructor Details
-
LinearDecreasingStrategy
public LinearDecreasingStrategy(double minimumWeight, double maximumWeight, int maximumNumberOfIterations, int swamSize)
-
-
Method Details
-
compute
public double compute()- Specified by:
computein interfaceInertiaWeightComputingStrategy- Specified by:
computein interfaceInertiaWeightRangeBasedComputingStrategy
-
getMinimumWeight
public double getMinimumWeight()- Specified by:
getMinimumWeightin interfaceInertiaWeightRangeBasedComputingStrategy
-
getMaximumWeight
public double getMaximumWeight()- Specified by:
getMaximumWeightin interfaceInertiaWeightRangeBasedComputingStrategy
-
getMaximumNumberOfIterations
public int getMaximumNumberOfIterations() -
getComputeCounter
public int getComputeCounter()
-