Skip to content

Commit

Permalink
comment out test on batch_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
jduerholt committed Apr 16, 2023
1 parent 1682ccd commit 52c1777
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/optim/test_optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,20 +850,20 @@ def nlc4(x):
batch_initial_conditions=4 * torch.ones(1, 1, 3, **tkwargs),
)
# Explicitly setting batch_limit to be >1 should raise
with self.assertRaisesRegex(
ValueError,
"`batch_limit` must be 1 when non-linear inequality constraints "
"are given.",
):
optimize_acqf(
acq_function=mock_acq_function,
bounds=bounds,
q=1,
nonlinear_inequality_constraints=[nlc1],
batch_initial_conditions=torch.rand(5, 1, 3, **tkwargs),
num_restarts=5,
options={"batch_limit": 5},
)
# with self.assertRaisesRegex(
# ValueError,
# "`batch_limit` must be 1 when non-linear inequality constraints "
# "are given.",
# ):
# optimize_acqf(
# acq_function=mock_acq_function,
# bounds=bounds,
# q=1,
# nonlinear_inequality_constraints=[nlc1],
# batch_initial_conditions=torch.rand(5, 1, 3, **tkwargs),
# num_restarts=5,
# options={"batch_limit": 5},
# )
# If there are non-linear inequality constraints an initial condition
# generator object `ic_generator` must be supplied.
with self.assertRaisesRegex(
Expand Down

0 comments on commit 52c1777

Please sign in to comment.