Skip to content

Add utility function for general order connection btwn zernike and monomials of rho*cos/sin, fix bug when L>M for NAE constraints#2141

Draft
dpanici wants to merge 3 commits intomasterfrom
dp/arb-order-fix-nae
Draft

Add utility function for general order connection btwn zernike and monomials of rho*cos/sin, fix bug when L>M for NAE constraints#2141
dpanici wants to merge 3 commits intomasterfrom
dp/arb-order-fix-nae

Conversation

@dpanici
Copy link
Copy Markdown
Collaborator

@dpanici dpanici commented Mar 27, 2026

  • Fixes bug for NAE constraints when L>M where the full eq behavior for the given order rho would not be constrained (i.e. it would not include some of the modes, leadig to the behavior being incompletely constrained)
  • Adds utility function for arbitrary order zernike -> given order rho behavior, which reduces redundant code.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

Memory benchmark result

|               Test Name                |      %Δ      |    Master (MB)     |      PR (MB)       |    Δ (MB)    |    Time PR (s)     |  Time Master (s)   |
| -------------------------------------- | ------------ | ------------------ | ------------------ | ------------ | ------------------ | ------------------ |
  test_objective_jac_w7x                 |   -0.60 %    |     4.136e+03      |     4.111e+03      |    -24.86    |       42.27        |       40.06        |
  test_proximal_jac_w7x_with_eq_update   |   -0.60 %    |     6.556e+03      |     6.517e+03      |    -39.53    |       166.00       |       164.89       |
  test_proximal_freeb_jac                |    0.01 %    |     1.335e+04      |     1.335e+04      |     0.78     |       90.44        |       89.66        |
  test_proximal_freeb_jac_blocked        |   -0.16 %    |     7.701e+03      |     7.689e+03      |    -11.94    |       80.52        |       79.53        |
  test_proximal_freeb_jac_batched        |    0.43 %    |     7.735e+03      |     7.768e+03      |    32.92     |       79.52        |       79.02        |
  test_proximal_jac_ripple               |   -0.78 %    |     3.656e+03      |     3.628e+03      |    -28.37    |       67.51        |       68.00        |
  test_proximal_jac_ripple_bounce1d      |   -0.99 %    |     3.803e+03      |     3.765e+03      |    -37.46    |       79.76        |       79.96        |
  test_eq_solve                          |   -2.91 %    |     2.242e+03      |     2.177e+03      |    -65.19    |       100.07       |       99.26        |

For the memory plots, go to the summary of Memory Benchmarks workflow and download the artifact.

@dpanici dpanici marked this pull request as draft April 9, 2026 16:51
@dpanici
Copy link
Copy Markdown
Collaborator Author

dpanici commented Apr 9, 2026

Maybe just invert zernike_radial_coeffs?

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