Abstract This package ports 6 constrained multi-objective test problems from BoTorch’s test_functions.multi_objective module to OptunaHub’s BaseProblem interface: BNH, CONSTR, ConstrainedBraninCurrin, OSY, SRN, and MW7. Each problem is reimplemented with plain Python and numpy only, so it can be evaluated without installing torch or botorch.
Conventions Parameters are named x0, x1, … following each problem’s input vector order. evaluate_constraints keys are named c0, c1, … following each problem’s constraint order. BoTorch’s constraint convention is that a slack c_i(x) >= 0 is feasible; OptunaHub’s BaseProblem convention is that a value <= 0 is feasible.
Abstract This package implements a modified Constrained Adversarially Robust Bayesian Optimization (CARBO) sampler based on the paper Constrained robust Bayesian optimization of expensive noisyblack-box functions with guaranteed regret bounds. This sampler robustly optimizes a function along with inequality constraints that incurs a noise in its input. The algorithm details are described in the Others section.
APIs CARBOSampler(*, seed: int | None = None, independent_sampler: BaseSampler | None = None, n_startup_trials: int = 10, deterministic_objective: bool = False, constraints_func: Callable[[FrozenTrial], Sequence[float]] | None = None, rho: float = 1e3, beta: float = 4.
Abstract This package provides a parallel coordinate plot for Optuna studies. It follows Optuna’s visualization module layout: plot_parallel_coordinate returns a Plotly figure, and matplotlib.plot_parallel_coordinate returns a Matplotlib axes object.
The current implementation adds:
Conditional parameter support: if a trial does not contain a selected parameter, the line is connected to a special None tick below the valid values. Multi-objective support: objective axes are shown side by side, and trial colors are ordered by Pareto rank.
Abstract This package provides the real-world multi-objective optimization benchmark problems (the RE problem suite) introduced in An Easy-to-use Real-world Multi-objective Problem Suite. The original benchmark implementation is available here. This package serves as a wrapper for a re-implementation of the original benchmark, ported to Python from the reference C source code (reproblem.c).
Note that ConstrainedProblem relies on optuna.trial.Trial.set_constraint, which requires Optuna v5.0.0 or newer.
APIs Problem(problem_name: str)
problem_name: The name of an unconstrained benchmark problem.
Abstract SafeCMASampler provides an implementation of SafeCMA, a variant of CMA-ES that incorporates safety constraints. This sampler extends the standard CMA-ES algorithm to handle constrained optimization problems where certain regions of the search space should be avoided. SafeCMA uses Gaussian Process models to estimate Lipschitz constants and manage trust regions, ensuring that the optimization process respects safety constraints while exploring the search space efficiently. Please refer to the original paper for more details.
Abstract This package provides a wrapper of the COCO experiments libarary’s bbob-constrained test suite.
APIs class Problem(function_id: int, dimension: int, instance_id: int = 1) function_id: ID of the bbob-constrained benchmark function to use. It must be in the range of [1, 54]. dimension: Dimension of the benchmark function. It must be in [2, 3, 5, 10, 20, 40]. instance_id: ID of the instance of the benchmark function. It must be in the range of [1, 15].