jeco.kernel.operator.mutator
Class NonUniformMutation

java.lang.Object
  extended by jeco.kernel.operator.mutator.MutationOperator
      extended by jeco.kernel.operator.mutator.NonUniformMutation

public class NonUniformMutation
extends MutationOperator


Field Summary
protected  double probability
           
 
Constructor Summary
NonUniformMutation(double probability, double perturbationIndex, int currentIteration, int maxIterations)
          Constructor Creates a new instance of the non uniform mutation
 
Method Summary
 Solution execute(Solution solution)
          Executes the operation
 void setCurrentIteration(int currentIteration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

probability

protected double probability
Constructor Detail

NonUniformMutation

public NonUniformMutation(double probability,
                          double perturbationIndex,
                          int currentIteration,
                          int maxIterations)
Constructor Creates a new instance of the non uniform mutation

Method Detail

execute

public Solution execute(Solution solution)
Executes the operation

Specified by:
execute in class MutationOperator
Parameters:
object - An object containing a solution
Returns:
An object containing the mutated solution
Throws:
JMException

setCurrentIteration

public void setCurrentIteration(int currentIteration)