chore(#100): upgrade Clarabel.cpp to v0.11.1 and fix solver template headers#101
Open
zcZhangCheng wants to merge 1 commit into
Open
chore(#100): upgrade Clarabel.cpp to v0.11.1 and fix solver template headers#101zcZhangCheng wants to merge 1 commit into
zcZhangCheng wants to merge 1 commit into
Conversation
maxschaller
reviewed
Dec 31, 2025
| sys.stdout.write('\nCVXPYgen\nSolve time: %.3f ms\n' % (1000 * (t1 - t0))) | ||
| sys.stdout.write('Primal solution: x = [%.6f, %.6f]\n' % tuple(x.value)) | ||
| sys.stdout.write('Dual solution: d0 = [%.6f, %.6f]\n' % tuple(problem.constraints[0].dual_value)) | ||
| sys.stdout.write('Objective function value: %.6f\n' % val) |
Collaborator
There was a problem hiding this comment.
Right now, we have a main hello world example under examples/main.py and several notebooks with applications. Consider moving this to the tests.
Author
There was a problem hiding this comment.
Apologies, you're correct. That was my oversight; this simple validation should not have been submitted.
Collaborator
|
Note: Until the next CVXPY release, you have to install CVXPY from source such that the tests run properly. |
…plates and add example
b251568 to
a3adfe7
Compare
Author
|
Thanks. I noticed that the master branch isn't working, so I've been running some simple validations on tag v0.6.8 instead. |
Collaborator
|
@zcZhangCheng please merge master back, for the CI to run correctly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR upgrades the
Clarabel.cppsubmodule tov0.11.1and updates the solver template headers to ensure compatibility with the new version.Changes
Clarabel.cpptov0.11.1.cvxpygen/solvers.pyto use<Clarabel.h>instead of the deprecated<Clarabel>header.examples/example_Clarabel.pyto demonstrate and verify the updated Clarabel solver integration.pyproject.tomlfor consistency.Context
The current solver templates were pointing to an outdated header format, causing compilation errors with the latest Clarabel releases. This PR resolves those issues.
Testing
Verified by running the newly added
example_Clarabel.pywith the updated templates.