Skip to content

Interface the new solver with the toolbox - #3

Merged
duembgen merged 13 commits into
mainfrom
dev
Aug 31, 2026
Merged

Interface the new solver with the toolbox#3
duembgen merged 13 commits into
mainfrom
dev

Conversation

@agroudiev

@agroudiev agroudiev commented May 1, 2026

Copy link
Copy Markdown
Collaborator

This PR adds support for the newton-sos solver. It can be enabled by setting the solver argument to newton-rs in ksos.solve.

To test the new solver, update the conda environment or install newton-sos with pip, and use newton-rs where you would use newton.

Known limitations:

  • The kernel SOS solver might crash if the kernel matrix is not PSD. I will likely catch these errors properly before this is merged. (fixed)
  • Support for Gaussian and Laplacian kernels only. (Feel free to open an issue here to ask for support of other kernels. If necessary, I can also implement a way to pass a custom Python kernel function as argument of the problem.)
  • The X matrix (also called M) is not computed
  • Phi and B are always computed, which we could probably avoid

agroudiev and others added 2 commits May 1, 2026 13:36
@agroudiev agroudiev self-assigned this May 1, 2026
@agroudiev
agroudiev requested a review from duembgen August 30, 2026 17:24

@duembgen duembgen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

I also prepared for release 0.0.3, which we can create as soon as this is merged.

@duembgen
duembgen merged commit 640ae32 into main Aug 31, 2026
22 checks passed
@duembgen
duembgen deleted the dev branch August 31, 2026 14:59
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.

2 participants