Skip to content

Commit

Permalink
Benchmark Done
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Blank committed Aug 14, 2019
1 parent 8e6a1af commit 385d249
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
recursive-include pymoo *.py *.cpp
recursive-exclude pymoo *.so *.pyx *.pxd

include setup.py setup_ext.py LICENSE Makefile
include LICENSE Makefile
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
clean:
rm -rf build builds dist pymoo.egg-info
rm -rf build dist pymoo.egg-info

clean-ext:
rm -f pymoo/cython/*.c
Expand Down
2 changes: 1 addition & 1 deletion benchmark/benchmark_nsga3.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def get_setup(n_obj):
prefix = "runs"

# name of the experiment
name = "pynsga3-sortedrefdirs-0.3.1"
name = "pynsga3-0.3.1"

# number of runs to execute
n_runs = 50
Expand Down
2 changes: 1 addition & 1 deletion pymoo/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from pymoo.version import __version__
from pymoo.version import __version__
2 changes: 1 addition & 1 deletion pymoo/algorithms/nsga3.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _finalize(self):
opt = filter_optimum(self.pop.copy())

# if population object then only keep closest to reference lines
if isinstance(opt, Population):
if isinstance(opt, Population) and len(opt) > 0:

# find the closest individual to each niche
niches, ideal_point, nadir_point = self.survival.ref_dirs, self.survival.ideal_point, self.survival.nadir_point
Expand Down

0 comments on commit 385d249

Please sign in to comment.