public class SMPSO extends AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>
| Constructor and Description |
|---|
SMPSO(DoubleProblem problem,
int swarmSize,
Archive<DoubleSolution> leaders,
MutationOperator<DoubleSolution> mutationOperator,
int maxIterations,
double r1Min,
double r1Max,
double r2Min,
double r2Max,
double c1Min,
double c1Max,
double c2Min,
double c2Max,
double weightMin,
double weightMax,
double changeVelocity1,
double changeVelocity2,
SolutionListEvaluator<DoubleSolution> evaluator)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected List<DoubleSolution> |
createInitialSwarm() |
protected List<DoubleSolution> |
evaluateSwarm(List<DoubleSolution> swarm) |
List<DoubleSolution> |
getResult() |
protected void |
initializeLeaders(List<DoubleSolution> swarm) |
protected void |
initializeParticlesMemory(List<DoubleSolution> swarm) |
protected void |
initializeVelocity(List<DoubleSolution> swarm) |
protected void |
initProgress() |
protected boolean |
isStoppingConditionReached() |
protected void |
perturbation(List<DoubleSolution> swarm) |
void |
run() |
protected DoubleSolution |
selectGlobalBest() |
protected void |
updateLeaders(List<DoubleSolution> swarm) |
protected void |
updateLeadersDensityEstimator() |
protected void |
updateParticlesMemory(List<DoubleSolution> swarm) |
protected void |
updatePosition(List<DoubleSolution> swarm) |
protected void |
updateProgress() |
protected void |
updateVelocity(List<DoubleSolution> swarm) |
public SMPSO(DoubleProblem problem, int swarmSize, Archive<DoubleSolution> leaders, MutationOperator<DoubleSolution> mutationOperator, int maxIterations, double r1Min, double r1Max, double r2Min, double r2Max, double c1Min, double c1Max, double c2Min, double c2Max, double weightMin, double weightMax, double changeVelocity1, double changeVelocity2, SolutionListEvaluator<DoubleSolution> evaluator)
public void run()
run in interface Runnablerun in interface Algorithm<List<DoubleSolution>>run in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected void updateLeadersDensityEstimator()
protected void initProgress()
initProgress in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected void updateProgress()
updateProgress in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected boolean isStoppingConditionReached()
isStoppingConditionReached in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected List<DoubleSolution> createInitialSwarm()
createInitialSwarm in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected List<DoubleSolution> evaluateSwarm(List<DoubleSolution> swarm)
evaluateSwarm in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected void initializeLeaders(List<DoubleSolution> swarm)
initializeLeaders in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected void initializeVelocity(List<DoubleSolution> swarm)
initializeVelocity in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected void initializeParticlesMemory(List<DoubleSolution> swarm)
initializeParticlesMemory in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected void updateVelocity(List<DoubleSolution> swarm)
updateVelocity in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected void updatePosition(List<DoubleSolution> swarm)
updatePosition in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected void perturbation(List<DoubleSolution> swarm)
perturbation in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected void updateLeaders(List<DoubleSolution> swarm)
updateLeaders in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected void updateParticlesMemory(List<DoubleSolution> swarm)
updateParticlesMemory in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>public List<DoubleSolution> getResult()
getResult in interface Algorithm<List<DoubleSolution>>getResult in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected DoubleSolution selectGlobalBest()
Copyright © 2015. All rights reserved.