Skip to content

Commit e1ab53d

Browse files
authored
Fix constraints in reference Test (#91)
* add valid constraint value to first evaluation in reference test `optimize_single_parameter_sequentially_for_n_max_evaluations` Signed-off-by: Falkner Stefan (CR/PJ-AI-R32) <Stefan.Falkner@de.bosch.com> * bump version number Signed-off-by: Falkner Stefan (CR/PJ-AI-R32) <Stefan.Falkner@de.bosch.com> --------- Signed-off-by: Falkner Stefan (CR/PJ-AI-R32) <Stefan.Falkner@de.bosch.com>
1 parent 2512c73 commit e1ab53d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

blackboxopt/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "4.13.0"
1+
__version__ = "4.13.1"
22

33
from parameterspace import ParameterSpace
44

blackboxopt/optimizers/testing.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,12 @@ def quadratic_function(p1):
8484

8585
if issubclass(optimizer_class, MultiObjectiveOptimizer):
8686
evaluation = eval_spec.create_evaluation(
87-
objectives={"loss": None, "score": None}
87+
objectives={"loss": None, "score": None},
88+
constraints={"constraint": 10.0},
8889
)
8990
else:
9091
evaluation = eval_spec.create_evaluation(
91-
objectives={"loss": None}, constraints={"constraint": None}
92+
objectives={"loss": None}, constraints={"constraint": 10.0}
9293
)
9394
optimizer.report(evaluation)
9495

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "blackboxopt"
3-
version = "4.13.0"
3+
version = "4.13.1"
44
description = "A common interface for blackbox optimization algorithms along with useful helpers like parallel optimization loops, analysis and visualization scripts."
55
readme = "README.md"
66
repository = "https://github.com/boschresearch/blackboxopt"

0 commit comments

Comments
 (0)