Disable crossover in NSGA3 #601
Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I want to disable the crossover in the NSGA3 algorithm and only use my custom Mutation operator, after choosing crossover=None in the algorithm:
algorithm = NSGA2(
pop_size=population,
sampling=random_population,
crossover=None,
mutation=CustomMutation(),
n_offsprings=population,
verbose=True,
eliminate_duplicates=True )
It shows this error :
in _do
n_matings = math.ceil(n_offsprings / self.crossover.n_offsprings)
AttributeError: 'NoneType' object has no attribute 'n_offsprings'
Any help to address this issue will be appreciated ?
Beta Was this translation helpful? Give feedback.
All reactions