Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaswmorris committed Apr 23, 2023
2 parents f9e582f + e222964 commit 991a23f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bloptools/experiments/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_device(name="dofs", n=2):
components = {}

for i in range(n):
components[f"{i+1}"] = Cpt(Signal, value=i + 1)
components[f"x{i+1}"] = Cpt(Signal, value=i + 1)

cls = type("DOF", (Device,), components)

Expand Down Expand Up @@ -93,7 +93,7 @@ def fitness_func(X):

class Rosenbrock(BaseOptimizationTest):
"""
Rosenbrock function in $n$ dimensions (hhttps://en.wikipedia.org/wiki/Rosenbrock_function)
Rosenbrock function in $n$ dimensions (https://en.wikipedia.org/wiki/Rosenbrock_function)
"""

def __init__(self, n_dof=2):
Expand All @@ -109,7 +109,7 @@ def fitness_func(X):

class ConstrainedRosenbrock(Rosenbrock):
"""
Rosenbrock function in $n$ dimensions (hhttps://en.wikipedia.org/wiki/Rosenbrock_function)
Rosenbrock function in $n$ dimensions (https://en.wikipedia.org/wiki/Rosenbrock_function)
Return NaN if ||X|| > dim(X)
"""

Expand Down

0 comments on commit 991a23f

Please sign in to comment.