Skip to main content

NSGA2

Module: opytimizer.optimizers.multi_objective.evolutionary.nsga2

NSGA2 class, inherited from MultiObjectiveOptimizer.

Constructor​

NSGA2(params: 'Dict' = None, crossover_operator=None, mutation_operator=None) -> 'None'

Parameters​

ParameterTypeDefaultDescription
paramsDictNone—
crossover_operatorNone—
mutation_operatorNone—

Methods​

compile​

compile(self, space: '_MultiObjectiveSpace') -> 'None'

Compiles additional information that is used by this optimizer.

This method is called before the optimization procedure and makes sure that the additional variable is available as a property.

Parameters​

ParameterTypeDefaultDescription
space_MultiObjectiveSpace—

evaluate​

evaluate(self, space, function)

Evaluates the search space according to the objective function.

Parameters​

ParameterTypeDefaultDescription
spaceA Space object that will be evaluated.
functionA Function object serving as an objective function.

update​

update(self, space: '_MultiObjectiveSpace', function) -> 'None'

Updates the agents' position array.

As each child has a different procedure of update, you will need to implement it directly on its class.

Parameters​

ParameterTypeDefaultDescription
space_MultiObjectiveSpace—
function—