Skip to content

Interface the new solver with the toolbox#3

Open
agroudiev wants to merge 2 commits intomainfrom
dev
Open

Interface the new solver with the toolbox#3
agroudiev wants to merge 2 commits intomainfrom
dev

Conversation

@agroudiev
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.
  • 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
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.

1 participant