Skip to content

Purpose of summing over frequencies in adjoint optimization example #2773

Answered by smartalecH
niccolot asked this question in Q&A
Discussion options

You must be logged in to vote

In this case, the FOM is a linear combination of the frequency components. The individual scaling of each frequency (whether it's a mean or something arbitrary) is extracted via autograd and injected into the adjoint current sources. So all that's left is the actual sum.

The reason we don't hardcode the sum is because there are cases where you don't want to formulate an FOM that is a linear combination of the frequencies (eg the epigraph of a minimax, as described in the meep adjoint paper).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by niccolot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants