Skip to content

Commit

Permalink
Corrected design
Browse files Browse the repository at this point in the history
  • Loading branch information
LebedevIlyaG committed May 8, 2024
1 parent 1ce6f5e commit 5a05973
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/MCO_Test1_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
6 changes: 2 additions & 4 deletions iOpt/method/mco_optim_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion iOpt/method/solverFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down

0 comments on commit 5a05973

Please sign in to comment.