Skip to content
Discussion options

You must be logged in to vote

No, in any case this is handled under the hood. Your objective function should be scalar-valued. But if it depends on multiple frequency outputs, this is detected automatically, and the adjoint simulations will be created as needed. It's just that in some cases (e.g. a single ModeMonitor in the objective function) we can even use a single adjoint simulation, but again, this is detected automatically.

Replies: 4 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@Nikolaos-Matthaiakakis
Comment options

@momchil-flex
Comment options

Answer selected by Nikolaos-Matthaiakakis
@Nikolaos-Matthaiakakis
Comment options

@groberts-flex
Comment options

@Nikolaos-Matthaiakakis
Comment options

@groberts-flex
Comment options

Comment options

You must be logged in to vote
6 replies
@Nikolaos-Matthaiakakis
Comment options

@groberts-flex
Comment options

@Nikolaos-Matthaiakakis
Comment options

@Nikolaos-Matthaiakakis
Comment options

@Nikolaos-Matthaiakakis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants