Skip to content

fix: align strict adaptive constraint boundaries - #168

Merged
jc-macdonald merged 1 commit into
mainfrom
fix/strict-adaptive-constraints
Oct 3, 2026
Merged

jc-macdonald merged 1 commit into
mainfrom
fix/strict-adaptive-constraints

Conversation

@jc-macdonald

Copy link
Copy Markdown
Collaborator

Adaptive < and > constraints previously reported a zero violation at exact threshold equality, which Optuna treats as feasible even though ResultsTable.feasible() rejects that boundary. Strict comparisons now report the smallest positive representable violation at equality, while preserving negative violations for adjacent feasible values and zero for non-strict comparisons.

Regression tests compare stored sampler constraints, result metadata and warm-start imports against result-table feasibility for all four inequality operators, including neighboring floating-point values.

Validation: just ci (588 tests); targeted adaptive session and warm-start tests with Optuna 4.5 (38 tests).

Closes #167.

@jc-macdonald
jc-macdonald merged commit 53b0048 into main Oct 3, 2026
7 checks passed
@jc-macdonald
jc-macdonald deleted the fix/strict-adaptive-constraints branch October 3, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align strict adaptive constraint boundaries with result-table feasibility

1 participant