# MOGA options, defaults are generally suitable for algorithm = "MOGA3"
# if postprocessing handles 3 objectives.
moga_block_for_moga3 <- pyDarwinOptionsMOGA(
objectives = 3,
names = c("Objective1", "Objective2", "Objective3"),
constraints = 1,
partitions = 10
)
# MOGA options where specific settings are for NSGA-II (algorithm = "MOGA")
# Note: objectives, names, constraints, partitions would be ignored by pyDarwin.
moga_block_for_moga <- pyDarwinOptionsMOGA(
crossover = "two_point",
crossover_rate = 0.92
)
Run the code above in your browser using DataLab