-
Notifications
You must be signed in to change notification settings - Fork 43
DE parametric maxwell greedy #254
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
Merged
Merged
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
ckendrick
requested changes
Dec 21, 2023
Collaborator
ckendrick
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good and works as expected. I just had a minor question about one of the options and comment formatting.
Co-authored-by: Coleman Kendrick <[email protected]>
ckendrick
approved these changes
Jan 16, 2024
dylan-copeland
approved these changes
Jan 25, 2024
andersonw1
added a commit
that referenced
this pull request
Apr 2, 2024
* Added example to cmake * Added DE for maxwell * Fixed some typos in comments * Deleted extra options for naming file output * Update examples/prom/de_parametric_maxwell_greedy.cpp Co-authored-by: Coleman Kendrick <[email protected]> * Update CMakeLists.txt * Update CMakeLists.txt * Fixed typos and formatting * Updated documentation and beginning and delete greedy sample after using * Copyright year to 2024 --------- Co-authored-by: Coleman Kendrick <[email protected]>
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.
Adds differential evolution for maxwell equation with greedy algorithm used to build ROM.
Example:
build_database phase:
mpirun -np 8 de_parametric_maxwell_greedy -build_database -greedy-param-min 1.0 -greedy-param-max 1.2 -greedy-param-size 5 -greedysubsize 2 -greedyconvsize 3 -greedyrelerrortol 0.01
FOM phase:
mpirun -np 8 de_parametric_maxwell_greedy -visit -fom -f 1.15
DE phase:
mpirun -np 8 de_parametric_maxwell_greedy -f 1.15 -visit -de -de_f 0.9 -de_cr 0.9 -de_ps 50 -de_min_iter 10 -de_max_iter 100 -de_ct 0.001 -de_min_freq 1.0 -de_max_freq 1.2 (Run interpolative differential evolution to see if target FOM can be matched. -visit outputs visualization for vector field with lowest relative error)
Results
Best minimal cost: 1.65478e-05, Best agent: 1.15
Larger Example:
build_database phase:
mpirun -np 8 de_parametric_maxwell_greedy -build_database -greedy-param-min 0.5 -greedy-param-max 1.5 -greedy-param-size 15 -greedysubsize 4 -greedyconvsize 6 -greedyrelerrortol 0.01
FOM phase:
mpirun -np 8 de_parametric_maxwell_greedy -visit -fom -f 0.8
DE phase:
mpirun -np 8 de_parametric_maxwell_greedy -f 0.8 -visit -de -de_f 0.9 -de_cr 0.9 -de_ps 50 -de_min_iter 10 -de_max_iter 100 -de_ct 0.001 -de_min_freq 0.5 -de_max_freq 1.5
Results
Best minimal cost: 0.000367194, Best agent: 0.800017