platypus.config module

config.PlatypusConfig = <platypus.config._PlatypusConfig object>
class platypus.config._PlatypusConfig

Global configuration options for Platypus.

default_mutator(problem)

Returns the default mutator for the given type or problem.

Mutators must first be registered by register_default_mutator() to be discovered by this method.

Parameters

problemType or Problem

The type or problem used to select the default mutator.

default_variator(problem)

Returns the default variator for the given type or problem.

Variators must first be registered by register_default_variator() to be discovered by this method.

Parameters

problemType or Problem

The type or problem used to select the default variator.

register_default_mutator(type, operator)

Registers or overwrites the default mutator.

Parameters

typeType

The type of decision variable.

operatorMutation

The default mutator to associated with the type.

register_default_variator(type, operator)

Registers or overwrites the default variator.

Parameters

typeType

The type of decision variable.

operatorVariator

The default variator to associated with the type.