|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jswarm_pso.ParticleUpdate
net.sourceforge.jswarm_pso.ParticleUpdateSimple
public class ParticleUpdateSimple
Particle update strategy Every Swarm.evolve() itereation the following methods are called - begin(Swarm) : Once at the begining of each iteration - update(Swarm,Particle) : Once for each particle - end(Swarm) : Once at the end of each iteration
| Field Summary | |
|---|---|
(package private) double[] |
rglobal
Random vector for global update |
(package private) double[] |
rlocal
Random vector for local update |
| Constructor Summary | |
|---|---|
ParticleUpdateSimple(Particle particle)
Constructor |
|
| Method Summary | |
|---|---|
void |
begin(Swarm swarm)
This method is called at the begining of each iteration Initialize random vectors use for local and global updates (rlocal[] and rother[]) |
void |
end(Swarm swarm)
This method is called at the end of each iteration |
void |
update(Swarm swarm,
Particle particle)
Update particle's velocity and position |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
double[] rlocal
double[] rglobal
| Constructor Detail |
|---|
public ParticleUpdateSimple(Particle particle)
particle - : Sample of particles that will be updated later| Method Detail |
|---|
public void begin(Swarm swarm)
begin in class ParticleUpdate
public void update(Swarm swarm,
Particle particle)
update in class ParticleUpdatepublic void end(Swarm swarm)
end in class ParticleUpdate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||