-
Notifications
You must be signed in to change notification settings - Fork 40
Add Deflation methods #2044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dpanici
wants to merge
18
commits into
master
Choose a base branch
from
dp/deflated-continuation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add Deflation methods #2044
+431
−2
Conversation
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
Contributor
Memory benchmark result| Test Name | %Δ | Master (MB) | PR (MB) | Δ (MB) | Time PR (s) | Time Master (s) |
| -------------------------------------- | ------------ | ------------------ | ------------------ | ------------ | ------------------ | ------------------ |
test_objective_jac_w7x | 2.68 % | 3.934e+03 | 4.039e+03 | 105.25 | 41.60 | 38.47 |
test_proximal_jac_w7x_with_eq_update | 1.07 % | 6.547e+03 | 6.617e+03 | 70.20 | 179.88 | 179.09 |
test_proximal_freeb_jac | 0.11 % | 1.322e+04 | 1.324e+04 | 14.39 | 93.87 | 92.87 |
test_proximal_freeb_jac_blocked | 0.00 % | 7.543e+03 | 7.543e+03 | 0.29 | 82.94 | 82.23 |
test_proximal_freeb_jac_batched | -0.17 % | 7.529e+03 | 7.516e+03 | -12.84 | 82.05 | 81.95 |
test_proximal_jac_ripple | 0.25 % | 3.524e+03 | 3.533e+03 | 8.84 | 66.32 | 65.82 |
test_proximal_jac_ripple_bounce1d | -0.58 % | 3.715e+03 | 3.693e+03 | -21.52 | 77.48 | 76.95 |
test_eq_solve | -0.04 % | 1.991e+03 | 1.990e+03 | -0.82 | 91.90 | 91.09 |For the memory plots, go to the summary of |
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.
Deflation method motivation: find multiple solutions to non-convex optimization problems (which can include certain equilibirum solves)
This PR adds a couple ways to apply deflation methods in stellarator optimization and equilibrium solving
ForceBalanceDeflatedwhich is the usual force balance, but multiplied by the deflation operator M(x;y) = 1/(x-y)^p + sigmaDeflationOperatorwhose cost is simply M(x;y) = 1/(x-y)^p + sigma (to add as constraints to an optimization like in Tarek 2022 work)References:
"exp"deflation typeTODO
ForceBalanceDeflatedto use pytree inputs forparams_to_deflate_withFuture work for another PR: