Bit Flip Mutation

Bit Flip Mutation #

File position: /EMOC/src/operator/bit_mutation.h and /EMOC/src/operator/bit_mutation.cpp

void BitFlipMutation(Individual *ind, MutationParameter &mutation_para)

Do the bit flip mutation on ind. The mutation results are stored in itself. Note this mutation is for binary encoding problems.

Parameter:
ind: Individual*, default=None
    The pointer to the individual which will do the bit flip 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