public class OMOPSO extends AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>
| Constructor and Description |
|---|
OMOPSO(DoubleProblem problem,
SolutionListEvaluator<DoubleSolution> evaluator,
int swarmSize,
int maxIterations,
int archiveSize,
UniformMutation uniformMutation,
NonUniformMutation nonUniformMutation)
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)
Apply a mutation operator to all particles in the swarm (perturbation)
|
void |
run() |
protected void |
tearDown() |
protected void |
updateLeaders(List<DoubleSolution> swarm) |
protected void |
updateParticlesMemory(List<DoubleSolution> swarm) |
protected void |
updatePosition(List<DoubleSolution> swarm)
Update the position of each particle
|
protected void |
updateProgress() |
protected void |
updateVelocity(List<DoubleSolution> swarm) |
public OMOPSO(DoubleProblem problem, SolutionListEvaluator<DoubleSolution> evaluator, int swarmSize, int maxIterations, int archiveSize, UniformMutation uniformMutation, NonUniformMutation nonUniformMutation)
public void run()
run in interface Runnablerun in interface Algorithm<List<DoubleSolution>>run 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>>public List<DoubleSolution> getResult()
getResult in interface Algorithm<List<DoubleSolution>>getResult in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected void initializeLeaders(List<DoubleSolution> swarm)
initializeLeaders 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 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 void updateParticlesMemory(List<DoubleSolution> swarm)
updateParticlesMemory in class AbstractParticleSwarmOptimization<DoubleSolution,List<DoubleSolution>>protected void initializeVelocity(List<DoubleSolution> swarm)
initializeVelocity 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 tearDown()
Copyright © 2015. All rights reserved.