Real-Time PDE-Constrained Optimization