diff --git a/examples/MCO_Test1_example.py b/examples/MCO_Test1_example.py index 921ea9c..586e821 100644 --- a/examples/MCO_Test1_example.py +++ b/examples/MCO_Test1_example.py @@ -41,7 +41,7 @@ # plt.plot(x1, x2, 'ro') # plt.show() - # Точки для постороения графика множества Парето y[0]-y[1] + # Точки для построения графика множества Парето y[0]-y[1] fv1 = [trial.function_values[0].value for trial in sol.best_trials] fv2 = [trial.function_values[1].value for trial in sol.best_trials] diff --git a/iOpt/method/mco_optim_task.py b/iOpt/method/mco_optim_task.py index 005994f..cd03505 100644 --- a/iOpt/method/mco_optim_task.py +++ b/iOpt/method/mco_optim_task.py @@ -92,10 +92,8 @@ def calculate(self, ) -> SearchDataItem: """Compute selected function by number.""" if calculation_type == TypeOfCalculation.FUNCTION: - data_item.function_values[self.perm[function_index]] = self.problem.calculate(data_item.point, - data_item.function_values[ - self.perm[ - function_index]]) + data_item.function_values[self.perm[function_index]] = \ + self.problem.calculate(data_item.point, data_item.function_values[self.perm[function_index]]) if not np.isfinite(data_item.function_values[self.perm[function_index]].value): raise Exception("Infinity values") diff --git a/iOpt/method/solverFactory.py b/iOpt/method/solverFactory.py index 1ca1a47..5167e00 100644 --- a/iOpt/method/solverFactory.py +++ b/iOpt/method/solverFactory.py @@ -81,7 +81,7 @@ def create_method(parameters: SolverParameters, :param task: the wrapper of the problem to be solved. :param evolvent: Peano-Hilbert evolvent mapping the segment [0,1] to the multidimensional region D. :param search_data: data structure for storing accumulated search information. - :param calculator: класс содержащий методы проведения испытаний (параллельные и\или индуксную схему) + :param calculator: класс, содержащий методы проведения испытаний (параллельные и/или индексную схему) :return: created method """