macop.operators.discrete.mutators

Mutation implementations for discrete solution

Classes

SimpleBinaryMutation()

Mutation implementation for binary solution, swap bit randomly from solution

SimpleMutation()

Mutation implementation for binary solution, swap two bits randomly from solution

class macop.operators.discrete.mutators.SimpleBinaryMutation[source]

Mutation implementation for binary solution, swap bit randomly from solution

kind

{KindOperator} – specify the kind of operator

apply(solution)[source]

Create new solution based on solution passed as parameter

Parameters

solution – {Solution} – the solution to use for generating new solution

Returns

{Solution} – new generated solution

class macop.operators.discrete.mutators.SimpleMutation[source]

Mutation implementation for binary solution, swap two bits randomly from solution

kind

{KindOperator} – specify the kind of operator

apply(solution)[source]

Create new solution based on solution passed as parameter

Parameters

solution – {Solution} – the solution to use for generating new solution

Returns

{Solution} – new generated solution