Package pulse.search.direction.pso
Class ParticleSwarmOptimiser
- java.lang.Object
-
- pulse.util.UpwardsNavigable
-
- pulse.util.Group
-
- pulse.util.Accessible
-
- pulse.util.PropertyHolder
-
- pulse.search.direction.PathOptimiser
-
- pulse.search.direction.pso.ParticleSwarmOptimiser
-
- All Implemented Interfaces:
Serializable,Descriptive,Reflexive
public class ParticleSwarmOptimiser extends PathOptimiser
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParticleSwarmOptimiser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompatibleWith(OptimiserStatistic os)Checks if this optimiser is compatible with the statistic passed to the method as its argument.By default, this will accept anyOptimiserStatisticIterativeStateinitState(GeneralTask t)Creates a newPathsuitable for thisPathSolverbooleaniteration(GeneralTask task)Iterates the swarm.protected voidmoveParticles()voidprepare(GeneralTask task)Defines a set of procedures to be run at the end of the search iteration.-
Methods inherited from class pulse.search.direction.PathOptimiser
genericProperties, getErrorTolerance, getInstance, getMaxIterations, getSolver, ignoreSiblings, listedKeywords, reset, set, setErrorTolerance, setInstance, setMaxIterations, setSolver, toString, update
-
Methods inherited from class pulse.util.PropertyHolder
addListener, areDetailsHidden, data, describe, firePropertyChanged, getDescriptor, getListeners, getPrefix, initListeners, isListedNumericType, isListedParameter, listedTypes, numericData, parameterListChanged, removeListeners, setPrefix, updateProperties, updateProperty
-
Methods inherited from class pulse.util.Accessible
accessibleChildren, genericProperty, numericProperties, numericProperty, property, update
-
Methods inherited from class pulse.util.UpwardsNavigable
addHierarchyListener, getHierarchyListeners, getParent, identify, removeHierarchyListener, removeHierarchyListeners, setParent, specificAncestor, tellParent
-
-
-
-
Method Detail
-
moveParticles
protected void moveParticles()
-
iteration
public boolean iteration(GeneralTask task) throws SolverException
Iterates the swarm.- Specified by:
iterationin classPathOptimiser- Parameters:
task- aSearchTaskthat needs to be driven to a minimum of SSR.- Returns:
- the SSR value with the newly found parameters.
- Throws:
SolverException- See Also:
direction(Path),LinearOptimiser
-
prepare
public void prepare(GeneralTask task) throws SolverException
Description copied from class:PathOptimiserDefines a set of procedures to be run at the end of the search iteration.- Specified by:
preparein classPathOptimiser- Parameters:
task- theSearchTaskundergoing optimisation- Throws:
SolverException
-
initState
public IterativeState initState(GeneralTask t)
Description copied from class:PathOptimiserCreates a newPathsuitable for thisPathSolver- Specified by:
initStatein classPathOptimiser- Parameters:
t- the task, the optimisation path of which will be tracked- Returns:
- a
Pathinstance
-
compatibleWith
public boolean compatibleWith(OptimiserStatistic os)
Description copied from class:PathOptimiserChecks if this optimiser is compatible with the statistic passed to the method as its argument.By default, this will accept anyOptimiserStatistic- Overrides:
compatibleWithin classPathOptimiser- Parameters:
os- a selected optimiser metric- Returns:
true, if not specified otherwise by its subclass implementation.
-
-