net.sourceforge.cilib.moo.archive.solutionweighing
Class AntiClusterWeighing

java.lang.Object
  extended by net.sourceforge.cilib.moo.archive.solutionweighing.AntiClusterWeighing
All Implemented Interfaces:
Serializable, SolutionWeighing, Cloneable, Weighing<OptimisationSolution>

public class AntiClusterWeighing
extends Object
implements SolutionWeighing

An implementation of SolutionWeighing that weighs a collection of OptimisationSolutions based on how closely clustered these solutions are to one another.

This class can be used to select the most closely clustered optimisation solutions to be removed from the Archive if it reaches its maximum capacity. However, by selecting the least closely clustered solutions, you have a collection of solutions that are good candidates to be used as guides in a Multi-objective optimisation algorithm (see GuideSelectionStrategy).

Author:
Wiehann Matthysen
See Also:
Serialized Form

Constructor Summary
AntiClusterWeighing()
           
AntiClusterWeighing(AntiClusterWeighing copy)
           
 
Method Summary
 AntiClusterWeighing getClone()
          Create a cloned copy of the current object and return it.
 boolean weigh(List<Selection.Entry<OptimisationSolution>> solutions)
          Perform a weighing on the provided list of entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntiClusterWeighing

public AntiClusterWeighing()

AntiClusterWeighing

public AntiClusterWeighing(AntiClusterWeighing copy)
Method Detail

getClone

public AntiClusterWeighing getClone()
Description copied from interface: Weighing
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface SolutionWeighing
Specified by:
getClone in interface Cloneable
Specified by:
getClone in interface Weighing<OptimisationSolution>
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

weigh

public boolean weigh(List<Selection.Entry<OptimisationSolution>> solutions)
Description copied from interface: Weighing
Perform a weighing on the provided list of entries.

Specified by:
weigh in interface SolutionWeighing
Specified by:
weigh in interface Weighing<OptimisationSolution>
Parameters:
solutions - The entries to weigh.
Returns:
true if successful, false otherwise.


Copyright © 2009 CIRG. All Rights Reserved.