jmetal.metaheuristics.mochc
Class MOCHC
java.lang.Object
jmetal.core.Algorithm
jmetal.metaheuristics.mochc.MOCHC
- All Implemented Interfaces:
- java.io.Serializable
public class MOCHC
- extends Algorithm
This class executes the MOCHC algorithm described in:
A.J. Nebro, E. Alba, G. Molina, F. Chicano, F. Luna, J.J. Durillo
"Optimal antenna placement using a new multi-objective chc algorithm".
GECCO '07: Proceedings of the 9th annual conference on Genetic and
evolutionary computation. London, England. July 2007.
- See Also:
- Serialized Form
Constructor Summary |
MOCHC(Problem problem)
Constructor
Creates a new instance of MOCHC |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MOCHC
public MOCHC(Problem problem)
- Constructor
Creates a new instance of MOCHC
equals
public boolean equals(SolutionSet solutionSet,
SolutionSet newSolutionSet)
- Compares two solutionSets to determine if both are equals
- Parameters:
solutionSet
- A SolutionSet
newSolutionSet
- A SolutionSet
- Returns:
- true if both are cotains the same solutions, false in other case
hammingDistance
public int hammingDistance(Solution solutionOne,
Solution solutionTwo)
- Calculate the hamming distance between two solutions
- Parameters:
solutionOne
- A Solution
solutionTwo
- A Solution
- Returns:
- the hamming distance between solutions
execute
public SolutionSet execute()
throws JMException,
java.lang.ClassNotFoundException
- Runs of the MOCHC algorithm.
- Specified by:
execute
in class Algorithm
- Returns:
- a
SolutionSet
that is a set of non dominated solutions
as a result of the algorithm execution
- Throws:
JMException
java.lang.ClassNotFoundException