|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlio.search.LiOSearch
lio.search.pso.PSO
public class PSO
This class implements the frame for different Particle Swarm Optimization algorithms.
| Field Summary | |
|---|---|
protected SwarmGenerator |
generator
Swarm generator |
protected Neighbourhood |
neighbourhood
Neighbourhood |
protected int |
numParticles
Number of particles |
protected Particle[] |
swarm
Swarm of particles |
| Fields inherited from class lio.search.LiOSearch |
|---|
listenerList, searchOutput, stopCondition, stopFlag |
| Constructor Summary | |
|---|---|
PSO()
|
|
| Method Summary | |
|---|---|
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object which holds the name and all parameters that describe the resource. |
SwarmGenerator |
getGenerator()
|
Neighbourhood |
getNeighbourhood()
|
int |
getNumParticles()
|
static void |
main(java.lang.String[] args)
|
void |
run()
Main cycle |
void |
setGenerator(SwarmGenerator generator)
|
void |
setNeighbourhood(Neighbourhood neighbourhood)
|
void |
setNumParticles(int particles)
|
boolean |
worksWith(LiOTask task)
Allows knowing if the specified algorithm is able to process the task. |
| Methods inherited from class lio.search.LiOSearch |
|---|
addLiOEventListener, build, cleanExecution, execute, fireFinishEvent, getSearchOutput, getStopCondition, initialize, initialize, loadSearchOutput, loadStatistics, loadStopCondition, removeLiOEventListener, setOptions, setSearchOutput, setStopCondition, setTask, showOptions, stopCondition, stopSearching, updateTaskDependentResources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Particle[] swarm
protected SwarmGenerator generator
protected Neighbourhood neighbourhood
protected int numParticles
| Constructor Detail |
|---|
public PSO()
| Method Detail |
|---|
public void run()
public LiOResourceDefinition getDefinition()
public boolean worksWith(LiOTask task)
LiOSearch
worksWith in class LiOSearchpublic static void main(java.lang.String[] args)
args - the command line argumentspublic SwarmGenerator getGenerator()
public void setGenerator(SwarmGenerator generator)
generator - the generator to setpublic Neighbourhood getNeighbourhood()
public void setNeighbourhood(Neighbourhood neighbourhood)
neighbourhood - the neighbourhood to setpublic int getNumParticles()
public void setNumParticles(int particles)
particles - the nParticles to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||