|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmetal.core.Operator
jmetal.operators.mutation.Mutation
jmetal.operators.mutation.SwapMutation
public class SwapMutation
This class implements a swap mutation. The solution type of the solution must be Permutation.
| Field Summary |
|---|
| Fields inherited from class jmetal.core.Operator |
|---|
parameters_ |
| Constructor Summary | |
|---|---|
SwapMutation(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
Constructor |
|
| Method Summary | |
|---|---|
void |
doMutation(double probability,
Solution solution)
Performs the operation |
java.lang.Object |
execute(java.lang.Object object)
Executes the operation |
| Methods inherited from class jmetal.core.Operator |
|---|
getParameter, setParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwapMutation(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
| Method Detail |
|---|
public void doMutation(double probability,
Solution solution)
throws JMException
probability - Mutation probabilitysolution - The solution to mutate
JMException
public java.lang.Object execute(java.lang.Object object)
throws JMException
execute in class Operatorobject - An object containing the solution to mutate
JMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||