Module Contents
Classes
-
ocelot.cpbd.moga.MPI_COMM
-
class
ocelot.cpbd.moga.Moga(bounds, weights=- 1.0, - 1.0)
-
set_params(self, n_pop=None, weights=None, elite=None, penalty=None, n_gen=None, seed=None, log_print=None, log_file=False, plt_file=False)
-
generate_ind(self)
-
init_deap_functions(self)
-
feasible(self)
-
optimize(self, init_pop)
-
init_pop(self, init_pop)
-
eval_pop(self, pop)
-
get_good_inds(self, pop)
-
get_nondominated_inds(self, pop)
-
get_best_inds(self, pop)
-
apply_preselect(self, pop)
-
apply_select(self, pop, offspring)
-
apply_crossover(self, pop)
-
apply_mutation(self, pop)
-
replace_rand_by_good_inds(self, pop, good_inds, num=None)
-
replace_bad_by_rand_inds(self, pop)
-
replace_bad_by_good_inds(self, pop, good_pop)
-
replace_rand_by_new_inds(self, pop, num)
-
nsga2(self, fit_func, fit_func_args=[], init_pop=None, cxpb=0.95, mutpb=0.95)