structopt.common.population.crossovers¶
-
class
structopt.common.population.crossovers.
Crossovers
(parameters)¶ Bases:
object
-
crossover
(pairs)¶ (@parallel) Designed to run code that runs differently on different cores. The MPI functionality should be implemented inside these functions.
-
post_processing
(parent_pair, child_pair)¶
-
static
rotate
(individual1, individual2, conserve_composition=True)¶ Rotates the two individuals around their centers of mass, splits them in half at the xy-plane, then splices them together. Maintains number of atoms.
Parameters: - individual1 (Individual) – The first parent
- individual2 (Individual) – The second parent
- conserve_composition (bool) – default True. If True, conserves composition.
Returns: The first child Individual: The second child
Return type: The children are returned without indicies.
-
select_crossover
()¶
-