Cross Section Inference Based on PDE-Constrained Optimization