jmetal.operators.crossover
Class SBXSinglePointCrossover
java.lang.Object
jmetal.core.Operator
jmetal.operators.crossover.Crossover
jmetal.operators.crossover.SBXSinglePointCrossover
- All Implemented Interfaces:
- java.io.Serializable
public class SBXSinglePointCrossover
- extends Crossover
- See Also:
- Serialized Form
|
Constructor Summary |
SBXSinglePointCrossover(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
Constructor |
|
Method Summary |
Solution[] |
doCrossover(java.lang.Double realProbability,
java.lang.Double binaryProbability,
Solution parent1,
Solution parent2)
Perform the crossover operation. |
java.lang.Object |
execute(java.lang.Object object)
Abstract method that must be defined by all the operators. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SBXSinglePointCrossover
public SBXSinglePointCrossover(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
- Constructor
doCrossover
public Solution[] doCrossover(java.lang.Double realProbability,
java.lang.Double binaryProbability,
Solution parent1,
Solution parent2)
throws JMException
- Perform the crossover operation.
- Parameters:
realProbability - Crossover probabilityparent1 - The first parentparent2 - The second parent
- Returns:
- An array containing the two offsprings
- Throws:
JMException
execute
public java.lang.Object execute(java.lang.Object object)
throws JMException
- Description copied from class:
Operator
- Abstract method that must be defined by all the operators. When invoked,
this method executes the operator represented by the current object.
- Specified by:
execute in class Operator
- Parameters:
object - This param inherits from Object to allow different kinds
of parameters for each operator. For example, a selection
operator typically receives a SolutionSet as
a parameter, while a mutation operator receives a
Solution.
- Returns:
- An object reference. The returned value depends on the operator.
- Throws:
JMException