onegpy.operators.crossover.MLPSCrossover¶
-
class
onegpy.operators.crossover.MLPSCrossover(problem, stop_after_one=False, donor_order='random')[source]¶ Crossover class for the MLPS-GP
-
__init__(problem, stop_after_one=False, donor_order='random')[source]¶ Parameters: - problem – problem object. target problem.
- stop_after_one – bool. stop a crossover after the first donation.
- donor_order –
Methods
__init__(problem[, stop_after_one, donor_order])param problem: problem object. target problem. donate(recipient, cross_point, donor)Replace a sub-tree of the recipient with a donor :param recipient: solution object. get_options(recipient, donors)Check if the recipient and each donor have a same tree structure or not. improve(recipient, cross_point, donors)Replace a sub-tree of the recipient at a crossover point with donors :param recipient: solution object. not_changeable_warning()Attributes
n_inn_out-