Skip to content

Update pymoo code to use Generators rather than setting global seeds. #469

@CompRhys

Description

@CompRhys
# if a seed is set, then use it to call the random number generators
if seed is not None:
    import random
    random.seed(seed)
    np.random.seed(seed)

Currently pymoo sets global seeds that mean that it can interfere with intended functionality outside it's own scope. I would propose that we update pymoo to use the best practice of numpy Generators and then fork the seed into everywhere where a seed is used.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions