Tekstiviesti: Iterative algorithms for multilayer optimizing control