Package org.opt4j.optimizer.mopso
Class VelocityTerm
- java.lang.Object
-
- org.opt4j.optimizer.mopso.VelocityTerm
-
- All Implemented Interfaces:
Term
public class VelocityTerm extends Object implements Term
TheVelocityTerm
is used to determine the new velocity of aParticle
.
-
-
Constructor Summary
Constructors Constructor Description VelocityTerm(Rand random)
Constructs aVelocityTerm
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calculate(double... values)
Calculates the result of thisTerm
.void
randomize()
Randomizes the constants of the term.
-
-
-
Constructor Detail
-
VelocityTerm
public VelocityTerm(Rand random)
Constructs aVelocityTerm
.- Parameters:
random
- the random number generator
-
-