Skip to content

Commit

Permalink
unit test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GregaVrbancic committed Apr 15, 2019
1 parent 2455964 commit 2347dfd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion NiaPy/benchmarks/michalewichz.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __init__(self, Lower=0.0, Upper=pi, m=10):
"""

Benchmark.__init__(self, Lower, Upper)
self.m = m
Michalewichz.m = m

@staticmethod
def latex_code():
Expand Down
4 changes: 2 additions & 2 deletions NiaPy/benchmarks/perm.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ def __init__(self, D=10.0, beta=0.5):
Args:
D [float] -- Dimension on problem. (default: {10.0})
beta [float] -- beat parameter. (default: {0.5})
beta [float] -- beta parameter. (default: {0.5})
See Also:
:func:`NiaPy.benchmarks.Benchmark.__init__`
"""

Benchmark.__init__(self, -D, D)
self.beta = beta
Perm.beta = beta

@staticmethod
def latex_code():
Expand Down
6 changes: 3 additions & 3 deletions NiaPy/benchmarks/weierstrass.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def __init__(self, Lower=-100.0, Upper=100.0, a=0.5, b=3, k_max=20):
"""

Benchmark.__init__(self, Lower, Upper)
self.a = a
self.b = b
self.k_max = k_max
Weierstrass.a = a
Weierstrass.b = b
Weierstrass.k_max = k_max

@staticmethod
def latex_code():
Expand Down

0 comments on commit 2347dfd

Please sign in to comment.