Skip to main content
QUICK REVIEW

[Paper Review] A framework for automated PDE-constrained optimisation

Simon W. Funke, Patrick E. Farrell|arXiv (Cornell University)|Feb 15, 2013
Advanced Numerical Methods in Computational MathematicsEngineering55 references64 citations
TL;DR

This paper presents a high-level, automated framework for PDE-constrained optimization using FEniCS and dolfin-adjoint, enabling users to specify complex optimization problems in near-mathematical notation. The framework automatically derives and solves adjoint equations via algorithmic differentiation, achieving near-optimal efficiency (ratio 1.55) and enabling rapid solution of inverse problems and optimal control with minimal user code.

ABSTRACT

A generic framework for the solution of PDE-constrained optimisation problems based on the FEniCS system is presented. Its main features are an intuitive mathematical interface, a high degree of automation, and an efficient implementation of the generated adjoint model. The framework is based upon the extension of a domain-specific language for variational problems to cleanly express complex optimisation problems in a compact, high-level syntax. For example, optimisation problems constrained by the time-dependent Navier-Stokes equations can be written in tens of lines of code. Based on this high-level representation, the framework derives the associated adjoint equations in the same domain-specific language, and uses the FEniCS code generation technology to emit parallel optimised low-level C++ code for the solution of the forward and adjoint systems. The functional and gradient information so computed is then passed to the optimisation algorithm to update the parameter values. This approach works both for steady-state as well as transient, and for linear as well as nonlinear governing PDEs and a wide range of functionals and control parameters. We demonstrate the applicability and efficiency of this approach on classical textbook optimisation problems and advanced examples.

Motivation & Objective

  • To reduce the complexity and manual effort required to implement PDE-constrained optimization problems in scientific computing.
  • To automate the derivation and solution of adjoint equations for both steady and time-dependent PDEs, linear and nonlinear.
  • To provide a seamless interface between high-level mathematical formulation and efficient, parallelized low-level C++ code generation.
  • To enable efficient gradient computation via automatic adjoint model generation, avoiding finite difference approximations.
  • To support a wide range of optimization problems, including inverse problems and optimal control, with minimal user intervention.

Proposed method

  • The framework extends a domain-specific language for variational forms to express optimization problems in a compact, high-level syntax resembling mathematical notation.
  • It uses tape-based algorithmic differentiation (via dolfin-adjoint) to record the forward model execution and automatically derive the adjoint equations.
  • The framework generates optimized, parallel C++ code for both forward and adjoint PDE solves using FEniCS's code generation capabilities.
  • Functional evaluations and gradients are computed via replay of the forward tape and solution of the derived adjoint system.
  • Optimization algorithms (e.g., L-BFGS-B) are interfaced with the framework to update parameters based on gradient information.
  • The approach supports general equality and inequality constraints, and is applicable to both reduced and full-space formulations.

Experimental results

Research questions

  • RQ1Can a high-level, mathematically intuitive interface be used to specify complex PDE-constrained optimization problems with minimal user code?
  • RQ2Can automatic adjoint derivation via tape-based algorithmic differentiation be made both correct and efficient for nonlinear, time-dependent PDEs?
  • RQ3How close can the computational cost of the adjoint model come to the theoretical minimum (e.g., 1.5x forward solve for Newton methods)?
  • RQ4Can this framework efficiently solve challenging inverse problems, such as tsunami wave reconstruction, with high accuracy?
  • RQ5To what extent can this framework be generalized to support advanced optimization techniques like one-shot methods or reduced-order modeling?

Key findings

  • The framework enables specification of PDE-constrained optimization problems in tens of lines of code, closely resembling mathematical notation.
  • The adjoint model achieves a runtime ratio of 1.55 relative to the forward model, very close to the theoretical optimum of 1.5 for Newton solvers with two iterations.
  • The reconstruction of the Hokkaido-Nansei-Oki tsunami profile achieved an absolute error of 3.91×10⁻⁷ cm, corresponding to a relative error of less than 3×10⁻⁵%.
  • The optimization converged in 103 iterations (113 functional evaluations), with the functional decrease falling below machine precision.
  • The framework successfully handles both steady-state and time-dependent PDEs, as well as linear and nonlinear systems, across diverse applications.
  • The approach supports a wide range of optimization algorithms and constraints, and provides a foundation for advanced methods like one-shot optimization and reduced-order modeling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.