jmetal.metaheuristics.mochc
Class MOCHC

java.lang.Object
  extended by jmetal.core.Algorithm
      extended by 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

Field Summary
 
Fields inherited from class jmetal.core.Algorithm
inputParameters_, operators_, problem_
 
Constructor Summary
MOCHC(Problem problem)
          Constructor Creates a new instance of MOCHC
 
Method Summary
 boolean equals(SolutionSet solutionSet, SolutionSet newSolutionSet)
          Compares two solutionSets to determine if both are equals
 SolutionSet execute()
          Runs of the MOCHC algorithm.
 int hammingDistance(Solution solutionOne, Solution solutionTwo)
          Calculate the hamming distance between two solutions
 
Methods inherited from class jmetal.core.Algorithm
addOperator, getInputParameter, getOperator, getOutputParameter, getProblem, setInputParameter, setOutputParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MOCHC

public MOCHC(Problem problem)
Constructor Creates a new instance of MOCHC

Method Detail

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