Skip to content

Deprecate constraints_func - #6773

Merged
y0z merged 1 commit into
optuna:masterfrom
not522:deprecate-constraints-func
Jul 27, 2026
Merged

y0z merged 1 commit into
optuna:masterfrom
not522:deprecate-constraints-func

Conversation

@not522

@not522 not522 commented Jul 27, 2026

Copy link
Copy Markdown
Member

Motivation

#6754 introduced set_constraint, so constraints_func is being deprecated.

Description of the changes

  • Deprecate constraints_func in TPESampler, NSGAIISampler, NSGAIIISampler, and GPSampler

@not522 not522 added this to the v5.0.0 milestone Jul 27, 2026
@c-bata c-bata assigned c-bata and y0z Jul 27, 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 with a nit.

Comment thread optuna/samplers/nsgaii/_sampler.py Resolved
@c-bata c-bata added the compatibility Change that breaks compatibility. label Jul 27, 2026
@c-bata c-bata removed their assignment Jul 27, 2026

@y0z y0z 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

@y0z
y0z merged commit 3103ac3 into optuna:master Jul 27, 2026
14 checks passed
@y0z y0z removed their assignment Jul 27, 2026
@not522
not522 deleted the deprecate-constraints-func branch July 28, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compatibility Change that breaks compatibility.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants