Text this: Iterative Algorithms for Multilayer Optimizing Control