LLNL / libROM

Model reduction library with an emphasis on large scale parallelism and linear subspace methods
https://www.librom.net
Other
201 stars 36 forks source link

DE parametric maxwell greedy #254

Closed andersonw1 closed 8 months ago

andersonw1 commented 9 months ago

Adds differential evolution for maxwell equation with greedy algorithm used to build ROM.

Example:

_builddatabase 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:

_builddatabase 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