Swap Mutation
#
File position: /EMOC/src/operator/swap_mutation.h and /EMOC/src/operator/swap_mutation.cpp
void SwapMutation(Individual *ind, MutationParameter &mutation_para)
Do the swap mutation on ind
. The mutation results are stored in itself. Note this mutation is for permutation encoding problems.
Parameter: |
ind: Individual*, default=None     The pointer to the individual which will do the swap mutation.
mutation_para: MutationParameter, default=None     The parameter of this mutation. The type MutationParameter is just a simple structure which has three member variables (i.e., the mutation probability, the distribution index1 and the distribution index2). |
Returns: |
void
|