Skip to content

Warn against using CmaEsSampler in constrained optimization - #6802

Merged
y0z merged 1 commit into
optuna:masterfrom
not522:cmaes-warn-constraints
Aug 13, 2026
Merged

y0z merged 1 commit into
optuna:masterfrom
not522:cmaes-warn-constraints

Conversation

@not522

@not522 not522 commented Aug 12, 2026

Copy link
Copy Markdown
Member

Motivation

Regardless of which sampler users use, they can utilize the new constrained optimization API. This may cause confusion, as it could be mistakenly interpreted as using constraint values, so this PR adds a warning.

Description of the changes

  • Add a warning about using CmaEsSampler in constrained optimization

@not522 not522 added this to the v5.0.0 milestone Aug 12, 2026

@c-bata c-bata left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@c-bata

c-bata commented Aug 12, 2026

Copy link
Copy Markdown
Member

@y0z Could you review this PR?

@c-bata c-bata added the enhancement Change that does not break compatibility and not affect public interfaces, but improves performance. label Aug 12, 2026
@y0z
y0z merged commit 9bac52b into optuna:master Aug 13, 2026
14 checks passed
@not522
not522 deleted the cmaes-warn-constraints branch August 17, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Change that does not break compatibility and not affect public interfaces, but improves performance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants