macop.operators.discrete.crossovers

Crossover implementations for discrete solutions kind

Classes

RandomSplitCrossover()

Crossover implementation which generated new solution by randomly splitting best solution and current solution

SimpleCrossover()

Crossover implementation which generated new solution by splitting at mean size best solution and current solution

class macop.operators.discrete.crossovers.RandomSplitCrossover[source]

Crossover implementation which generated new solution by randomly splitting best solution and current solution

kind

{KindOperator} – specify the kind of operator

apply(solution)[source]

Create new solution based on best solution found and solution passed as parameter

Parameters

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

Returns

{Solution} – new generated solution

class macop.operators.discrete.crossovers.SimpleCrossover[source]

Crossover implementation which generated new solution by splitting at mean size best solution and current solution

kind

{Algorithm} – specify the kind of operator

apply(solution)[source]

Create new solution based on best solution found and solution passed as parameter

Parameters

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

Returns

{Solution} – new generated solution