This document summarizes an approach for optimal control of coupled partial differential equation (PDE) networks using automated code generation. It discusses representing PDE networks as graphs, formulating the optimal control problem, deriving adjoint equations to compute gradients, discretizing control variables, and generating code to solve the direct and adjoint problems. Tools used include the DOT language for graph representation, SymPy for symbolic math, Cog for code generation, SfePy for PDE solvers, and SciPy for numerics.
Related topics: