public class SMPSO extends AbstractPSOAlgorithm
References:
archive, dominanceComparator, leaderComparator, leaders, localBestParticles, mutation, particles, velocities
initialized, numberOfEvaluations, problem, terminated
Constructor and Description |
---|
SMPSO(Problem problem)
Constructs a new SMPSO instance with default settings.
|
SMPSO(Problem problem,
int swarmSize,
int leaderSize,
double mutationProbability,
double distributionIndex)
Constructs a new SMPSO instance.
|
Modifier and Type | Method and Description |
---|---|
protected double |
constrictionCoefficient(double c1,
double c2)
Returns the velocity constriction coefficient.
|
protected void |
mutate(int i)
Applies the mutation operator to an individual particle.
|
protected void |
updateVelocity(int i)
Update the speed of an individual particle.
|
copyToList, getArchive, getLeaders, getLeaderSize, getLocalBestParticles, getMutation, getParticles, getResult, getSwarmSize, initialize, iterate, loadState, mutate, saveState, selectLeader, setArchive, setLeaderSize, setSwarmSize, updateLocalBest, updatePosition, updatePositions, updateVelocities
assertNotInitialized, evaluate, evaluateAll, evaluateAll, getNumberOfEvaluations, getProblem, isInitialized, isTerminated, step, terminate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyConfiguration, getConfiguration
checkTypeSafety, getState, setState, writeTypeSafety
public SMPSO(Problem problem)
problem
- the problempublic SMPSO(Problem problem, int swarmSize, int leaderSize, double mutationProbability, double distributionIndex)
protected void updateVelocity(int i)
AbstractPSOAlgorithm
updateVelocity
in class AbstractPSOAlgorithm
i
- the index of the particleprotected double constrictionCoefficient(double c1, double c2)
c1
- the velocity coefficient for the local bestc2
- the velocity coefficient for the leaderprotected void mutate(int i)
AbstractPSOAlgorithm
mutate
in class AbstractPSOAlgorithm
i
- the index of the particleCopyright 2009-2023 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!