« Back to top page

Cmaes

Cmaes

Optuna Wrap of CatCMA with Margin [Hamano et al. 2025]

Abstract CatCMA with Margin [Hamano et al. 2025] CatCMA with Margin (CatCMAwM) is a method for mixed-variable optimization problems, simultaneously optimizing continuous, integer, and categorical variables. CatCMAwM extends CatCMA by introducing a novel integer handling mechanism, and supports arbitrary combinations of continuous, integer, and categorical variables in a unified framework. This Optuna sampler uses https://github.com/CyberAgentAILab/cmaes under the hood, so please refer to it for details. APIs CatCmawmSampler Example from __future__ import annotations import numpy as np import optuna import optunahub def SphereIntCOM(x: np.

Optuna Wrapper for Fast CMA-ES

Abstract C++ optimized implementation of CMA-ES using the fcmaes library (https://github.com/dietmarwo/fast-cma-es). Installation fcmaes package is required. pip install fcmaes APIs FastCmaesSampler Example from __future__ import annotations import numpy as np import optuna import optunahub def SphereIntCOM(x: np.ndarray, z: np.ndarray, c: np.ndarray) -> float: return sum(x * x) + sum(z * z) + len(c) - sum(c[:, 0]) def objective(trial: optuna.Trial) -> float: x1 = trial.suggest_float("x1", -5, 5) x2 = trial.suggest_float("x2", -5, 5) z1 = trial.