Skip to content

[WIP] efficient assembly of problem hessian#13

Merged
dance858 merged 3 commits intomainfrom
problem_hess
Jan 10, 2026
Merged

[WIP] efficient assembly of problem hessian#13
dance858 merged 3 commits intomainfrom
problem_hess

Conversation

@dance858
Copy link
Collaborator

@dance858 dance858 commented Jan 9, 2026

I want to write a few tests by hand before I think this is ready to be merged.

dance858 and others added 3 commits January 9, 2026 14:48
- Add expr_retain() in all Python atom bindings to properly increment
  refcount when capsules are created. Without this, expression trees
  were getting double-freed when Python garbage collected capsules.

- Add wsum_hess_init and eval_wsum_hess to constant.c. Constants were
  missing Hessian functions, causing NULL pointer crash when constraint
  expressions contained constants (e.g., "0 + -log(x)").

- Add Python bindings for problem_hessian (python/problem/hessian.h)
- Add hessian() method to C_problem class in convert.py
- Add comprehensive Hessian tests to test_constrained.py

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Transurgeon
Copy link
Collaborator

@dance858 we might have reached the limits of CI for a private repo.
See here.

@dance858
Copy link
Collaborator Author

Merging this so I can merge your code easily

@dance858 dance858 merged commit c473c58 into main Jan 10, 2026
0 of 11 checks passed
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