Using embarrasingly parallel simulations with adjoint solver #2613
-
Hi, I was wondering about using embarrassing optimizations with the adjoint solver. I am optimizing a 2x2 splitter, I understand it makes sense to parallelize the optimizations such that the forward and the adjoint solves are done in parallel since they are totally independent. Is it possible to be used in such a way in MEEP? I have two objective functions J1 and J2 defined. My idea is to use
Does that make sense? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Note that the forward and adjoint solves are not independent. You need to run the forward solve first in order to compute the adjoint sources. If you have multiple FOMs, you can compute those gradients in parallel as you are describing, but each group must run its forward and adjoint runs sequentially. (Technically the forward run is the same for each FOM... but it's usually a hassle to separate things in that way) |
Beta Was this translation helpful? Give feedback.
Note that the forward and adjoint solves are not independent. You need to run the forward solve first in order to compute the adjoint sources.
If you have multiple FOMs, you can compute those gradients in parallel as you are describing, but each group must run its forward and adjoint runs sequentially. (Technically the forward run is the same for each FOM... but it's usually a hassle to separate things in that way)