@@ -168,7 +168,7 @@ def apply_deprecated(self, objective : Tuple[Union[SoEq, ParetoLevels]], argumen
168168
169169 # TODO: Init normalizer here!
170170 # print('objective is ', objective)
171- # objective[1].set_normalizer()
171+ objective [1 ].set_normalizer ()
172172
173173 objective [1 ].update (objective [0 ]) #levels_updated = ndl_update(offspring, levels)
174174 if len (objective [1 ].levels ) == 1 :
@@ -434,9 +434,9 @@ def apply(self, objective: ParetoLevels, arguments: dict):
434434 while objective .unplaced_candidates :
435435 offspring = objective .unplaced_candidates .pop ()
436436 attempt = 0
437- replaced = 0
437+ # replaced = 0
438438 mutation_attempt_limit = self .params ['mutation_attempt_limit' ]
439- offspring_attempt_limit = self .params ['offspring_attempt_limit' ]
439+ # offspring_attempt_limit = self.params['offspring_attempt_limit']
440440 # self.suboperators['sparsity'].apply(objective=offspring,
441441 # arguments=subop_args['sparsity'])
442442 temp_offspring = deepcopy (offspring )
@@ -464,13 +464,13 @@ def apply(self, objective: ParetoLevels, arguments: dict):
464464 objective .history .add (system )
465465 print (temp_offspring .obj_fun )
466466 break
467- elif replaced == offspring_attempt_limit :
467+ elif attempt == mutation_attempt_limit :
468468 print ("Could not generate unique offspring" )
469469 break
470- elif attempt == mutation_attempt_limit :
471- temp_offspring = deepcopy (offspring )
472- replaced += 1
473- attempt = 0
470+ # elif attempt == mutation_attempt_limit:
471+ # temp_offspring = deepcopy(offspring)
472+ # replaced += 1
473+ # attempt = 0
474474 attempt += 1
475475 return objective
476476
0 commit comments