BoTorch Benchmarks¶
The Botorch benchmark collection includes synthetic test problems commonly used in Bayesian optimization research.
Single Objective Problems¶
bocode.BoTorch.AugmentedBraninbocode.BoTorch.AugmentedHartmannbocode.BoTorch.AugmentedRosenbrockbocode.BoTorch.Ishigamibocode.BoTorch.Gsobolbocode.BoTorch.Morris
Multi Objective Problems¶
bocode.BoTorch.MOMFBraninCurrinbocode.BoTorch.MOMFPark1bocode.BoTorch.BraninCurrinbocode.BoTorch.DH1bocode.BoTorch.DH2bocode.BoTorch.DH3bocode.BoTorch.DH4bocode.BoTorch.DTLZ1bocode.BoTorch.DTLZ2bocode.BoTorch.DTLZ3bocode.BoTorch.DTLZ4bocode.BoTorch.DTLZ5bocode.BoTorch.DTLZ7bocode.BoTorch.GMMbocode.BoTorch.Penicillinbocode.BoTorch.ToyRobustbocode.BoTorch.VehicleSafetybocode.BoTorch.ZDT1bocode.BoTorch.ZDT2bocode.BoTorch.ZDT3bocode.BoTorch.CarSideImpactbocode.BoTorch.BNHbocode.BoTorch.CONSTRbocode.BoTorch.ConstrainedBraninCurrinbocode.BoTorch.C2DTLZ2bocode.BoTorch.DiscBrakebocode.BoTorch.MW7bocode.BoTorch.OSYbocode.BoTorch.SRNbocode.BoTorch.WeldedBeam
Single Objective Example Usage¶
import bocode
import torch
# Create a BoTorch benchmark problem
problem = bocode.BoTorch.AugmentedBranin()
# Evaluate at a point
x = torch.Tensor([[0.0] * problem.dim])
values, constraints = problem.evaluate(x)
print(f"AugmentedBranin function value at origin: {values[0]}")
Output:
AugmentedBranin function value at origin: tensor([228.4423])
Multi Objective Example Usage¶
import bocode
import torch
# Create a BoTorch benchmark problem
problem = bocode.BoTorch.MOMFBraninCurrin()
# Evaluate at a point
x = torch.Tensor([[0.0] * problem.dim])
values, constraints = problem.evaluate(x)
print(f"MOMFBraninCurrin function value at origin: {values[0]}")
Output:
MOMFBraninCurrin function value at origin: tensor([11.8986, -0.7333])