public class NeuralPSOWorker extends java.lang.Object implements EngineTask
| Constructor and Description |
|---|
NeuralPSOWorker(NeuralPSO neuralPSO,
int particleIndex,
boolean init)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Update the particle velocity, position and personal best.
|
public NeuralPSOWorker(NeuralPSO neuralPSO, int particleIndex, boolean init)
neuralPSO - the training algorithmparticleIndex - the index of the particle in the swarminit - true for an initialisation iterationpublic final void run()
run in interface EngineTask