Skip to content

Question about using specific designs in the adjoint optimizer #2759

Closed Answered by pwflanigan
pwflanigan asked this question in Q&A
Discussion options

You must be logged in to vote

I've been playing around with it, and this is the basic idea I've come up with: create a dummy simulation with the objects you want to use as the initial design, convert it to an array with get_epsilon(), then convert that to a [0,1] vector that can be read as the initial design of the optimizer. It gets complicated because the objects seem to scale differently in the design region and the main sim; I'm still trying to get a handle on how it works, but it doesn't like there's any way to have a non-square design region, at least not at this point.

Here is an example, based off of https://github.com/NanoComp/meep/blob/master/python/examples/adjoint_optimization/01-Introduction.ipynb:

import…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pwflanigan
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