Math 2.0

Calculus of variations and optimal control; optimization Definition

Adjoint state method

Builds on GradientJacobian matrixImplicit function theoremChain rule

Definition

Let F ⁣:ℝn×ℝp→ℝnF \colon \R^n \times \R^p \to \R^n and j ⁣:ℝn×ℝp→ℝj \colon \R^n \times \R^p \to \R be continuously differentiable, written F(u,θ)F(u, \theta) and j(u,θ)j(u, \theta). Let θ0∈ℝp\theta_0 \in \R^p and let u(θ)u(\theta) be a continuously differentiable map defined near θ0\theta_0 with F(u(θ),θ)=0F(u(\theta), \theta) = 0. Assume that the Jacobian matrix Fu=∂F/∂uF_u = \partial F / \partial u is invertible at (u(θ),θ)(u(\theta), \theta). Let J(θ)=j(u(θ),θ)J(\theta) = j(u(\theta), \theta) be the reduced objective. The adjoint state at θ\theta is the vector λ∈ℝn\lambda \in \R^n that solves the adjoint equation Fu(u(θ),θ)Tλ=∇uj(u(θ),θ).F_u(u(\theta), \theta)^T \lambda = \nabla_u j(u(\theta), \theta). The adjoint state method computes the gradient of JJ by the formula ∇J(θ)=∇θj(u(θ),θ)−Fθ(u(θ),θ)Tλ.\nabla J(\theta) = \nabla_\theta j(u(\theta), \theta) - F_\theta(u(\theta), \theta)^T \lambda.

Remarks

The formula follows from the chain rule. Differentiating F(u(θ),θ)=0F(u(\theta), \theta) = 0 gives Fu u′(θ)=−FθF_u \, u'(\theta) = -F_\theta, so ∇JT=juu′(θ)+jθ=−juFu−1Fθ+jθ=−λTFθ+jθ\nabla J^T = j_u u'(\theta) + j_\theta = -j_u F_u^{-1} F_\theta + j_\theta = -\lambda^T F_\theta + j_\theta. By the implicit function theorem, invertibility of FuF_u at a solution gives the smooth map u(θ)u(\theta) locally. The forward method needs pp linear solves with FuF_u, one for each column of u′(θ)u'(\theta); the adjoint method needs one solve with FuTF_u^T. For a time-dependent state equation the adjoint equation runs backward in time; in optimal control it is the costate equation.

Example: F(u,θ)=Au−θF(u, \theta) = A u - \theta with AA an invertible n×nn \times n matrix and p=np = n, and j(u,θ)=12∣u−d∣2j(u, \theta) = \frac{1}{2} \abs{u - d}^2 for a fixed d∈ℝnd \in \R^n. Then Fu=AF_u = A, Fθ=−IF_\theta = -I and ∇θj=0\nabla_\theta j = 0, so ATλ=u−dA^T \lambda = u - d and ∇J(θ)=λ\nabla J(\theta) = \lambda. Directly, J(θ)=12∣A−1θ−d∣2J(\theta) = \frac{1}{2} \abs{A^{-1} \theta - d}^2 has gradient A−T(A−1θ−d)=λA^{-T} (A^{-1} \theta - d) = \lambda, as it should.

Non-example: let n=p=1n = p = 1 and F(u,θ)=u2−θF(u, \theta) = u^2 - \theta, at the point u=θ=0u = \theta = 0, where Fu=0F_u = 0 is singular. The adjoint equation 0⋅λ=ju0 \cdot \lambda = j_u need not have a solution, and the state is not a differentiable function of θ\theta there.

Reading path

To understand this page from the ground up, read these 32 pages in order. The foundations come first.

Show the path as a graph
Euclidean space, object, no evidence levelEuclidean spaceobjectFunction, concept, no evidence levelFunctionconceptFunction composition, concept, no evidence levelFunction compositionconceptLimit point of a set, definition, no evidence levelLimit point of a setdefinitionFréchet derivative, definition, no evidence levelFréchet derivativedefinitionTotal derivative, concept, no evidence levelTotal derivativeconceptFunction of several variables, concept, no evidence levelFunction of several v…conceptLimit of a function, definition, no evidence levelLimit of a functiondefinitionLimit of a function of several variables, concept, no evidence levelLimit of a function o…conceptDifferentiable function of several variables, concept, no evidence levelDifferentiable functi…conceptPartial derivative, concept, no evidence levelPartial derivativeconceptContinuity at a point, definition, no evidence levelContinuity at a pointdefinitionDerivative, definition, no evidence levelDerivativedefinitionDifferentiable function of several variables, definition, no evidence levelDifferentiable functi…definitionPartial derivative, definition, no evidence levelPartial derivativedefinitionGradient, concept, no evidence levelGradientconceptJacobian matrix, concept, no evidence levelJacobian matrixconceptContinuous function, definition, no evidence levelContinuous functiondefinitionEpsilon-delta definition of continuity, statement, no evidence levelEpsilon-delta definit…statementDifferentiable on an open set, definition, no evidence levelDifferentiable on an …definitionChain rule in several variables, statement, no evidence levelChain rule in several…statementHigher partial derivatives, definition, no evidence levelHigher partial deriva…definitionJacobian matrix, definition, no evidence levelJacobian matrixdefinitionComposition of continuous functions is continuous, statement, no evidence levelComposition of contin…statementIterated derivative, definition, no evidence levelIterated derivativedefinitionDerivative of the inverse function, statement, no evidence levelDerivative of the inv…statementJacobian determinant, definition, no evidence levelJacobian determinantdefinitionChain rule, statement, no evidence levelChain rulestatementC^k function characterised by continuous derivatives, statement, no evidence levelC^k function characte…statementInverse function theorem, statement, no evidence levelInverse function theo…statementImplicit function theorem, statement, no evidence levelImplicit function the…statementAdjoint state method, definition, no evidence levelAdjoint state methoddefinition
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Euclidean space object
  2. Function concept
  3. Function composition concept
  4. Limit point of a set definition
  5. Fréchet derivative definition
  6. Total derivative concept
  7. Function of several variables concept
  8. Limit of a function definition
  9. Limit of a function of several variables concept
  10. Differentiable function of several variables concept
  11. Partial derivative concept
  12. Continuity at a point definition
  13. Derivative definition
  14. Differentiable function of several variables definition
  15. Partial derivative definition
  16. Gradient concept
  17. Jacobian matrix concept
  18. Continuous function definition
  19. Epsilon-delta definition of continuity statement
  20. Differentiable on an open set definition
  21. Chain rule in several variables statement
  22. Higher partial derivatives definition
  23. Jacobian matrix definition
  24. Composition of continuous functions is continuous statement
  25. Iterated derivative definition
  26. Derivative of the inverse function statement
  27. Jacobian determinant definition
  28. Chain rule statement
  29. C^k function characterised by continuous derivatives statement
  30. Inverse function theorem statement
  31. Implicit function theorem statement
  32. Adjoint state method definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Adjoint_state_method
About this page
TagX9F8SQFQGP
URIm2://X9F8SQFQGP
Kinddefinition
WritingW0 stub
MSC49M41, 65K10, 49K20
DefinesAdjoint state method
UsesGradient, Jacobian matrix, Implicit function theorem, Chain rule

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.