Installing pyadjoint¶
Firedrake¶
Pyadjoint is automatically installed in Firedrake. No separate installation is required.
PIP (all platforms)¶
Install dolfin-adjoint and its Python dependencies with pip:
pip install git+https://github.com/dolfin-adjoint/pyadjoint.git
Optional dependencies:¶
IPOPT and Python bindings (cyipopt): This is the best available open-source optimisation algorithm. Strongly recommended if you wish to solve PDE-constrained optimisation problems. Make sure to compile IPOPT against the Harwell Subroutine Library.
Moola: A set of optimisation algorithms specifically designed for PDE-constrained optimisation problems.
Optizelle: An Open Source Software Library Designed To Solve General Purpose Nonlinear Optimization Problems.
Source code¶
The source code of pyadjoint is available on https://github.com/dolfin-adjoint/pyadjoint.