Skip to content

Commit

Permalink
Add optimal values for synthetic contrained optimization problems (#2730
Browse files Browse the repository at this point in the history
)

Summary:
Pull Request resolved: #2730

1. Specifies optimal values for synthetic constrained optimization problems
2. Adds these constrained optimization problems to the problems registry for the Ax 1.0 benchmarks repo

Reviewed By: saitcakmak

Differential Revision: D69196192

fbshipit-source-id: 49c892dc0a3e03876d283bdb624de4292d794a5d
  • Loading branch information
ltiao authored and facebook-github-bot committed Feb 5, 2025
1 parent c0db823 commit e8749df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions botorch/test_functions/synthetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,7 @@ class PressureVessel(ConstrainedSyntheticTestFunction):
dim = 4
num_constraints = 4
_bounds = [(0.0, 10.0), (0.0, 10.0), (10.0, 50.0), (150.0, 200.0)]
_optimal_value = 6059.946341 # from [CoelloCoello2002constraint]

def evaluate_true(self, X: Tensor) -> Tensor:
x1, x2, x3, x4 = X.unbind(-1)
Expand Down Expand Up @@ -1073,6 +1074,7 @@ class WeldedBeamSO(ConstrainedSyntheticTestFunction):
dim = 4
num_constraints = 6
_bounds = [(0.125, 10.0), (0.1, 10.0), (0.1, 10.0), (0.1, 10.0)]
_optimal_value = 1.728226 # from [CoelloCoello2002constraint]

def evaluate_true(self, X: Tensor) -> Tensor:
x1, x2, x3, x4 = X.unbind(-1)
Expand Down Expand Up @@ -1126,6 +1128,7 @@ class TensionCompressionString(ConstrainedSyntheticTestFunction):
dim = 3
num_constraints = 4
_bounds = [(0.01, 1.0), (0.01, 1.0), (0.01, 20.0)]
_optimal_value = 0.012681 # from [CoelloCoello2002constraint]

def evaluate_true(self, X: Tensor) -> Tensor:
x1, x2, x3 = X.unbind(-1)
Expand Down

0 comments on commit e8749df

Please sign in to comment.