Skip to content

Conversation

@andersonw1
Copy link
Collaborator

@andersonw1 andersonw1 commented Dec 12, 2023

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

@andersonw1 andersonw1 removed the RFR Ready for review label Dec 15, 2023
Copy link
Collaborator

@ckendrick ckendrick left a 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.

@andersonw1 andersonw1 added the RFR Ready for review label Jan 9, 2024
@andersonw1 andersonw1 merged commit f2695be into master Jan 25, 2024
@andersonw1 andersonw1 deleted the de_parametric_maxwell_greedy branch January 25, 2024 23:27
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

Labels

RFR Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants