diff --git a/examples/multiobjective/nsgaii/gnsgaii_solving_zdt2_with_reference_point.py b/examples/multiobjective/nsgaii/gnsgaii_solving_zdt2_with_reference_point.py index 1deba311..8c316ec9 100644 --- a/examples/multiobjective/nsgaii/gnsgaii_solving_zdt2_with_reference_point.py +++ b/examples/multiobjective/nsgaii/gnsgaii_solving_zdt2_with_reference_point.py @@ -24,7 +24,7 @@ problem=problem, population_size=100, offspring_population_size=100, - mutation=PolynomialMutation(probability=1.0 / problem.number_of_variables, distribution_index=20), + mutation=PolynomialMutation(probability=1.0 / problem.number_of_variables(), distribution_index=20), crossover=SBXCrossover(probability=1.0, distribution_index=20), dominance_comparator=GDominanceComparator(reference_point), termination_criterion=StoppingByEvaluations(max_evaluations=max_evaluations) @@ -38,12 +38,12 @@ front = algorithm.result() # Plot front - plot_front = Plot(title='Pareto front approximation. Problem: ' + problem.get_name(), + plot_front = Plot(title='Pareto front approximation. Problem: ' + problem.name(), reference_front=problem.reference_front, axis_labels=problem.obj_labels) plot_front.plot(front, label=algorithm.label, filename=algorithm.get_name()) # Plot interactive front - plot_front = InteractivePlot(title='Pareto front approximation. Problem: ' + problem.get_name(), + plot_front = InteractivePlot(title='Pareto front approximation. Problem: ' + problem.name(), reference_front=problem.reference_front, axis_labels=problem.obj_labels) plot_front.plot(front, label=algorithm.label, filename=algorithm.get_name()) diff --git a/src/jmetal/lab/experiment.py b/src/jmetal/lab/experiment.py index dc8de35a..9529352f 100644 --- a/src/jmetal/lab/experiment.py +++ b/src/jmetal/lab/experiment.py @@ -839,7 +839,7 @@ def __kolmogorov_smirnov_to_latex(indicator_name: str, test_data: pd.DataFrame, num_columns = len(algorithms) columns = algorithms - alignment = "c" + alignment = "c" col_format = "{}|{}".format(alignment, alignment * num_columns) column_labels = ["\\textbf{{{0}}}".format(label.replace("_", "\\_")) for label in columns]