r/CFD • • Aug 01 '18

[August] Adjoint optimization

As per the discussion topic vote, August's monthly topic is Adjoint optimization

17 Upvotes

50 comments sorted by

View all comments

Show parent comment

1

u/cherrytomatosalad Aug 08 '18

Optimisation is what I really want to do research on and my thesis (alongside the lab associated with it) is well known for their focus on it.

So despite trying to learn the inner working of the adjoint, I still feel like I don't know where it comes from.

Finite differences make sense. Forward mode makes sense. Reverse mode does not make sense. Cue me trying to explain it to an engineer at an interview and everyone still looking puzzled/astounded that something like this exists.

I foolishly thought that the code will offer more insight. It just made things worse, although I do know about techniques like operator overloading now so it had some worth.

Would you happen to have any resources that give a good explanation of reverse mode?

1

u/Overunderrated Aug 09 '18

Sounds like part of what you're confusing is automatic differentiation with adjoint? As far as I know, AD can be used to compute gradients but isn't itself adjoint.

1

u/dxfdwg Oct 19 '18

If you're still looking for a resource on adjoint optimization, this section of the dolfin-adjoint website is the best resource I've come across so far: dolfin-adjoint mathematical background

If you'd rather skip the parts about why adjoints are useful and the shortcomings of other ways to solve PDE-constrained optimization problems, the section that gets to the heart of how adjoints magically make the reverse mode work is this one.