Source code for macop.operators.crossovers.Crossover

"""Abstract Crossover class
"""
# module imports
from ..Operator import KindOperator, Operator


# main mutation class
[docs]class Crossover(Operator): """Abstract crossover extend from Operator Attributes: kind: {KindOperator} -- specify the kind of operator """ def __init__(self): self._kind = KindOperator.CROSSOVER
[docs] def apply(self, solution): raise NotImplementedError