Skip to content

Add adaptive_diag_scale setting binding - #225

Open
bodono wants to merge 1 commit into
masterfrom
feature/adaptive-diag-scale-binding
Open

Add adaptive_diag_scale setting binding#225
bodono wants to merge 1 commit into
masterfrom
feature/adaptive-diag-scale-binding

Conversation

@bodono

@bodonobodono commented Aug 9, 2026

Copy link
Copy Markdown
Owner

What

Binding for the new adaptive_diag_scale solver setting (cvxgrp/scs#401): integer level 0 (off, default) / 1 (rows) / 2 (rows + columns), parsed as an int in the argparse string so Python bools are also accepted (bool subclasses int). Python-side validation mirrors the C-side check with a clear error message.

Notes

  • Depends on Add adaptive_diag_scale: per-row metric refinement from the primal residual profile cvxgrp/scs#401. The scs_source submodule is pinned to cvxgrp/scs@pin/scs-python-adaptive-diag-scale, a merge of the #401 branch with expose-aa-trust-factor — needed because this repo's test suite expects the +inf eps_*/time_limit sentinel behavior from that in-flight branch, which current scs master rejects (any pin bump to scs master would hit the same failures independently of this PR). Re-pin to the upstream merge commit once both scs branches land.
  • Tested: extension builds clean, basic test suite passes, kwarg round-trips at all levels and rejects out-of-range values with the intended message.

🤖 Generated with Claude Code

@bodono
bodonoforce-pushed the feature/adaptive-diag-scale-binding branch 2 times, most recently from 81cd977 to 27afc4aCompareAugust 9, 2026 13:38
Integer level 0 (off, default) / 1 (rows) / 2 (rows + columns); Python
bools accepted as 0/1 since bool subclasses int. Mirrors the C-side
validation. scs_source pin to be bumped to the upstream commit once the
corresponding scs PR merges.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bodono
bodonoforce-pushed the feature/adaptive-diag-scale-binding branch from 27afc4a to 5a0bd1bCompareAugust 9, 2026 13:56
Sign up for freeto 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.

1 participant

@bodono