pymoo

Factory

pymoo.factory.get_algorithm(name, kwargs)

A convenience method to get an algorithm object just by providing a string.

Parameters
name{ ‘ga’, ‘de’, ‘nsga2’, ‘rnsga2’, ‘nsga3’, ‘unsga3’, ‘rnsga3’, ‘moead’ }

Name of the algorithm.

kwargsdict

Dictionary that should be used to call the method mapped to the algorithm factory function.

Returns
algorithmAlgorithm

An algorithm object based on the string. None if the algorithm was not found.

pymoo.factory.get_sampling(name, kwargs)

A convenience method to get an sampling object just by providing a string.

Parameters
name{ ‘real_random’, ‘real_lhs’, ‘bin_random’, ‘int_random’ }

Name of the sampling.

kwargsdict

Dictionary that should be used to call the method mapped to the sampling factory function.

Returns
algorithmSampling

An sampling object based on the string. None if the sampling was not found.

pymoo.factory.get_selection(name, kwargs)

A convenience method to get an selection object just by providing a string.

Parameters
name{ ‘random’, ‘tournament’ }

Name of the selection.

kwargsdict

Dictionary that should be used to call the method mapped to the selection factory function.

Returns
algorithmSelection

An selection object based on the string. None if the selection was not found.

pymoo.factory.get_crossover(name, kwargs)

A convenience method to get an crossover object just by providing a string.

Parameters
name{ ‘real_sbx’, ‘int_sbx’, ‘real_de’, ‘(real|bin|int)_ux’, ‘(bin|int)_hux’, ‘(real|bin|int)_exp’, ‘(real|bin|int)_one_point’, ‘(real|bin|int)_two_point’, ‘(real|bin|int)_k_point’ }

Name of the crossover.

kwargsdict

Dictionary that should be used to call the method mapped to the crossover factory function.

Returns
algorithmCrossover

An crossover object based on the string. None if the crossover was not found.

pymoo.factory.get_mutation(name, kwargs)

A convenience method to get an mutation object just by providing a string.

Parameters
name{ ‘real_pm’, ‘int_pm’, ‘bin_bitflip’ }

Name of the mutation.

kwargsdict

Dictionary that should be used to call the method mapped to the mutation factory function.

Returns
algorithmMutation

An mutation object based on the string. None if the mutation was not found.

pymoo.factory.get_termination(name, kwargs)

A convenience method to get an termination object just by providing a string.

Parameters
name{ ‘n_eval’, ‘n_gen’, ‘igd’ }

Name of the termination.

kwargsdict

Dictionary that should be used to call the method mapped to the termination factory function.

Returns
algorithmTermination

An termination object based on the string. None if the termination was not found.

Previous topic

Algorithms

Next topic

Versions

This Page