|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.algorithm.Algorithm net.sourceforge.cilib.algorithm.SingularAlgorithm net.sourceforge.cilib.hs.HS
public class HS
Harmony Search as published in K.S. Lee and Z.W. Geem, "A New Meta-Heuristic Algorithm for Continuous Engineering Optimization: Harmony Search Theory and Practice", Computer Methods in Applied Mechanics and Engineering, volume 194, pages 3902--3933, 2005
Field Summary |
---|
Fields inherited from class net.sourceforge.cilib.algorithm.Algorithm |
---|
optimisationProblem |
Constructor Summary | |
---|---|
HS()
Default constructor. |
|
HS(HS copy)
Copy constructor. |
Method Summary | |
---|---|
void |
algorithmIteration()
The actual operations that the current Algorithm performs within a single iteration. |
OptimisationSolution |
getBestSolution()
Get the best current solution. |
HS |
getClone()
Create a cloned copy of the current object and return it. |
ControlParameter |
getDistanceBandwidth()
Get the distance bandwidth. |
ControlParameter |
getHarmonyMemoryConsideringRate()
Get the considering rate for the harmony memory. |
ControlParameter |
getHarmonyMemorySize()
Get the size of the harmony memory. |
ControlParameter |
getPitchAdjustingRate()
Get the current pitch adjusting rate as a ControlParameter. |
List<OptimisationSolution> |
getSolutions()
Get the collection of best solutions. |
void |
performInitialisation()
Perform the needed initialisation required before the execution of the algorithm starts. |
void |
setDistanceBandwidth(ControlParameter distanceBandwidth)
Set the distance bandwidth. |
void |
setHarmonyMemoryConsideringRate(ControlParameter harmonyMemoryConsideringRate)
Set the considering rate for the harmony memory. |
void |
setHarmonyMemorySize(ControlParameter harmonyMemorySize)
Set the size of the harmony memory. |
void |
setPitchAdjustingRate(ControlParameter pitchAdjustingRate)
Set the pitch adjusting rate. |
Methods inherited from class net.sourceforge.cilib.algorithm.Algorithm |
---|
addAlgorithmListener, addStoppingCondition, get, getAlgorithmList, getIterations, getOptimisationProblem, getPercentageComplete, getStoppingConditions, initialise, isFinished, performIteration, performUninitialisation, removeAlgorithmListener, removeStoppingCondition, reset, run, setOptimisationProblem, terminate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HS()
Set the parameters for the algorithm up as:
public HS(HS copy)
copy
- The instance to copy.Method Detail |
---|
public HS getClone()
getClone
in interface Cloneable
getClone
in class Algorithm
Object.clone()
public void performInitialisation()
performInitialisation
in class Algorithm
public ControlParameter getHarmonyMemoryConsideringRate()
public void setHarmonyMemoryConsideringRate(ControlParameter harmonyMemoryConsideringRate)
harmonyMemoryConsideringRate
- The ControlParameter for the
memory considering rate.public ControlParameter getHarmonyMemorySize()
public void setHarmonyMemorySize(ControlParameter harmonyMemorySize)
harmonyMemorySize
- The memory size to use.public ControlParameter getPitchAdjustingRate()
public void setPitchAdjustingRate(ControlParameter pitchAdjustingRate)
pitchAdjustingRate
- The ControlParameter to use.public ControlParameter getDistanceBandwidth()
public void setDistanceBandwidth(ControlParameter distanceBandwidth)
distanceBandwidth
- The ControlParameter to use.public void algorithmIteration()
algorithmIteration
in class SingularAlgorithm
public OptimisationSolution getBestSolution()
getBestSolution
in class Algorithm
OptimisationSolution
representing the best solution.public List<OptimisationSolution> getSolutions()
getSolutions
in class Algorithm
Collection<OptimisationSolution>
containing the solutions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |