InitializationΒΆ
Algorithms are directly initialized using the corresponding constructor.
Directly initializing the object keeps the code clean and if you use an idea lets you quickly jump to the definition of the algorithm and find hyperparameters to modify.
[1]:
from pymoo.algorithms.moo.nsga2 import NSGA2
algorithm = NSGA2()