From 25523db0090abcb8b990e75c81ad341618a1c3d3 Mon Sep 17 00:00:00 2001 From: Max Rakitin Date: Sun, 23 Apr 2023 12:58:10 -0400 Subject: [PATCH 1/3] Fix the device generation funciton --- bloptools/experiments/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bloptools/experiments/tests/__init__.py b/bloptools/experiments/tests/__init__.py index 30e7054..5eba20d 100644 --- a/bloptools/experiments/tests/__init__.py +++ b/bloptools/experiments/tests/__init__.py @@ -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) From 21ef5c00bf421852f38af592122ac4aac4eb6973 Mon Sep 17 00:00:00 2001 From: Thomas Morris <41275226+thomaswmorris@users.noreply.github.com> Date: Sun, 23 Apr 2023 12:58:41 -0400 Subject: [PATCH 2/3] Update bloptools/experiments/tests/__init__.py Co-authored-by: Max Rakitin --- bloptools/experiments/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bloptools/experiments/tests/__init__.py b/bloptools/experiments/tests/__init__.py index 5eba20d..4e5e581 100644 --- a/bloptools/experiments/tests/__init__.py +++ b/bloptools/experiments/tests/__init__.py @@ -78,7 +78,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): From e2229644817dcbe452c5714ca0a6c342e0cb438c Mon Sep 17 00:00:00 2001 From: Thomas Morris <41275226+thomaswmorris@users.noreply.github.com> Date: Sun, 23 Apr 2023 13:42:30 -0400 Subject: [PATCH 3/3] Update bloptools/experiments/tests/__init__.py Co-authored-by: Max Rakitin --- bloptools/experiments/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bloptools/experiments/tests/__init__.py b/bloptools/experiments/tests/__init__.py index 4e5e581..6a4c2d4 100644 --- a/bloptools/experiments/tests/__init__.py +++ b/bloptools/experiments/tests/__init__.py @@ -94,7 +94,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) """ @staticmethod