Adaptive Algorithms in Optimization under PDE Constraints