Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,11 @@ benchmarks/data/datasets
examples/Machine_learning/NeuralNetwork/Segmentation/data
examples/Machine_learning/NeuralNetwork/Segmentation/models/*
examples/Machine_learning/NeuralNetwork/Segmentation/lightning_logs
examples/Machine_learning/NeuralNetwork/Segmentation/data.zip
examples/Machine_learning/NeuralNetwork/Segmentation/data.zip


# Ignore experements images
examples/**/*.jpg
examples/**/*.png
examples/*.jpg
examples/*.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion iOpt/method/index_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def calculate_global_r(self, curr_point: SearchDataItem, left_point: SearchDataI
print("calculate_global_r: Curr point is NONE")
raise Exception("calculate_global_r: Curr point is NONE")
if left_point is None:
curr_point.globalR = -np.infty
curr_point.globalR = -np.inf
return None
zl = left_point.get_z()
zr = curr_point.get_z()
Expand Down
6 changes: 3 additions & 3 deletions iOpt/method/method.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def __init__(self,
self.search_data = search_data

self.M = [1.0 for _ in range(1 + task.problem.number_of_constraints)]
self.Z = [np.infty for _ in range(1 + task.problem.number_of_constraints)]
self.Z = [np.inf for _ in range(1 + task.problem.number_of_constraints)]
self.dimension = task.problem.number_of_float_variables
self.search_data.solution.solution_accuracy = np.infty
self.search_data.solution.solution_accuracy = np.inf
self.numberOfAllFunctions = task.problem.number_of_objectives + task.problem.number_of_constraints

if calculator is None:
Expand Down Expand Up @@ -320,7 +320,7 @@ def calculate_global_r(self, curr_point: SearchDataItem, left_point: SearchDataI
print("calculate_global_r: Curr point is NONE")
raise Exception("calculate_global_r: Curr point is NONE")
if left_point is None:
curr_point.globalR = -np.infty
curr_point.globalR = -np.inf
return None
zl = left_point.get_z()
zr = curr_point.get_z()
Expand Down
1,500 changes: 1,500 additions & 0 deletions problems/mopta_x_data.csv

Large diffs are not rendered by default.

1,500 changes: 1,500 additions & 0 deletions problems/mopta_y_data.csv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy>=1.19,<2.0
numpy>=2.0
depq
cycler
kiwisolver
Expand Down